Hadoop Configuration() 对象未获取 /etc/hadoop/conf/core-site.xml
Hadoop Configuration() object not picking up /etc/hadoop/conf/core-site.xml
我正在启动一个加载创建 new YarnConfiguration()
对象的应用程序。
当我 运行 时,我将 HADOOP_CONF_DIR
设置为 /etc/hadoop/conf
配置文件所在的位置。
然后我开始申请;
yarn -jar jarname.jar --config.file config/local.properties
并出现以下错误;
INFO: Connecting to ResourceManager at /0.0.0.0:8032
Jul 25, 2016 12:33:49 PM org.apache.hadoop.ipc.Client handleConnectionFailure
INFO: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
所以它似乎没有获取另一个客户端上 运行 的 yarn 资源管理器的详细信息。
yarn-site.xml
中有正确的值。
忽略我花了多长时间才发现的耻辱,以防其他人遇到同样的问题 -
归结为 -jar
不正确。该命令必须是 yarn jar
,不带连字符。
我正在启动一个加载创建 new YarnConfiguration()
对象的应用程序。
当我 运行 时,我将 HADOOP_CONF_DIR
设置为 /etc/hadoop/conf
配置文件所在的位置。
然后我开始申请;
yarn -jar jarname.jar --config.file config/local.properties
并出现以下错误;
INFO: Connecting to ResourceManager at /0.0.0.0:8032
Jul 25, 2016 12:33:49 PM org.apache.hadoop.ipc.Client handleConnectionFailure
INFO: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
所以它似乎没有获取另一个客户端上 运行 的 yarn 资源管理器的详细信息。
yarn-site.xml
中有正确的值。
忽略我花了多长时间才发现的耻辱,以防其他人遇到同样的问题 -
归结为 -jar
不正确。该命令必须是 yarn jar
,不带连字符。