hmohamedansari opened a new pull request, #5378:
URL: https://github.com/apache/ozone/pull/5378

   ## What changes were proposed in this pull request?
   
   - The hadoop-ozone/dist/src/main/compose/ozone/run.sh file fails to execute 
if the bash version is lower than 4.2
   
   - Added a condition to check the user's bash version and if it is lower than 
4.2 then exit with a message that their bash version is too old and the user 
should update it.
   
   - This happened when I tried in my mac's default terminal that had bash 3.2
   
   - This issue happens because the flags -v and -z were introduced in bash 4.2 
and they were not available in the bash version prior to that.
   
   - Updated the CONTRIBUTING.md file to ask the user to check their bash 
version before running the run.sh file to run Ozone in Docker.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9368
   
   ## How was this patch tested?
   
   Tested by 
   
   1. Replacing the 
   `docker-compose up --scale datanode=${OZONE_DATANODES} --no-recreate "$@"`
    with an `echo "Success"` message. Then,
   3. Set the bash_version variable to various values and tested it to see if 
it shows the error message.
   4. The updated script exited with an error when the bash_version value is 
set to anything less then 4.2 and succeeded if the bash_version is above 4.2.
   


-- 
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]

Reply via email to