pai icon indicating copy to clipboard operation
pai copied to clipboard

Container is running beyond virtual memory limits

Open hellocandy opened this issue 7 years ago • 9 comments

Organization Name: advantech

Short summary about the issue/question:

Brief what process you are following: We can reproduce the issue 1151 now, bellow is the log of the job:

Start Time: 2019/2/13 下午3:43:31

Finish Time: 2019/2/13 下午3:44:47

Exit Diagnostics:

[ExitDiagnostics]: Container Killed since it exceeded the request virtual memory [ExitType]: NON_TRANSIENT

[ExitCustomizedDiagnostics]: ExitCode: -103 [ExitDiagnostics]: [2019-02-13 07:44:33.796]Container [pid=188212,containerID=container_e04_1548839040935_6713_01_000002] is running beyond virtual memory limits. Current usage: 264.3 MB of 1 GB physical memory used; 2.8 GB of 2.1 GB virtual memory used. Killing container. Dump of the process-tree for container_e04_1548839040935_6713_01_000002 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 188295 188212 188212 188212 (bash) 0 1 18620416 780 /bin/bash -c source YarnContainerScripts/0.sh 1>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stdout 2>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stderr |- 191569 188295 188212 188212 (java) 507 36 2981171200 65340 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dproc_dfs -Xmx4096m -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/log/hadoop/ -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/local/hadoop -Dhadoop.id.str=admin -Dhadoop.root.logger=INFO,console -Djava.library.path=/usr/local/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Xmx1024m -Dhadoop.security.logger=INFO,console org.apache.hadoop.fs.FsShell -get hdfs://124.9.14.16:9000/Container/admin/admin~ff0fe9d7-6206-422d-b013-be5a99f78af1/DockerContainerScripts/0.sh tmp/pai-root/bootstrap/docker_bootstrap.sh |- 191533 188300 188212 188212 (sleep) 0 0 4481024 166 sleep 20 |- 188212 188154 188212 188212 (bash) 3 0 18477056 712 bash -c cp -r /docker/* /usr/bin/ && cp /hadoop-configuration-for-jobs/* $HADOOP_CONF_DIR/ && bash "/var/lib/hadoopdata/nm-local-dir/usercache/admin/appcache/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/launch_container.sh" |- 188300 188295 188212 188212 (bash) 0 0 18550784 653 /bin/bash -c source YarnContainerScripts/0.sh 1>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stdout 2>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stderr [2019-02-13 07:44:33.796] [2019-02-13 07:44:35.705]Container killed on request. Exit code is 143[2019-02-13 07:44:35.706] [2019-02-13 07:44:35.707]Container exited with a non-zero exit code 143. [2019-02-13 07:44:35.707]

[ExitCustomizedDiagnostics]:

