I've run into an odd issue, where on one of the clusters at a client, we get this error while running Sqoop:
11/11/15 14:55:12 INFO orm.CompilationManager: HADOOP_HOME is /usr/lib/hadoop 11/11/15 14:55:12 INFO orm.CompilationManager: Found hadoop core jar at: /usr/lib/hadoop/hadoop-0.20.2-cdh3u0-core.jar Note: /tmp/cgc-sqoop/owner_table.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 11/11/15 14:55:13 INFO orm.CompilationManager: Writing jar file: /tmp/cgc-sqoop/owner.table.jar 11/11/15 14:55:13 WARN orm.CompilationManager: IOException closing jar stream: java.util.zip.ZipException: ZIP file must have at least one entry 11/11/15 14:55:13 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException java.lang.NullPointerException at java.util.Arrays$ArrayList.<init>(Arrays.java:3357) at java.util.Arrays.asList(Arrays.java:3343) at com.cloudera.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:76) at com.cloudera.sqoop.util.FileListing.getFileListingNoSort(FileListing.java:82) at com.cloudera.sqoop.util.FileListing.getFileListing(FileListing.java:67) at com.cloudera.sqoop.orm.CompilationManager.addClassFilesFromDir(CompilationManager.java:267) at com.cloudera.sqoop.orm.CompilationManager.jar(CompilationManager.java:324) at com.cloudera.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:84) at com.cloudera.sqoop.tool.ImportTool.importTable(ImportTool.java:337) at com.cloudera.sqoop.tool.ImportTool.run(ImportTool.java:423) at com.cloudera.sqoop.Sqoop.run(Sqoop.java:144) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at com.cloudera.sqoop.Sqoop.runSqoop(Sqoop.java:180) at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:218) at com.cloudera.sqoop.Sqoop.main(Sqoop.java:228) This only happens on one of the 8+ clusters. Looking in the generated code directory, there's a valid owner_table.java file, a valid owner_table.class file, but a 0 length owner.table.jar file. All permissions seem fine for the directory being used to hold the generated files. This is on CDH3u0, and a patched version of the pre-released code base of Sqoop 1.3. Has anybody ever run into this before? Thanks, -- Ken -------------------------- Ken Krugler http://www.scaleunlimited.com custom big data solutions & training Hadoop, Cascading, Mahout & Solr