Error while importing data from MYSQL to Hive

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Sqoop Error while importing data from MYSQL to Hive

Viewing 1 reply thread
  • Author
    Posts
    • #6564
      DataFlair TeamDataFlair Team
      Spectator

      While importing data from MYSQL to Hive I’m getting following error please help me
      18/07/08 00:41:57 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Cannot run program “hive”: error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
      at java.lang.Runtime.exec(Runtime.java:620)
      at java.lang.Runtime.exec(Runtime.java:528)
      at org.apache.sqoop.util.Executor.exec(Executor.java:76)
      at org.apache.sqoop.hive.HiveImport.executeExternalHiveScript(HiveImport.java:382)
      at org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:335)
      at org.apache.sqoop.hive.HiveImport.importTable(HiveImport.java:239)
      at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:514)
      at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
      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)
      at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
      Caused by: java.io.IOException: error=2, No such file or directory
      at java.lang.UNIXProcess.forkAndExec(Native Method)
      at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
      at java.lang.ProcessImpl.start(ProcessImpl.java:134)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
      … 14 more

    • #6565
      DataFlair TeamDataFlair Team
      Spectator

      Your post is clearly saying “No such file or directory”. It’d be better if you post your command along with error.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.