Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
remove nm host_ip in yarn-site.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mzmssg committed Jan 18, 2019
1 parent 5095ecf commit 8a725b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ sed -i "s/{TIMELINE_SERVER_ADDRESS}/${TIMELINE_SERVER_ADDRESS}/g" $HADOOP_CONF_
sed -i "s#{HOST_YARN_NODEMANAGER_STORAGE}#${HOST_YARN_NODEMANAGER_STORAGE}#g" $HADOOP_CONF_DIR/yarn-site.xml
sed -i "s#{HOST_HADOOP_TMP_STORAGE}#${HOST_HADOOP_TMP_STORAGE}#g" $HADOOP_CONF_DIR/yarn-site.xml
sed -i "s#{CURRENT_IMAGE_NAME}#${CURRENT_IMAGE_NAME}#g" $HADOOP_CONF_DIR/yarn-site.xml
sed -i "s/{POD_IP}/${POD_IP}/g" $HADOOP_CONF_DIR/yarn-site.xml

sed -i "s/{HDFS_ADDRESS}/${HDFS_ADDRESS}/g" $HADOOP_CONF_DIR/core-site.xml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

<property>
<name>yarn.nodemanager.hostname</name>
<value>{{ host_config['ip'] }}</value>
<value>{POD_IP}</value>
</property>

<property>
Expand Down Expand Up @@ -137,7 +137,7 @@

<property>
<name>yarn.nodemanager.address</name>
<value>{{ host_config['ip'] }}:8041</value>
<value>{POD_IP}:8041</value>
</property>

<property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ spec:
value: "3072"
- name: NV_DRIVER
value: /var/drivers/nvidia/current
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
imagePullSecrets:
- name: {{ cluster_cfg["cluster"]["docker-registry"]["secret-name"] }}
volumes:
Expand Down

0 comments on commit 8a725b1

Please sign in to comment.