sqoop 导入 hive SemanticException [Error 10072]: Database does not exist

sqoop 导入hive 报错FAILED: SemanticException [Error 10072]: Database does not exist: xxxx

 

解决方法:复制hive/conf下的hive-site.xml到sqoop工作目录的conf下

实际上该database是在hive中存在的,由于sqoop下的配置文件太旧引起的,一般会出现在,换台机器执行sqoop

 

CDH 默认路径在: /etc/hive/conf/hive-site.xml  copy到 /etc/sqoop/conf/hive-site.xml

posted @ 2018-12-20 14:53  zuoql  阅读(3113)  评论(0编辑  收藏  举报