这是sqoop的 迁移数据到hive的报错

ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Hive exited with status 2

解决方案: 1,已经尝试不是  晚上大多数说的 libthrity的原因

      2,查看自己的配置  sqoop-env.sh  如果配置的路径写的不对,对应的包就无法找到了 也会报错

        删除之前hdfs缓存的目录,然后重新执行下面语句

bin/sqoop import --connect jdbc:mysql://linux01:3306/company --username root --password 111111 --table staff --num-mappers 1 --hive-import --fields-terminated-by "\t" --hive-overwrite --hive-table staff_hive

 

相关文章:

  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-07-23
猜你喜欢
  • 2021-11-06
  • 2021-05-30
  • 2021-06-16
  • 2021-05-08
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
相关资源
相似解决方案