Slave nodes not in Yarn ResourceManager

后端 未结 3 1557
谎友^
谎友^ 2021-01-02 20:19

I\'ve set up a 3 node Apache Hadoop cluster. On master node, I can see

[hadoop-conf]$ jps
16856 DataNode
17051 SecondaryNameNode
16701 NameNode
21601 Resour         


        
3条回答
  •  孤街浪徒
    2021-01-02 21:13

    Problem solved. Some configuration should be done in yarn-site.xml to let the nodemanager know where is the resource manager. Specifically, I added this property into yarn-site.xml:

      
        yarn.resourcemanager.hostname
        master
      
    

    Reason: the default value in yarn-default.xml is 0.0.0.0, and many properties use this hostname to contact resource manager, such as

    
        yarn.resourcemanager.address
        ${yarn.resourcemanager.hostname}:8032
    
    

    Answer credits: https://stackoverflow.com/a/22125279/3209177

提交回复
热议问题