[ 
https://issues.apache.org/jira/browse/HDDS-2812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

runzhiwang updated HDDS-2812:
-----------------------------
    Description: 
 

When run compose/ozonesecure/test.sh and compose/ozonesecure-mr/test.sh on 
computer which connect outer network by proxy, it fails to {{wget 
https://github.com}} as the image show. Because the version of wget in{{ 
openjdk:8u191-jdk-alpine3.9}} is too low, it cannot resolve the proxy of https.

{{openjdk:8u191-jdk-alpine3.9}} was used at 
[https://github.com/apache/hadoop-ozone/blob/master/hadoop-ozone/dist/src/main/compose/ozonesecure/docker-image/docker-krb5/Dockerfile-krb5#L18].

!image-2019-12-26-19-27-51-010.png!

  was:
When run the  compose/ozone-mr/hadoop27/test.sh in my machine which connect  
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.] 
By sudo -E, it will execute the command with the environment of the user, thus 
the proxy can be valid. 

!image-2019-12-26-19-27-51-010.png!


> Fix low version wget cannot resolve the proxy of https
> ------------------------------------------------------
>
>                 Key: HDDS-2812
>                 URL: https://issues.apache.org/jira/browse/HDDS-2812
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: test
>            Reporter: runzhiwang
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2019-12-26-19-27-51-010.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  
> When run compose/ozonesecure/test.sh and compose/ozonesecure-mr/test.sh on 
> computer which connect outer network by proxy, it fails to {{wget 
> https://github.com}} as the image show. Because the version of wget in{{ 
> openjdk:8u191-jdk-alpine3.9}} is too low, it cannot resolve the proxy of 
> https.
> {{openjdk:8u191-jdk-alpine3.9}} was used at 
> [https://github.com/apache/hadoop-ozone/blob/master/hadoop-ozone/dist/src/main/compose/ozonesecure/docker-image/docker-krb5/Dockerfile-krb5#L18].
> !image-2019-12-26-19-27-51-010.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to