【问题标题】:sqoop hive import "has not been cleaned" exceptionsqoop hive 导入“尚未清理”异常
【发布时间】:2023-03-25 08:40:01
【问题描述】:

当我尝试运行以下 sqoop 命令时

sqoop import \
--connect jdbc:mysql://hostname.com:3306/retail_db \
--username **** \
--password **** \
--table customers \
--hive-import \
--hive-database hariharan_hive \
--hive-table hivecustomers \
--hive-overwrite

我遇到了一个例外

" 失败并出现异常目标目录 hdfs://nn01.itversity.com:8020/apps/hive/warehouse/hariharan_hive.db/hivecustomers 还没有清理干净。 "

但是异常中给出的路径不存在.. 有人可以帮我吗?..

【问题讨论】:

  • 如果密码和主机名是真实的请改成一个

标签: hive sqoop


【解决方案1】:

如何通过以下命令清除 Hive 元存储:

(hive shell)> msck repair table hariharan_hive.hivecustomers;

【讨论】:

    猜你喜欢
    • 2016-08-07
    • 2017-02-03
    • 2016-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-30
    • 2017-07-01
    • 2017-07-12
    相关资源
    最近更新 更多