hive 中执行showdatabases报错:return code 1 from org.apa

hive> show databases;

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient


查看日志信息:

./hive -hiveconf hive.hadoop.logger=DEBUG,console(hive 中查看日志信息命令,我本机是hadoop用户)

hive 中执行showdatabases报错:return code 1 from org.apa_第1张图片

解决方法:

GRANT ALL PRIVILEGES ON *.* TO 'hadoop'@'master' IDENTIFIED BY 'hadoop' WITH GRANT OPTION;

flush privileges;


最后ok.

你可能感兴趣的:(return,code,hive,from,1)