当前位置:   article > 正文

hive FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.

failed: execution error, return code 1 from org.apache.hadoop.hive.ql.exec.d

错误提示:

hive> drop table java_file;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:java.lang.IllegalArgumentException: java.net.UnknownHostException: myhadoop)

 

原因:

1.因为更改了主机名称,将myhadoop修改为dwhadoop,同时core-site.xml也更改了,但是:java_file表是在修改之前创建的,元数据库中对应的信息没有修改过来(元数据库是mysql),更改即可。

update DBS setDB_LOCATION_URI=REPLACE (DB_LOCATION_URI,'myhadoop','dwhadoop');

update SDS set LOCATION=REPLACE(LOCATION,'myhadoop','dwhadoop');
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/597360
推荐阅读
相关标签
  

闽ICP备14008679号