您的位置:首页 > 运维架构

hadoop 中的一个属性及启示

2016-02-25 13:36 323 查看
1. 


Hadoop+HBase
cluster on windows: winutils not found

When trying to start hbase from my master (./bin/start-hbase.sh), I get the following error:

.......

We've found it. So, in Hadoop's Shell.java, you'll find that there are two options to communicate the Hadoop-path.
// first check the Dflag hadoop.home.dir with JVM scope
String home = System.getProperty("hadoop.home.dir");

// fall back to the system/user-global env variable
if (home == null) {
home = System.getenv("HADOOP_HOME");
}


After trial and error, we found that in the HBase options (HBase's hbase-env.sh, HBASE_OPTS variable), you'll need to add in this option with the Windows(!) path to Hadoop. In our case, we needed to add 
-Dhadoop.home.dir=D:/hadoop
 .

Good luck to anyone else who happens to stumble across this ;).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hadoop