[jupyter]: [LastCompletedTask]: [TaskStatus]: { "taskIndex" : 0, "taskRoleName" : "jupyter", "taskState" : "TASK_COMPLETED", "taskRetryPolicyState" : { "retriedCount" : 0, "succeededRetriedCount" : 0, "transientNormalRetriedCount" : 0, "transientConflictRetriedCount" : 0, "nonTransientRetriedCount" : 0, "unKnownRetriedCount" : 0 }, "taskCreatedTimestamp" : 1550043831619, "taskCompletedTimestamp" : 1550043876019, "taskServiceStatus" : { "serviceVersion" : 0 }, "containerId" : "container_e04_1548839040935_6713_01_000002", "containerHost" : "124.9.14.16", "containerIp" : "124.9.14.16", "containerPorts" : "jupyter:6038;http:6039;ssh:6040;", "containerGpus" : 0, "containerLogHttpAddress" : "http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/", "containerConnectionLostCount" : 0, "containerIsDecommissioning" : null, "containerLaunchedTimestamp" : 1550043833071, "containerCompletedTimestamp" : 1550043876015, "containerExitCode" : -103, "containerExitDiagnostics" : "[2019-02-13 07:44:33.796]Container [pid=188212,containerID=container_e04_1548839040935_6713_01_000002] is running beyond virtual memory limits. Current usage: 264.3 MB of 1 GB physical memory used; 2.8 GB of 2.1 GB virtual memory used. Killing container.\nDump of the process-tree for container_e04_1548839040935_6713_01_000002 :\n\t|- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE\n\t|- 188295 188212 188212 188212 (bash) 0 1 18620416 780 /bin/bash -c source YarnContainerScripts/0.sh 1>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stdout 2>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stderr \n\t|- 191569 188295 188212 188212 (java) 507 36 2981171200 65340 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dproc_dfs -Xmx4096m -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/log/hadoop/ -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/local/hadoop -Dhadoop.id.str=admin -Dhadoop.root.logger=INFO,console -Djava.library.path=/usr/local/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Xmx1024m -Dhadoop.security.logger=INFO,console org.apache.hadoop.fs.FsShell -get hdfs://124.9.14.16:9000/Container/admin/admin~ff0fe9d7-6206-422d-b013-be5a99f78af1/DockerContainerScripts/0.sh tmp/pai-root/bootstrap/docker_bootstrap.sh \n\t|- 191533 188300 188212 188212 (sleep) 0 0 4481024 166 sleep 20 \n\t|- 188212 188154 188212 188212 (bash) 3 0 18477056 712 bash -c cp -r /docker/* /usr/bin/ && cp /hadoop-configuration-for-jobs/* $HADOOP_CONF_DIR/ && bash "/var/lib/hadoopdata/nm-local-dir/usercache/admin/appcache/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/launch_container.sh" \n\t|- 188300 188295 188212 188212 (bash) 0 0 18550784 653 /bin/bash -c source YarnContainerScripts/0.sh 1>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stdout 2>/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002/stderr \n[2019-02-13 07:44:33.796]\n[2019-02-13 07:44:35.705]Container killed on request. Exit code is 143[2019-02-13 07:44:35.706]\n[2019-02-13 07:44:35.707]Container exited with a non-zero exit code 143. [2019-02-13 07:44:35.707]\n", "containerExitType" : "NON_TRANSIENT" } [jupyter]: [LastCompletedTask]: [ContainerLocations]: ContainerLogHttpAddress: http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/ ContainerLogNetworkPath: 124.9.14.16:/var/lib/yarn/userlogs/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002 ContainerCacheNetworkPath: 124.9.14.16:/var/lib/hadoopdata/nm-local-dir/usercache/admin/appcache/application_1548839040935_6713/container_e04_1548839040935_6713_01_000002

[ApplicationCompletionReason]: [jupyter]: FailedTaskCount 1 has reached MinFailedTaskCount 1

How to reproduce it:

OpenPAI Environment:

  • OpenPAI version:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.):
  • Others:

Anything else we need to know:

hellocandy avatar Feb 18 '19 07:02 hellocandy

@hellocandy In v0.10, we raise the virtual memory ratio to 6, then this issue should disappear.

For version before that, you could allocate a larger memory in your job description. Or you could add related patch by yourself, then stop and start hadoop-node-manager. #2072 .

mzmssg avatar Feb 18 '19 10:02 mzmssg

When will the v0.10 release?

hellocandy avatar Feb 18 '19 10:02 hellocandy

@hellocandy We doesn't commit it but it will come soon. You could allocate 2G memory in your job description, it should work.

mzmssg avatar Feb 18 '19 10:02 mzmssg

#1151

fanyangCS avatar Feb 18 '19 11:02 fanyangCS

@hellocandy, the expected release date of 0.10.y is late Feb. or early March.

fanyangCS avatar Feb 18 '19 11:02 fanyangCS

Could you provide job log? We need to know which command consumes so much virtual memory

mzmssg avatar Feb 18 '19 13:02 mzmssg

Log Type: YarnContainerDebug.log

Log Upload Time: Wed Feb 13 07:44:38 +0000 2019

Log Length: 18712

