Iam trying to sqoop a mysql table to hive using java sqoop.runTool(), and for some tables iam getting this below excepiton
java.lang.SecurityException: Cannot replace security manager
at org.apache.sqoop.util. SubprocessSecurityManager. checkPermission( SubprocessSecurityManager. java:100)
at java.lang.System. setSecurityManager0(System. java:297)
at java.lang.System. setSecurityManager(System. java:288)
at org.apache.sqoop.util. SubprocessSecurityManager. install( SubprocessSecurityManager. java:61)
at org.apache.sqoop.hive. HiveImport.executeScript( HiveImport.java:320)
at org.apache.sqoop.hive. HiveImport.importTable( HiveImport.java:239)
at org.apache.sqoop.tool. ImportTool.importTable( ImportTool.java:511)
at org.apache.sqoop.tool. ImportTool.run(ImportTool. java:601)
at org.apache.sqoop.Sqoop.run( Sqoop.java:143)
at org.apache.hadoop.util. ToolRunner.run(ToolRunner. java:70)
at org.apache.sqoop.Sqoop. runSqoop(Sqoop.java:179)
at org.apache.sqoop.Sqoop. runTool(Sqoop.java:218)
at org.apache.sqoop.Sqoop. runTool(Sqoop.java:227)
Please Help me.
Moving to cdh-user where this can be answered.
What version of CDH are you using? Could you send over the code you have written?
Also, i'd recommend using the command line interface rather than 'runTool'. If you need to programmatically call Sqoop, try using Sqoop2.
댓글 없음:
댓글 쓰기