一,hive初始化原数据库时出现的问题
sudo chmod -R 777 /opt/module/hive
二,启动hadoop时,只启动了dfs,ResourceManager没有启动
解决方法:查看resourcemaneger的日志,在/opt/module/hadoop-3.1.3/etc/hadoop,看到
Error starting ResourceManager
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: RM uses DefaultResourceCalculator which used only memory as resource-type but invalid resource-types specified
原因:未设置正确的resource-types.xml文件,修改该文件为:
<configuration>
<property>
<name>yarn.resource-type</name>
<value>resource1, resource2</value>
</property>
<property>
<name>yarn.resource-type.resource1.units</name>
<value>G</value>
</property>
<property>
<name>yarn.resource-type.resource2.minimum</name>
<value>1</value>
</property>
<property>
<name>yarn.resource-type.resource2.maximum</name>
<value>1024</value>
</property>
</configuration>