++ PS4='+[\t] ' ++[07:44:02] trap exit_handler EXIT ++[07:44:02] mkdir -p /tmp/pai-root/alive/application_1548839040935_6713 ++[07:44:02] gpu_id= ++[07:44:02] nvidia_devices= ++[07:44:02] printf '%s %s\n%s\n\n' '[INFO]' GPU_ID '' ++[07:44:02] printf '%s %s\n%s\n\n' '[INFO]' NVIDIA_DEVICES '' ++[07:44:02] ssh_config_file=tmp/pai-root/ssh_config ++[07:44:02] mkdir -p tmp/pai-root/ssh_config ++[07:44:02] /bin/true ++[07:44:02] ENV_LIST=env.list ++[07:44:02] cat ++[07:44:02] touch /tmp/pai-root/alive/application_1548839040935_6713/yarn_container_e04_1548839040935_6713_01_000002 ++[07:44:02] port_list=(${CONTAINER_PORTS//;/ }) ++[07:44:02] for ports in '"${port_list[@]}"' ++[07:44:02] sleep 20 +++[07:44:02] cut -f 1 -d: ++[07:44:02] port_label=jupyter +++[07:44:02] cut -f 2 -d: ++[07:44:02] export PAI_CONTAINER_HOST_jupyter_PORT_LIST=6038 ++[07:44:02] PAI_CONTAINER_HOST_jupyter_PORT_LIST=6038 +++[07:44:02] cut -f 2 -d: ++[07:44:02] echo PAI_CONTAINER_HOST_jupyter_PORT_LIST=6038 ++[07:44:02] for ports in '"${port_list[@]}"' +++[07:44:02] cut -f 1 -d: ++[07:44:02] port_label=http +++[07:44:02] cut -f 2 -d: ++[07:44:02] export PAI_CONTAINER_HOST_http_PORT_LIST=6039 ++[07:44:02] PAI_CONTAINER_HOST_http_PORT_LIST=6039 +++[07:44:02] cut -f 2 -d: ++[07:44:02] echo PAI_CONTAINER_HOST_http_PORT_LIST=6039 ++[07:44:02] for ports in '"${port_list[@]}"' +++[07:44:02] cut -f 1 -d: ++[07:44:02] port_label=ssh +++[07:44:02] cut -f 2 -d: ++[07:44:02] export PAI_CONTAINER_HOST_ssh_PORT_LIST=6040 ++[07:44:02] PAI_CONTAINER_HOST_ssh_PORT_LIST=6040 +++[07:44:02] cut -f 2 -d: ++[07:44:02] echo PAI_CONTAINER_HOST_ssh_PORT_LIST=6040 +++[07:44:02] cut -f 1 -d, ++[07:44:02] echo PAI_CONTAINER_HOST_PORT=6039 +++[07:44:02] cut -f 1 -d, ++[07:44:02] echo PAI_CONTAINER_SSH_PORT=6040 ++[07:44:02] get_host_list env.list ++[07:44:02] delay_time=20 ++[07:44:02] info_source=webhdfs ++[07:44:02] true ++[07:44:02] [[ webhdfs = \w\e\b\h\d\f\s ]] +++[07:44:02] jq -r .aggregatedFrameworkStatus.aggregatedTaskRoleStatuses +++[07:44:02] curl -L -H 'Accept: application/json' 'http://124.9.14.16:5070/webhdfs/v1/Launcher/admin~ff0fe9d7-6206-422d-b013-be5a99f78af1/FrameworkInfo.json?op=OPEN' ++[07:44:02] taskrole_statuses='{}' ++[07:44:02] jq -re '.[].taskStatuses.taskStatusArray[].containerIp' +++[07:44:02] echo '{}' ++[07:44:02] '[' 4 -eq 0 ']' ++[07:44:02] printf '%s %s\n' '[WARNING]' 'Failed to request info from webhdfs, sleep 20 s ...' ++[07:44:02] sleep 20s ++[07:44:22] '[' -f /tmp/pai-root/alive/application_1548839040935_6713/docker_container_e04_1548839040935_6713_01_000002 ']' ++[07:44:22] /bin/true ++[07:44:22] touch /tmp/pai-root/alive/application_1548839040935_6713/yarn_container_e04_1548839040935_6713_01_000002 ++[07:44:22] sleep 20 ++[07:44:22] [[ 20 -ge 300 ]] ++[07:44:22] [[ webhdfs = \w\e\b\h\d\f\s ]] ++[07:44:22] delay_time=40 ++[07:44:22] true ++[07:44:22] [[ webhdfs = \w\e\b\h\d\f\s ]] +++[07:44:22] curl -L -H 'Accept: application/json' 'http://124.9.14.16:5070/webhdfs/v1/Launcher/admin~ff0fe9d7-6206-422d-b013-be5a99f78af1/FrameworkInfo.json?op=OPEN' +++[07:44:22] jq -r .aggregatedFrameworkStatus.aggregatedTaskRoleStatuses ++[07:44:22] taskrole_statuses='{ "jupyter": { "taskRoleStatus": { "taskRoleName": "jupyter", "taskRoleRolloutStatus": { "overallRolloutServiceVersion": null, "overallRolloutStatus": "UNKNOWN", "overallRolloutStartTimestamp": null, "overallRolloutEndTimestamp": null, "currentRolloutScaleUnit": null, "currentRolloutTaskIndexes": null, "currentRolloutStatus": "UNKNOWN", "currentRolloutStartTimestamp": null, "currentRolloutEndTimestamp": null }, "frameworkVersion": 10 }, "taskStatuses": { "taskRoleName": "jupyter", "taskStatusArray": [ { "taskIndex": 0, "taskRoleName": "jupyter", "taskState": "CONTAINER_RUNNING", "taskRetryPolicyState": { "retriedCount": 0, "succeededRetriedCount": 0, "transientNormalRetriedCount": 0, "transientConflictRetriedCount": 0, "nonTransientRetriedCount": 0, "unKnownRetriedCount": 0 }, "taskCreatedTimestamp": 1550043831619, "taskCompletedTimestamp": null, "taskServiceStatus": { "serviceVersion": 0 }, "containerId": "container_e04_1548839040935_6713_01_000002", "containerHost": "124.9.14.16", "containerIp": "124.9.14.16", "containerPorts": "jupyter:6038;http:6039;ssh:6040;", "containerGpus": 0, "containerLogHttpAddress": "http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/", "containerConnectionLostCount": 0, "containerIsDecommissioning": null, "containerLaunchedTimestamp": 1550043833071, "containerCompletedTimestamp": null, "containerExitCode": null, "containerExitDiagnostics": null, "containerExitType": null } ], "frameworkVersion": 10 } } }' ++[07:44:22] jq -re '.[].taskStatuses.taskStatusArray[].containerIp' +++[07:44:22] echo '{' '"jupyter":' '{' '"taskRoleStatus":' '{' '"taskRoleName":' '"jupyter",' '"taskRoleRolloutStatus":' '{' '"overallRolloutServiceVersion":' null, '"overallRolloutStatus":' '"UNKNOWN",' '"overallRolloutStartTimestamp":' null, '"overallRolloutEndTimestamp":' null, '"currentRolloutScaleUnit":' null, '"currentRolloutTaskIndexes":' null, '"currentRolloutStatus":' '"UNKNOWN",' '"currentRolloutStartTimestamp":' null, '"currentRolloutEndTimestamp":' null '},' '"frameworkVersion":' 10 '},' '"taskStatuses":' '{' '"taskRoleName":' '"jupyter",' '"taskStatusArray":' '[' '{' '"taskIndex":' 0, '"taskRoleName":' '"jupyter",' '"taskState":' '"CONTAINER_RUNNING",' '"taskRetryPolicyState":' '{' '"retriedCount":' 0, '"succeededRetriedCount":' 0, '"transientNormalRetriedCount":' 0, '"transientConflictRetriedCount":' 0, '"nonTransientRetriedCount":' 0, '"unKnownRetriedCount":' 0 '},' '"taskCreatedTimestamp":' 1550043831619, '"taskCompletedTimestamp":' null, '"taskServiceStatus":' '{' '"serviceVersion":' 0 '},' '"containerId":' '"container_e04_1548839040935_6713_01_000002",' '"containerHost":' '"124.9.14.16",' '"containerIp":' '"124.9.14.16",' '"containerPorts":' '"jupyter:6038;http:6039;ssh:6040;",' '"containerGpus":' 0, '"containerLogHttpAddress":' '"http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/",' '"containerConnectionLostCount":' 0, '"containerIsDecommissioning":' null, '"containerLaunchedTimestamp":' 1550043833071, '"containerCompletedTimestamp":' null, '"containerExitCode":' null, '"containerExitDiagnostics":' null, '"containerExitType":' null '}' '],' '"frameworkVersion":' 10 '}' '}' '}' ++[07:44:22] '[' 0 -eq 0 ']' +++[07:44:22] jq -r '.[].taskStatuses.taskStatusArray[].containerIp' +++[07:44:22] grep -Ecv '([0-9]{1,3}.?){4}' ++++[07:44:22] echo '{' '"jupyter":' '{' '"taskRoleStatus":' '{' '"taskRoleName":' '"jupyter",' '"taskRoleRolloutStatus":' '{' '"overallRolloutServiceVersion":' null, '"overallRolloutStatus":' '"UNKNOWN",' '"overallRolloutStartTimestamp":' null, '"overallRolloutEndTimestamp":' null, '"currentRolloutScaleUnit":' null, '"currentRolloutTaskIndexes":' null, '"currentRolloutStatus":' '"UNKNOWN",' '"currentRolloutStartTimestamp":' null, '"currentRolloutEndTimestamp":' null '},' '"frameworkVersion":' 10 '},' '"taskStatuses":' '{' '"taskRoleName":' '"jupyter",' '"taskStatusArray":' '[' '{' '"taskIndex":' 0, '"taskRoleName":' '"jupyter",' '"taskState":' '"CONTAINER_RUNNING",' '"taskRetryPolicyState":' '{' '"retriedCount":' 0, '"succeededRetriedCount":' 0, '"transientNormalRetriedCount":' 0, '"transientConflictRetriedCount":' 0, '"nonTransientRetriedCount":' 0, '"unKnownRetriedCount":' 0 '},' '"taskCreatedTimestamp":' 1550043831619, '"taskCompletedTimestamp":' null, '"taskServiceStatus":' '{' '"serviceVersion":' 0 '},' '"containerId":' '"container_e04_1548839040935_6713_01_000002",' '"containerHost":' '"124.9.14.16",' '"containerIp":' '"124.9.14.16",' '"containerPorts":' '"jupyter:6038;http:6039;ssh:6040;",' '"containerGpus":' 0, '"containerLogHttpAddress":' '"http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/",' '"containerConnectionLostCount":' 0, '"containerIsDecommissioning":' null, '"containerLaunchedTimestamp":' 1550043833071, '"containerCompletedTimestamp":' null, '"containerExitCode":' null, '"containerExitDiagnostics":' null, '"containerExitType":' null '}' '],' '"frameworkVersion":' 10 '}' '}' '}' ++[07:44:22] null_line=0 ++[07:44:22] '[' 0 -eq 0 ']' ++[07:44:22] break +++[07:44:22] jq -r '.|keys[]' +++[07:44:22] echo '{' '"jupyter":' '{' '"taskRoleStatus":' '{' '"taskRoleName":' '"jupyter",' '"taskRoleRolloutStatus":' '{' '"overallRolloutServiceVersion":' null, '"overallRolloutStatus":' '"UNKNOWN",' '"overallRolloutStartTimestamp":' null, '"overallRolloutEndTimestamp":' null, '"currentRolloutScaleUnit":' null, '"currentRolloutTaskIndexes":' null, '"currentRolloutStatus":' '"UNKNOWN",' '"currentRolloutStartTimestamp":' null, '"currentRolloutEndTimestamp":' null '},' '"frameworkVersion":' 10 '},' '"taskStatuses":' '{' '"taskRoleName":' '"jupyter",' '"taskStatusArray":' '[' '{' '"taskIndex":' 0, '"taskRoleName":' '"jupyter",' '"taskState":' '"CONTAINER_RUNNING",' '"taskRetryPolicyState":' '{' '"retriedCount":' 0, '"succeededRetriedCount":' 0, '"transientNormalRetriedCount":' 0, '"transientConflictRetriedCount":' 0, '"nonTransientRetriedCount":' 0, '"unKnownRetriedCount":' 0 '},' '"taskCreatedTimestamp":' 1550043831619, '"taskCompletedTimestamp":' null, '"taskServiceStatus":' '{' '"serviceVersion":' 0 '},' '"containerId":' '"container_e04_1548839040935_6713_01_000002",' '"containerHost":' '"124.9.14.16",' '"containerIp":' '"124.9.14.16",' '"containerPorts":' '"jupyter:6038;http:6039;ssh:6040;",' '"containerGpus":' 0, '"containerLogHttpAddress":' '"http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/",' '"containerConnectionLostCount":' 0, '"containerIsDecommissioning":' null, '"containerLaunchedTimestamp":' 1550043833071, '"containerCompletedTimestamp":' null, '"containerExitCode":' null, '"containerExitDiagnostics":' null, '"containerExitType":' null '}' '],' '"frameworkVersion":' 10 '}' '}' '}' ++[07:44:22] for taskrole in '$(echo $taskrole_statuses | jq -r ".|keys[]")' ++[07:44:22] host_list= ++[07:44:22] read container_ip +++[07:44:22] jq -r '.jupyter.taskStatuses.taskStatusArray[] | .containerIp, .containerPorts, .taskIndex' +++[07:44:22] echo '{' '"jupyter":' '{' '"taskRoleStatus":' '{' '"taskRoleName":' '"jupyter",' '"taskRoleRolloutStatus":' '{' '"overallRolloutServiceVersion":' null, '"overallRolloutStatus":' '"UNKNOWN",' '"overallRolloutStartTimestamp":' null, '"overallRolloutEndTimestamp":' null, '"currentRolloutScaleUnit":' null, '"currentRolloutTaskIndexes":' null, '"currentRolloutStatus":' '"UNKNOWN",' '"currentRolloutStartTimestamp":' null, '"currentRolloutEndTimestamp":' null '},' '"frameworkVersion":' 10 '},' '"taskStatuses":' '{' '"taskRoleName":' '"jupyter",' '"taskStatusArray":' '[' '{' '"taskIndex":' 0, '"taskRoleName":' '"jupyter",' '"taskState":' '"CONTAINER_RUNNING",' '"taskRetryPolicyState":' '{' '"retriedCount":' 0, '"succeededRetriedCount":' 0, '"transientNormalRetriedCount":' 0, '"transientConflictRetriedCount":' 0, '"nonTransientRetriedCount":' 0, '"unKnownRetriedCount":' 0 '},' '"taskCreatedTimestamp":' 1550043831619, '"taskCompletedTimestamp":' null, '"taskServiceStatus":' '{' '"serviceVersion":' 0 '},' '"containerId":' '"container_e04_1548839040935_6713_01_000002",' '"containerHost":' '"124.9.14.16",' '"containerIp":' '"124.9.14.16",' '"containerPorts":' '"jupyter:6038;http:6039;ssh:6040;",' '"containerGpus":' 0, '"containerLogHttpAddress":' '"http://124.9.14.16:8042/node/containerlogs/container_e04_1548839040935_6713_01_000002/admin/",' '"containerConnectionLostCount":' 0, '"containerIsDecommissioning":' null, '"containerLaunchedTimestamp":' 1550043833071, '"containerCompletedTimestamp":' null, '"containerExitCode":' null, '"containerExitDiagnostics":' null, '"containerExitType":' null '}' '],' '"frameworkVersion":' 10 '}' '}' '}' ++[07:44:22] read container_ports ++[07:44:22] read task_index +++[07:44:22] echo 'jupyter:6038;http:6039;ssh:6040;' +++[07:44:22] grep -o 'http:[^,;]' +++[07:44:22] cut -f 2 -d: ++[07:44:22] host_list+=124.9.14.16:6039, +++[07:44:22] echo 'jupyter:6038;http:6039;ssh:6040;' +++[07:44:22] grep -o 'ssh:[^,;]' +++[07:44:22] cut -f 2 -d: ++[07:44:22] ssh_port=6040 ++[07:44:22] printf '%s\n %s\n %s\n %s\n %s\n %s\n %s\n' 'Host jupyter-0' 'HostName 124.9.14.16' 'Port 6040' 'User root' 'StrictHostKeyChecking no' 'UserKnownHostsFile /dev/null' 'IdentityFile /root/.ssh/admin~ff0fe9d7-6206-422d-b013-be5a99f78af1' ++[07:44:22] read container_ip +++[07:44:22] echo 124.9.14.16:6039, +++[07:44:22] sed 's/,$//g' ++[07:44:22] host_list=124.9.14.16:6039 ++[07:44:22] echo PAI_TASK_ROLE_jupyter_HOST_LIST=124.9.14.16:6039 ++[07:44:22] cat +++[07:44:22] cut -f 1 -d, ++[07:44:22] echo PAI_CURRENT_CONTAINER_PORT=6039 +++[07:44:22] grep -v '^#' env.list +++[07:44:22] xargs ++[07:44:22] export APP_ID=application_1548839040935_6713 FRAMEWORK_NAME=admin~ff0fe9d7-6206-422d-b013-be5a99f78af1 HADOOP_USER_NAME=admin PAI_TASK_INDEX=0 PAI_CONTAINER_HOST_IP=124.9.14.16 'PAI_CONTAINER_HOST_PORT_LIST=jupyter:6038;http:6039;ssh:6040;' PAI_CONTAINER_ID=container_e04_1548839040935_6713_01_000002 PAI_DEFAULT_FS_URI=hdfs://124.9.14.16:9000 PAI_JOB_NAME=admin~ff0fe9d7-6206-422d-b013-be5a99f78af1 PAI_USER_NAME=admin PAI_DATA_DIR= PAI_OUTPUT_DIR=hdfs://124.9.14.16:9000/Output/admin/ff0fe9d7-6206-422d-b013-be5a99f78af1 PAI_CODE_DIR= PAI_CURRENT_TASK_ROLE_NAME=jupyter PAI_CURRENT_TASK_ROLE_TASK_COUNT=1 PAI_CURRENT_TASK_ROLE_CPU_COUNT=1 PAI_CURRENT_TASK_ROLE_MEM_MB=1024 PAI_CURRENT_TASK_ROLE_SHM_MB=64 PAI_CURRENT_TASK_ROLE_GPU_COUNT=0 PAI_CURRENT_TASK_ROLE_MIN_FAILED_TASK_COUNT=1 PAI_CURRENT_TASK_ROLE_MIN_SUCCEEDED_TASK_COUNT= PAI_CURRENT_TASK_ROLE_CURRENT_TASK_INDEX=0 PAI_JOB_TASK_COUNT=1 PAI_JOB_TASK_ROLE_COUNT=1 PAI_JOB_TASK_ROLE_LIST=jupyter PAI_CONTAINER_HOST_jupyter_PORT_LIST=6038 PAI_CONTAINER_HOST_http_PORT_LIST=6039 PAI_CONTAINER_HOST_ssh_PORT_LIST=6040 PAI_CONTAINER_HOST_PORT=6039 PAI_CONTAINER_SSH_PORT=6040 PAI_TASK_ROLE_jupyter_HOST_LIST=124.9.14.16:6039 PAI_USERNAME=admin PAI_TASK_ROLE_NAME=jupyter PAI_TASK_ROLE_NUM=1 PAI_TASK_CPU_NUM=1 PAI_TASK_MEM_MB=1024 PAI_TASK_GPU_NUM=0 PAI_TASK_ROLE_INDEX=0 PAI_TASKS_NUM=1 PAI_TASK_ROLES_NUM=1 PAI_TASK_ROLE_LIST=jupyter PAI_CURRENT_CONTAINER_IP=124.9.14.16 PAI_CURRENT_CONTAINER_PORT=6039 ++[07:44:22] APP_ID=application_1548839040935_6713 ++[07:44:22] FRAMEWORK_NAME=admin~ff0fe9d7-6206-422d-b013-be5a99f78af1 ++[07:44:22] HADOOP_USER_NAME=admin ++[07:44:22] PAI_TASK_INDEX=0 ++[07:44:22] PAI_CONTAINER_HOST_IP=124.9.14.16 ++[07:44:22] PAI_CONTAINER_HOST_PORT_LIST='jupyter:6038;http:6039;ssh:6040;' ++[07:44:22] PAI_CONTAINER_ID=container_e04_1548839040935_6713_01_000002 ++[07:44:22] PAI_DEFAULT_FS_URI=hdfs://124.9.14.16:9000 ++[07:44:22] PAI_JOB_NAME=admin~ff0fe9d7-6206-422d-b013-be5a99f78af1 ++[07:44:22] PAI_USER_NAME=admin ++[07:44:22] PAI_DATA_DIR= ++[07:44:22] PAI_OUTPUT_DIR=hdfs://124.9.14.16:9000/Output/admin/ff0fe9d7-6206-422d-b013-be5a99f78af1 ++[07:44:22] PAI_CODE_DIR= ++[07:44:22] PAI_CURRENT_TASK_ROLE_NAME=jupyter ++[07:44:22] PAI_CURRENT_TASK_ROLE_TASK_COUNT=1 ++[07:44:22] PAI_CURRENT_TASK_ROLE_CPU_COUNT=1 ++[07:44:22] PAI_CURRENT_TASK_ROLE_MEM_MB=1024 ++[07:44:22] PAI_CURRENT_TASK_ROLE_SHM_MB=64 ++[07:44:22] PAI_CURRENT_TASK_ROLE_GPU_COUNT=0 ++[07:44:22] PAI_CURRENT_TASK_ROLE_MIN_FAILED_TASK_COUNT=1 ++[07:44:22] PAI_CURRENT_TASK_ROLE_MIN_SUCCEEDED_TASK_COUNT= ++[07:44:22] PAI_CURRENT_TASK_ROLE_CURRENT_TASK_INDEX=0 ++[07:44:22] PAI_JOB_TASK_COUNT=1 ++[07:44:22] PAI_JOB_TASK_ROLE_COUNT=1 ++[07:44:22] PAI_JOB_TASK_ROLE_LIST=jupyter ++[07:44:22] PAI_CONTAINER_HOST_jupyter_PORT_LIST=6038 ++[07:44:22] PAI_CONTAINER_HOST_http_PORT_LIST=6039 ++[07:44:22] PAI_CONTAINER_HOST_ssh_PORT_LIST=6040 ++[07:44:22] PAI_CONTAINER_HOST_PORT=6039 ++[07:44:22] PAI_CONTAINER_SSH_PORT=6040 ++[07:44:22] PAI_TASK_ROLE_jupyter_HOST_LIST=124.9.14.16:6039 ++[07:44:22] PAI_USERNAME=admin ++[07:44:22] PAI_TASK_ROLE_NAME=jupyter ++[07:44:22] PAI_TASK_ROLE_NUM=1 ++[07:44:22] PAI_TASK_CPU_NUM=1 ++[07:44:22] PAI_TASK_MEM_MB=1024 ++[07:44:22] PAI_TASK_GPU_NUM=0 ++[07:44:22] PAI_TASK_ROLE_INDEX=0 ++[07:44:22] PAI_TASKS_NUM=1 ++[07:44:22] PAI_TASK_ROLES_NUM=1 ++[07:44:22] PAI_TASK_ROLE_LIST=jupyter ++[07:44:22] PAI_CURRENT_CONTAINER_IP=124.9.14.16 ++[07:44:22] PAI_CURRENT_CONTAINER_PORT=6039 ++[07:44:22] bootstrap_dir=tmp/pai-root/bootstrap ++[07:44:22] mkdir -p tmp/pai-root/bootstrap ++[07:44:22] hdfs dfs -get hdfs://124.9.14.16:9000/Container/admin/admin~ff0fe9d7-6206-422d-b013-be5a99f78af1/DockerContainerScripts/0.sh tmp/pai-root/bootstrap/docker_bootstrap.sh +++[07:44:33] exit_handler +++[07:44:33] rc=0 +++[07:44:33] local 'handler=Yarn container exit handler' +++[07:44:33] debug_log 'Yarn container exit handler' 'EXIT signal received in yarn container, performing clean up action...' +++[07:44:33] '[' 2 -gt 1 ']' +++[07:44:33] local 'prefix=Yarn container exit handler' +++[07:44:33] local 'message=EXIT signal received in yarn container, performing clean up action...' +++[07:44:33] echo '[DEBUG] Yarn container exit handler: EXIT signal received in yarn container, performing clean up action...' +++[07:44:33] debug_log 'Yarn container exit handler' 'clean the container code' +++[07:44:33] '[' 2 -gt 1 ']' +++[07:44:33] local 'prefix=Yarn container exit handler' +++[07:44:33] local 'message=clean the container code' +++[07:44:33] echo '[DEBUG] Yarn container exit handler: clean the container code' +++[07:44:33] rm -fr tmp/pai-root/code +++[07:44:33] debug_log 'Yarn container exit handler' 'trying to kill docker container admin-ff0fe9d7-6206-422d-b013-be5a99f78af1-container_e04_1548839040935_6713_01_000002' +++[07:44:33] '[' 2 -gt 1 ']' +++[07:44:33] local 'prefix=Yarn container exit handler' +++[07:44:33] local 'message=trying to kill docker container admin-ff0fe9d7-6206-422d-b013-be5a99f78af1-container_e04_1548839040935_6713_01_000002' +++[07:44:33] echo '[DEBUG] Yarn container exit handler: trying to kill docker container admin-ff0fe9d7-6206-422d-b013-be5a99f78af1-container_e04_1548839040935_6713_01_000002' ++++[07:44:33] docker inspect '--format={{.State.Pid}}' admin-ff0fe9d7-6206-422d-b013-be5a99f78af1-container_e04_1548839040935_6713_01_000002

hellocandy avatar Feb 19 '19 01:02 hellocandy

@hellocandy Thanks for your help. According to your issue and #1151, hadoop related commands seems consumes an exceed virtual memory, dozens of physical memory. Whatever, it's only a virtual memory peak, impact little for other processes. A larger memory to bypass it is fine.

mzmssg avatar Feb 19 '19 03:02 mzmssg

#2072

mzmssg avatar Feb 20 '19 11:02 mzmssg