ewheeler commented on issue #8868: Docker Build is failing for 0.16.0-incubating-rc3 URL: https://github.com/apache/druid/issues/8868#issuecomment-603512735 I had a different Maven error- seems like it ran out of memory, perhaps due to configuring additional druid extensions ``` ... Adding org.apache.maven.settings.io.SettingsReaderdefault Adding org.apache.maven.settings.io.SettingsWriterdefault Adding org.apache.maven.settings.validation.SettingsValidatordefault Cleaning up unclosed ZipFile for archive /root/.m2/repository/com/ibm/icu/icu4j/55.1/icu4j-55.1.jar [ERROR] GC overhead limit exceeded -> [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/OutOfMemoryError The command '/bin/sh -c mvn -B -ff -q dependency:go-offline install -Pdist,bundle-contrib-exts -DskipTests -Danimal.sniffer.skip=true -Dcheckstyle.skip=true -Denforcer.skip=true -Dforbiddenapis.skip=true -Dmaven.javadoc.skip=true -Dpmd.skip=true -Dspotbugs.skip=true' returned a non-zero code: 1 ``` I was able to resolve by adding the following line to the included [Dockerfile](https://github.com/apache/druid/blob/master/distribution/docker/Dockerfile#L21) `RUN export MAVEN_OPTS="-Xmx1g -XX:+UseCGroupMemoryLimitForHeap"` I suspect only one of the two options I added did the trick, but that might depend on your version of java. Sorry for the slightly tangential comment, but might be useful to look at other possible `MAVEN_OPTS`- and might help in case anyone else has the same issue I encountered
---------------------------------------------------------------- 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]
