mapred-site.xml中$ PWD的含义

时间:2016-01-06 07:23:59

标签: hadoop mapreduce

我需要帮助来了解mapred-site.xml上的以下配置。

<property>
      <name>mapreduce.application.classpath</name>
      <value>$PWD/mr-framework/hadoop/share/hadoop/mapreduce/*:$PWD/mr-framework/hadoop/share/hadoop/mapreduce/lib/*:$PWD/mr-framework/hadoop/share/hadoop/common/*:$PWD/mr-framework/hadoop/share/hadoop/common/lib/*:$PWD/mr-framework/hadoop/share/hadoop/yarn/*:$PWD/mr-framework/hadoop/share/hadoop/yarn/lib/*:$PWD/mr-framework/hadoop/share/hadoop/hdfs/*:$PWD/mr-framework/hadoop/share/hadoop/hdfs/lib/*:$PWD/mr-framework/hadoop/share/hadoop/tools/lib/*:/usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar:/etc/hadoop/conf/secure</value>
    </property>

$ PWD的价值是什么(就像linux的正常pwd一样)和$ hdp.version?设置这些值的地方?

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

$ PWD是当前工作目录的路径名,$ hdp.version是您正在使用的Hortonworks数据平台(HDP)的版本。它们设置在~/.bashrc/etc/environment~/.profile