我爱编程

Hadoop 问题集及解决办法

2018-01-04  本文已影响0人  manlier

Hadoop 问题集及解决办法

<property>
       <name>hbase.zookeeper.quorum</name>
       <value>localhost</value>
   </property>
   <property>
       <name>zookeeper.znode.parent</name>
       <value>/hbase-unsecure</value>
   </property>

需要将hbase依赖添加到mapreduce中

在mapred-site.xml文件中添加如下配置:


<property>
    <name>mapreduce.application.classpath</name>
    <value>${你的mapreduce框架所用到的库的路径}:/usr/hdp/2.6.4.0-91/hbase/conf:/usr/hdp/2.6.4.0-91/hbase:/usr/hdp/2.6.4.0-91/hbase/lib/*</value>
</property>

重启mapreduce框架

相关引用

Just remove hsperfdata_ folder from your /tmp folder and run jps again.

/tmp can be considered as a typical directory in most cases. You can recreate it, give it to root (chown root:root /tmp) and set 1777 permissions on it so that everyone can use it (chmod 1777 /tmp). This operation will be even more important if your /tmp is on a separate partition (which makes it a mount point).

检查yarn配置的主机是否正确

/tmp文件夹权限不正确,需更改为rwxr-xr-x,在windows 或 WSL下,/tmp文件夹权限不能随意更改,因此应更改hadoop临时文件夹路径,不能指向/tmp

上一篇下一篇

猜你喜欢

热点阅读