runzhiwang opened a new pull request #392: HDDS-2807. Fix sudo reset the environment variables about proxy URL: https://github.com/apache/hadoop-ozone/pull/392 ## What changes were proposed in this pull request? How to reproduce the problem: When run the compose/ozone-mr/hadoop27/test.sh on my computer which connect outer network by proxy, it fails to execute sudo apk add --update py-pip in docker container. Because sudo will reset all environment variables including the proxy, so it fails to download http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz. How to fix: By sudo -E, it will execute the command with the environment of the user, thus the proxy can be valid. ## What is the link to the Apache JIRA https://issues.apache.org/jira/projects/HDDS/issues/HDDS-2805 ## How was this patch tested? Execute compose/ozone-mr/hadoop27/test.sh on computer which connect outer network .
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
