[ https://issues.apache.org/jira/browse/HADOOP-12340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kengo Seki updated HADOOP-12340: -------------------------------- Attachment: HADOOP-12340.HADOOP-12111.00.patch Attaching a patch. With this patch, docker mode succeeds as follows: {code} [sekikn@mobile hadoop]$ dev-support/test-patch.sh --basedir=../dev/hadoop --docker --patch-dir=foo --project=hadoop /tmp/test.patch (snip) Step 11 : RUN mkdir -p /opt/findbugs && curl -L https://sourceforge.net/projects/findbugs/files/findbugs/3.0.1/findbugs-noUpdateChecks-3.0.1.tar.gz/download -o /opt/findbugs.tar.gz && tar xzf /opt/findbugs.tar.gz --strip-components 1 -C /opt/findbugs ---> Using cache ---> 3b1253eaf7b3 (snip) Successfully built 7417b6ced5f2 (snip) | Vote | Subsystem | Runtime | Comment ============================================================================ | 0 | reexec | 0m 6s | docker + precommit patch detected. | +1 | @author | 0m 0s | The patch does not contain any @author | | | | tags. | +1 | asflicense | 7m 8s | Patch does not generate ASF License | | | | warnings. | +1 | whitespace | 0m 0s | Patch has no whitespace issues. | | | 8m 47s | || Subsystem || Report/Notes || ============================================================================ | Docker | Client=1.7.1 Server=1.7.1 Image:test-patch-base-hadoop-86a1025 | | git revision | HADOOP-12111 / 2c4208f | | Optional Tests | asflicense | | uname | Linux 9721e2853d64 4.0.7-boot2docker #1 SMP Wed Jul 15 00:01:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | /testptch/patchprocess/precommit/personality/hadoop.sh | | Default Java | 1.7.0_79 | | Max memory used | 30MB | {code} > test-patch docker mode fails in downloading findbugs with curl > -------------------------------------------------------------- > > Key: HADOOP-12340 > URL: https://issues.apache.org/jira/browse/HADOOP-12340 > Project: Hadoop Common > Issue Type: Sub-task > Components: yetus > Affects Versions: HADOOP-12111 > Reporter: Kengo Seki > Attachments: HADOOP-12340.HADOOP-12111.00.patch > > > HADOOP-12129 replaced wget commands in test-patch with curl. But curl doesn't > follow URL redirection by default, so docker mode fails in downloading > findbugs for now: > {code} > $ dev-support/test-patch.sh --docker --project=hadoop /tmp/test.patch > (snip) > Step 11 : RUN mkdir -p /opt/findbugs && curl > https://sourceforge.net/projects/findbugs/files/findbugs/3.0.1/findbugs-noUpdateChecks-3.0.1.tar.gz/download > -o /opt/findbugs.tar.gz && tar xzf /opt/findbugs.tar.gz > --strip-components 1 -C /opt/findbugs > ---> Running in 31c71013bb59 > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left Speed > 100 397 100 397 0 0 168 0 0:00:02 0:00:02 --:--:-- 168 > gzip: stdin: not in gzip format > tar: Child returned status 1 > tar: Error is not recoverable: exiting now > The command '/bin/sh -c mkdir -p /opt/findbugs && curl > https://sourceforge.net/projects/findbugs/files/findbugs/3.0.1/findbugs-noUpdateChecks-3.0.1.tar.gz/download > -o /opt/findbugs.tar.gz && tar xzf /opt/findbugs.tar.gz > --strip-components 1 -C /opt/findbugs' returned a non-zero code: 2 > {code} > Adding -L option will resolve this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)