问题描述
我是新来的Apache Hadoop的。我安装了多节点集群,但我得到两个错误。我不知道什么样的错误,这些都是与他们为什么generated.I对错误很多一派,但我没能找出错误的产生背后的原因。
I am new to apache hadoop. I am installing the multi-node cluster but I am getting two errors. I am not aware about what kind of errors these are and why they have generated.I have googled alot about the errors but I was not able to find out the reason behind the error generation.
Error:Could not find or load main class org.apache.hadoop.util.PlatformName
Error: Could not find or load main class org.apache.hadoop.hdfs.server.datanode.DataNode
这两个错误是由于数据节点或奴隶产生的。我需要知道的那种错误的,因为产生的原因,以及如何解决这些问题。谢谢你。
Both the errors are generated due to the datanode or slaves. I need to know about the kind of errors, the reason for generation,and how to resolve them. Thank you.
推荐答案
变更文件夹,存放:
hbase.zookeeper.property.dataDir
Change folder which stores: hbase.zookeeper.property.dataDir
例如:
sudo mkdir hb
chown hduser:hadoop /home/hduser/hb
和HBase的中-site.xml中更改此属性。
And in hbase-site.xml change this property
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hduser/hb/zookeeper</value>
</property>
这篇关于错误:无法找到或加载主类org.apache.hadoop.hdfs.server.datanode.DataNode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!