iwasakims commented on PR #4536: URL: https://github.com/apache/hadoop/pull/4536#issuecomment-1197590538
Hmm, hadoop_add_param did not worked if the value contains `"`. (`HADOOP_OPTS='-XX:OnOutOfMemoryError="kill -9 %p"'` instead of previous `HADOOP_OPTS="-XX:OnOutOfMemoryError='kill -9 %p'"`) @ashutoshcipher ``` $ export HADOOP_OPTS='-XX:OnOutOfMemoryError="kill -9 %p"' $ echo $HADOOP_OPTS -XX:OnOutOfMemoryError="kill -9 %p" $ bash -x -c 'export SHELLOPTS && bin/hadoop version' 2>&1 | less ... + hadoop_add_param HADOOP_OPTS yarn.log.dir -Dyarn.log.dir=/home/rocky/dist/hadoop-3.4.0-SNAPSHOT/logs + [[ ! -XX:OnOutOfMemoryError="kill -9 %p" =~ yarn.log.dir ]] + eval 'HADOOP_OPTS="-XX:OnOutOfMemoryError="kill -9 %p" -Dyarn.log.dir=/home/rocky/dist/hadoop-3.4.0-SNAPSHOT/logs"' ++ HADOOP_OPTS=-XX:OnOutOfMemoryError=kill ++ -9 '%p -Dyarn.log.dir=/home/rocky/dist/hadoop-3.4.0-SNAPSHOT/logs' /home/rocky/dist/hadoop-3.4.0-SNAPSHOT/bin/../libexec/hadoop-functions.sh: line 1143: -9: command not found ... ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
