阅读背景:

Cloudera CDH VM默认HADOOP_HOME位置

来源:互联网 

What is the default HADOOP_HOME location in Cloudera CDH4 VM.

Cloudera CDH4 VM中的默认HADOOP_HOME位置是什么。

echo $HADOOP_HOME returns blank.

echo $ HADOOP_HOME返回空白。

2 个解决方案

#1


3  

/usr/lib/hadoop is the default HADOOP_HOME in CDH4.

/ usr / lib / hadoop是CDH4中的默认HADOOP_HOME。

Regarding deprecation, it appears HADOOP_PREFIX is the replacement for HADOOP_HOME:

关于弃用,看来HADOOP_PREFIX是HADOOP_HOME的替代品:

$HADOOP_HOME is deprecated

$ HADOOP_HOME已弃用

I believe HADOOP_MAPRED_HOME is only used for the map reduce infrastructure, if you are using HDFS directly, then you probably want HADOOP_PREFIX.

我相信HADOOP_MAPRED_HOME仅用于map reduce基础结构,如果你直接使用HDFS,那么你可能想要HADOOP_PREFIX。

#2


1  

Try to echo : HADOOP_MAPRED_HOME .
AFAIK, HADOOP_HOME is deprecated and HADOOP_MAPRED_HOME is the new one for MapReduce1 and MapReduce2.

尝试回应:HADOOP_MAPRED_HOME。不推荐使用AFAIK,HADOOP_HOME,而HADOOP_MAPRED_HOME是MapReduce1和MapReduce2的新增功能。


分享到: