Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build the image #6

Open
CristianCantoro opened this issue Sep 19, 2018 · 0 comments
Open

Cannot build the image #6

CristianCantoro opened this issue Sep 19, 2018 · 0 comments

Comments

@CristianCantoro
Copy link

If I clone the repo and try to build locally:

 docker build .

I get this error:

[INFO] -----------------
[build.log](https://github.com/big-data-europe/docker-hdfs-filebrowser/files/2398810/build.log)
-------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.398s
[INFO] Finished at: Wed Sep 19 21:38:26 UTC 2018
[INFO] Final Memory: 7M/238M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hue-plugins: Could not resolve dependencies for project com.cloudera.hue:hue-plugins:jar:3.11.0-SNAPSHOT: Failed to collect dependencies for [org.apache.hadoop:hadoop-client:jar:2.6.0-mr1-cdh5.5.0 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), commons-logging:commons-logging:jar:1.0.4 (compile), commons-logging:commons-logging-api:jar:1.0.4 (compile), org.apache.thrift:libthrift:jar:0.9.0 (compile), junit:junit:jar:4.8.1 (test), org.apache.hadoop:hadoop-test:jar:2.6.0-mr1-cdh5.5.0 (test)]: Failed to read artifact descriptor for org.apache.hadoop:hadoop-client:jar:2.6.0-mr1-cdh5.5.0: Could not transfer artifact org.apache.hadoop:hadoop-client:pom:2.6.0-mr1-cdh5.5.0 from/to cdh.releases.repo (https://repository.cloudera.com/content/groups/cdh-releases-rcs): peer not authenticated -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
make[2]: Leaving directory `/opt/hue/desktop/libs/hadoop'
make[2]: *** [/opt/hue/desktop/libs/hadoop/java-lib/hue-plugins-3.11.0-SNAPSHOT.jar] Error 1
make[1]: *** [.recursive-env-install/libs/hadoop] Error 2
make[1]: Leaving directory `/opt/hue/desktop'
make: *** [desktop] Error 2
The command '/bin/sh -c make apps' returned a non-zero code: 2

The full log (build.log) is attached.

I have tried several workarounds that have not worked. Trying to add MAVEN_OPTS and options to ignore SSL errors (source 1, source 2):

ENV MAVEN_OPTS="-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.266s
[INFO] Finished at: Wed Sep 19 21:55:43 UTC 2018
[INFO] Final Memory: 7M/238M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hue-plugins: Could not resolve dependencies for project com.cloudera.hue:hue-plugins:jar:3.11.0-SNAPSHOT: Failed to collect dependencies for [org.apache.hadoop:hadoop-client:jar:2.6.0-mr1-cdh5.5.0 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), commons-logging:commons-logging:jar:1.0.4 (compile), commons-logging:commons-logging-api:jar:1.0.4 (compile), org.apache.thrift:libthrift:jar:0.9.0 (compile), junit:junit:jar:4.8.1 (test), org.apache.hadoop:hadoop-test:jar:2.6.0-mr1-cdh5.5.0 (test)]: Failed to read artifact descriptor for org.apache.hadoop:hadoop-client:jar:2.6.0-mr1-cdh5.5.0: Could not transfer artifact org.apache.hadoop:hadoop-client:pom:2.6.0-mr1-cdh5.5.0 from/to cdh.releases.repo (https://repository.cloudera.com/content/groups/cdh-releases-rcs): Received fatal alert: handshake_failure -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
make[2]: Leaving directory `/opt/hue/desktop/libs/hadoop'
make[2]: *** [/opt/hue/desktop/libs/hadoop/java-lib/hue-plugins-3.11.0-SNAPSHOT.jar] Error 1
make[1]: *** [.recursive-env-install/libs/hadoop] Error 2
make[1]: Leaving directory `/opt/hue/desktop'
make: *** [desktop] Error 2

The full log (build_maven_opts.log) is attached.

I have also tried to update the packages and java certificates (source 3):

RUN dpkg --purge --force-depends ca-certificates-java
RUN apt-get install -y ca-certificates-java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant