在hadoop 的core-site.xml添加如下内容 然后重启
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
<description>Allow the superuser oozie to impersonate any members of the group group1 and group2</description>
</property>
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
<description>The superuser can connect only from host1 and host2 to impersonate a user</description>
</property>
此处的root,是我自己的用户名。大家根据自己的实际情况,进行修改。
修改完重启hadoop集群
接着启动
1、hive元数据服务
bin/hive --service metastore
2、监视hive日志
tail -F hive.log