SHARE
TWEET

Untitled

a guest Aug 14th, 2016 416 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sqoop import-all-tables --bindir ./  --num-mappers 1   --connect "jdbc:mysql://localhost/retail_db"   --username=*****   --password=******   --hive-import   --hive-overwrite   --create-hive-table   --compress   --compression-codec org.apache.hadoop.io.compress.SnappyCodec   --outdir java_files --bindir ./sqoop/
  2.    
  3. 16/08/14 12:14:47 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6
  4. 16/08/14 12:14:47 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
  5. 16/08/14 12:14:47 INFO tool.BaseSqoopTool: Using Hive-specific delimiters for output. You can override
  6. 16/08/14 12:14:47 INFO tool.BaseSqoopTool: delimiters with --fields-terminated-by, etc.
  7. 16/08/14 12:14:48 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
  8. 16/08/14 12:14:48 INFO tool.CodeGenTool: Beginning code generation
  9. 16/08/14 12:14:48 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `categories` AS t LIMIT 1
  10. 16/08/14 12:14:48 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `categories` AS t LIMIT 1
  11. 16/08/14 12:14:48 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/local/hadoop
  12. Note: ./categories.java uses or overrides a deprecated API.
  13. Note: Recompile with -Xlint:deprecation for details.
  14. 16/08/14 12:14:49 INFO orm.CompilationManager: Writing jar file: ./categories.jar
  15. 16/08/14 12:14:49 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
  16. java.lang.NullPointerException
  17.     at java.util.Arrays$ArrayList.<init>(Arrays.java:2842)
  18.     at java.util.Arrays.asList(Arrays.java:2828)
  19.     at org.apache.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:76)
  20.     at org.apache.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:82)
  21.     at org.apache.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:82)
  22.     at org.apache.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:82)
  23.     at org.apache.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:82)
  24.     at org.apache.sqoop.util.FileListing.getFileListing(FileListing.java:67)
  25.     at com.cloudera.sqoop.util.FileListing.getFileListing(FileListing.java:39)
  26.     at org.apache.sqoop.orm.CompilationManager.addClassFilesFromDir(CompilationManager.java:284)
  27.     at org.apache.sqoop.orm.CompilationManager.jar(CompilationManager.java:346)
  28.     at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:109)
  29.     at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
  30.     at org.apache.sqoop.tool.ImportAllTablesTool.run(ImportAllTablesTool.java:111)
  31.     at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
  32.     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
  33.     at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
  34.     at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
  35.     at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
  36.     at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top