adoroszlai opened a new pull request #1712: URL: https://github.com/apache/ozone/pull/1712
## What changes were proposed in this pull request? Fix `envtoconf` for some output formats that are currently broken. These are not used in Ozone, nor covered by tests. The problem may be accidentally triggered by specific environment variable names, eg. `HBASE_CONF_DIR` or similar. https://issues.apache.org/jira/browse/HDDS-4601 ## How was this patch tested? Test: ``` cd hadoop-ozone/dist/target/ozone-1.1.0-SNAPSHOT OZONE_RUNNER_VERSION=20200625-1 docker run -it --rm -e DUMMY.CONF_key=value -v $(pwd)/libexec:/opt/hadoop/libexec apache/ozone:0.5.0 bash -c 'ls ${HADOOP_CONF_DIR}/dummy.conf' docker run -it --rm -e DUMMY.SH_key=value -v $(pwd)/libexec:/opt/hadoop/libexec apache/ozone:1.0.0 bash -c 'ls ${HADOOP_CONF_DIR}/dummy.sh' docker run -it --rm -e DUMMY.ENV_key=value -v $(pwd)/libexec/transformation.py:/opt/transformation.py apache/hadoop:3 bash -c 'ls ${HADOOP_CONF_DIR}/dummy.env' docker run -it --rm -e DUMMY.CFG_key=value -v $(pwd):/opt/hadoop apache/ozone-runner:${OZONE_RUNNER_VERSION} bash -c 'ls ${HADOOP_CONF_DIR}/dummy.cfg' ``` Output: ``` /etc/hadoop/dummy.conf /etc/hadoop/dummy.sh /etc/hadoop/dummy.env /etc/hadoop/dummy.cfg ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
