简体   繁体   English

使用Hadoop-2.2.0启动hbase时出错

[英]error in starting hbase with Hadoop-2.2.0

I have installed and configured Hbase-0.94.14 with hadoop-2.2.0. 我已经使用hadoop-2.2.0安装并配置了Hbase-0.94.14。 I'm getting following error while starting HBase. 启动HBase时出现以下错误。

Error: Could not find or load main class org.apache.hadoop.util.PlatformName

I have not found any reasonable material that explains me, why is this happening. 我没有找到任何合理的材料来解释我,为什么会这样。 I believe I'm missing some .jar file, but don't know which one. 我相信我缺少一些.jar文件,但不知道是哪个文件。 there is a huge change in Hadoop structure. Hadoop结构发生了巨大变化。 With hadoop-1.x only one hadoop-core.x.jar file was enough. 对于hadoop-1.x,仅一个hadoop-core.x.jar文件就足够了。 But in hadoop.2.x I have not found hadoop-core jar. 但是在hadoop.2.x中,我没有找到hadoop-core jar。 If any body knows why it is happening, please help me. 如果有人知道为什么会发生,请帮助我。

NOTE: I'm having this error while starting HBase. 注意:启动HBase时出现此错误。 Hadoop is running fine. Hadoop运行良好。

That's the problem about your hadoop classpath and you can refer this if it helps. 那是关于您的hadoop类路径的问题,如果有帮助,您可以参考这个 Obviously it can't find the class and its jar file. 显然,它找不到该类及其jar文件。 I'm not sure about the newest hadoop.2.x but setting the HADOOP_CLASSPATH may help you find the jars. 我不确定最新的hadoop.2.x,但是设置HADOOP_CLASSPATH可能有助于您找到jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM