Four Stars

can anyone pls help me with my error sqoop import all to mapr hdfs

statistics] connecting to socket on port 3631
[statistics] connected
[WARN ]: org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[WARN ]: org.apache.sqoop.ConnFactory - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
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.ImportAllTablesTool.run(ImportAllTablesTool.java:111)
    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 datalake.cardpro_0_1.CardPro.tSqoopImportAllTables_1Process(CardPro.java:644)
    at datalake.cardpro_0_1.CardPro.tOracleConnection_1Process(CardPro.java:451)
    at datalake.cardpro_0_1.CardPro.runJobInTOS(CardPro.java:1067)
    at datalake.cardpro_0_1.CardPro.main(CardPro.java:916)
[ERROR]: org.apache.sqoop.Sqoop - Got exception running Sqoop: java.lang.NullPointerException
Exception in component tSqoopImportAllTables_1 (CardPro)
java.lang.Exception: The Sqoop import job has failed. Please check the logs.
    at datalake.cardpro_0_1.CardPro.tSqoopImportAllTables_1Process(CardPro.java:653)
    at datalake.cardpro_0_1.CardPro.tOracleConnection_1Process(CardPro.java:451)
    at datalake.cardpro_0_1.CardPro.runJobInTOS(CardPro.java:1067)
    at datalake.cardpro_0_1.CardPro.main(CardPro.java:916)
[statistics] disconnected
Job CardPro ended at 12:01 23/08/2017. [exit code=1]

1 REPLY
Moderator

Re: can anyone pls help me with my error sqoop import all to mapr hdfs

Hi,

What's your RDBMS? MySql or Oracle? Screenshots of your job setting will be helpful for us to address your issue.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.