adoroszlai opened a new pull request #1572: URL: https://github.com/apache/ozone/pull/1572
## What changes were proposed in this pull request? If `HADOOP_HOME` does not point to Ozone install, make an attempt to find it relative to the script being run. This logic is copied from `start-ozone.sh`, where it was added for HDDS-1912 to fix similar problem. https://issues.apache.org/jira/browse/HDDS-4450 ## How was this patch tested? Tested using `ozonescripts` compose environment after temporarily adding `HADOOP_HOME=/usr/local/hadoop` to `docker-config`. Verified that all three scripts (`ozone` and `stop-ozone.sh`, changed here, and `start-ozone.sh`, changed previously) work fine. ``` cd hadoop-ozone/dist/target/ozone-1.1.0-SNAPSHOT/compose/ozonescripts docker-compose up -d # <wait a bit> ./start.sh ... ./ps.sh # <output with Ozone processes> docker-compose exec scm bash bash-4.2$ ozone freon ockg -n1 -t1 -F ONE ... Successful executions: 1 bash-4.2$ echo $HADOOP_HOME /usr/local/hadoop bash-4.2$ exit ./stop.sh ... ./ps.sh # <no more Ozone process> ``` ---------------------------------------------------------------- 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]
