pai icon indicating copy to clipboard operation
pai copied to clipboard

Can Not Start Hadoop-node-manager

Open Wenbo93 opened this issue 8 years ago • 4 comments

File information - nodelabel.mirror screenshot from 2018-01-23 11-39-21

The host_config['ip'] is not rendered.

Wenbo93 avatar Jan 23 '18 03:01 Wenbo93

  1. Can you provide us the examples of infra-node ( starting namenode and resourcemanager ) and worker-node ( starting datanode and nodemanager ) in your cluster-configuration? Hiding the IP address with char *
  2. Can you check the host-configuration.yaml after generating in the path pai/servce-deployment/bootstrap/cluster-configuration/host-configuration? To confirm the ip field of each node is generated correctly.

ydye avatar Jan 23 '18 04:01 ydye

datanode-hdfs-site.xml.txt namenode-hdfs-site.xml.txt nodemanager-yarn-site.xml.txt resourcemanager-yarn-site.xml.txt There are no ip in these files.

  1. The host-configuration.yaml like this:
master:
    ip: 192.168.1.83
    dataFolder: /mnt
    zkid: "1"
    hdfsrole: master
    yarnrole: master
    zookeeper: "true"
    jobhistory: "true"
    launcher: "true"
    restserver: "true"
    webportal: "true"
    

worker-01:
    ip: 192.168.1.41
    dataFolder: /mnt
    machinetype: gpu
    hdfsrole: worker
    yarnrole: worker
  1. In the pod of hadoop-name-node-ds, we can put and get files using "$HADOOPHOME/bin/hdfs dfs get(or put) ..." , but the files can not be downloaded through hadoop web portal(http://ip:50070). The same state of {{host_config['ip']}}.

@ydye

xwzheng1020 avatar Jan 23 '18 09:01 xwzheng1020

@xwzheng1020
https://github.com/Microsoft/pai/blob/1e48bcda1dc59153921103892fff5622dec8360d/service-deployment/bootstrap/hadoop-service/hadoop-configuration/nodemanager-generate-script.sh#L23 https://github.com/Microsoft/pai/blob/1e48bcda1dc59153921103892fff5622dec8360d/service-deployment/host-configure/host-configure.py#L84 In your cluster-configuration, the name such as worker-01 should be same as the hostname of the machine. Or the script can't find the corresponding entry in the host-configuration.yaml.

ydye avatar Jan 23 '18 09:01 ydye

@ydye Thanks! That solved the problem.

Wenbo93 avatar Jan 23 '18 11:01 Wenbo93