从sqoop 1.4.7导入到HDFS的表很好。导入到蜂巢3.1.1时

时间:2019-05-08 06:28:35

标签: hadoop import hive sqoop

sqoop import --connect jdbc:mysql://localhost:3306/sqoopdb --username dsa -P 
             --split-by id --columns id,name --table employee --target-dir /test1 
             --fields-terminated-by "," --hive-import --create-hive-table 
             --hive-table employee_sqoop

将来自sqoop 1.4.7的表导入HDFS是可以的。导入到蜂巢3.1.1中时

  

错误[主要]工具。ImportTool:导入失败:java.io.IOException:Hive CliDriver退出,状态为= 1

这是伪造的hadoop 3.1.1集群,其中的hbase,sqoop和hive具有最新版本。...

  1. 我将libthrift * .jar文件从hive / lib复制到sqoop / lib目录
  2. 我还将HBASE_HOME设置为不存在的路径
  3. 将jackson-annotations-2.9.5.jar,jackson-core-2.9.5.jar,jackson-databind-2.9.5.jar文件复制到sqoop / lib文件夹*
ERROR [main] tool.ImportTool: Import failed: java.io.IOException: Hive CliDriver exited with status=1   at
 org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:355)
    at org.apache.sqoop.hive.HiveImport.importTable(HiveImport.java:241)
    at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:537)
    at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:628)    at
 org.apache.sqoop.Sqoop.run(Sqoop.java:147)     at
 org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)  at
 org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)    at
 org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)     at
 org.apache.sqoop.Sqoop.runTool(Sqoop.java:243)     at
 org.apache.sqoop.Sqoop.main(Sqoop.java:252)

0 个答案:

没有答案