Hi,
I am trying to import table data as parquet file. I am getting null pointer exception. If I replace with --as-parquetfile with --as-avrodatafile or even remove it, it works perfectly fine. Please help.
*sqoop import *
*–connect jdbc:mysql://localhost/retail_db *
*–username sqoopuser *
*–password password *
*–target-dir /user/myUser/sqoop/import_practice/order_items_par/ *
*–delete-target-dir *
*–as-parquetfile *
*–query “select * from order_items where order_item_id < 11 AND $CONDITIONS” *
-m 1
18/05/09 12:27:58 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.3.4.0-3485
18/05/09 12:27:58 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
18/05/09 12:27:58 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
18/05/09 12:27:58 INFO tool.CodeGenTool: Beginning code generation
18/05/09 12:27:58 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:97)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
at org.apache.sqoop.Sqoop.run(Sqoop.java:148)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:184)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:226)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:235)
at org.apache.sqoop.Sqoop.main(Sqoop.java:244)