2016-05-17 47 views
0

enter image description here我试图整合我的ES版本2.2.0使用Hadoop HDFS.In我envoirnment,我有1个主节点和数据节点。在我的主节点上安装了我的Es。 但是,当它与HDFS集成时,我的资源管理器应用程序作业会停留在Accepted状态。 不知何故,我发现链接改变我的纱线-site.xml中设置:ResouceManager得到stucked在接受国家

<property> 
    <name>yarn.nodemanager.resource.memory-mb</name> 
    <value>2200</value> 
    <description>Amount of physical memory, in MB, that can be allocated for containers.</description> 
    </property> 

    <property> 
    <name>yarn.scheduler.minimum-allocation-mb</name> 
    <value>500</value> 
    </property> 

我也做到了这一点,但它不给我预期的输出。

配置: -

我的核心-site.xml中

<property> 
    <name>hadoop.tmp.dir</name>   
    <value>/app/hadoop/tmp</value> 
    <description>A base for other temporary directories. 
    </description> </property> 

    <property> <name>fs.default.name</name> 
    <value> 
    hdfs://localhost:54310 
    </value> 
    <description>The name of the default file system. A URI whose scheme and authority determine the FileSystem implementation. The uri's scheme determines the config property (fs.SCHEME.impl) naming the FileSystem implementation class. The uri's authority is used to determine the host, port, etc. for a filesystem. 
    </description> 
    </property> 

我mapred-site.xml中,

<property> 
    <name>mapred.job.tracker</name> 
    <value>localhost:54311</value> 
    <description>The host and port that the MapReduce job tracker runs at. If "local", then jobs are run in-process as a single map and reduce task. </description> 
    </property> 

我HDFS-site.xml中,

<property> 
    <name>dfs.replication</name> <value>1</value> <description>Default block replication. The actual number of replications can be specified when the file is created. The default is used if replication is not specified in create time. </description> 
    </property> 

请帮我改我的RM乔b运行状态。因此,我可以在HDFS上使用我的elasticsearch数据。

+0

日志,我们需要日志..尝试从以下位置提取相关数据:/var/log/hadoop-yarn/yarn-yarn-resourcemanager-mpenode1.cern.ch.log – Serhiy

回答

0

如果截图是正确的 - 你有0节点管理器 - 这样的应用程序无法运行开始 - 你需要开始至少1个节点管理器,从而使应用程序主机和任务以后就可以开始。

+0

感谢您的回复,我现在纠正了它nodemanager正在工作,但仍处于Accepted状态。 –