赞
踩
错误提示:
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');
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。