You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2017/12/20 17:01:00 UTC

[jira] [Updated] (HADOOP-14877) Trunk compilation fails in windows

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

Steve Loughran updated HADOOP-14877:
------------------------------------
    Attachment: HADOOP-14877-001.patch

patch 001: On windows builds, use the 1.0-alpha-9-SNAPSHOT native maven plugin, and so switch to the CLASSPATH env var, avoiding command line length problems.

I was  having problems with my build because the maven clean wasn't taking until the hadoop maven plugin was built; there's a bootstrap problem. Until have done a full clean, old cruft can hang around, creating problems.


# run mvn clean to purge old bits, and make sure that it had completed
# run mvn install -DskipTests -DskipShade to do the install, making sure that the hadoop-maven-plugin had been built.
# rerun mvn clean
# rerun mvn install
# do the mvn package -Pdist -DskipTests -Dmaven.javadoc.skip=true -DskipShade 



> Trunk compilation fails in windows
> ----------------------------------
>
>                 Key: HADOOP-14877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14877
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.1.0
>         Environment: windows
>            Reporter: Brahma Reddy Battula
>         Attachments: HADOOP-14877-001.patch
>
>
> {noformat}
> [INFO] Dependencies classpath:
> D:\trunk\hadoop\hadoop-client-modules\hadoop-client-runtime\target\hadoop-client-runtime-3.1.0-SNAPSHOT.jar;D:\trunk\had
> oop\hadoop-client-modules\hadoop-client-api\target\hadoop-client-api-3.1.0-SNAPSHOT.jar
> [INFO]
> [INFO] --- exec-maven-plugin:1.3.1:exec (check-jar-contents) @ hadoop-client-check-invariants ---
> java.io.FileNotFoundException: D (The system cannot find the file specified)
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:219)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:149)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:120)
>         at sun.tools.jar.Main.list(Main.java:1115)
>         at sun.tools.jar.Main.run(Main.java:293)
>         at sun.tools.jar.Main.main(Main.java:1288)
> java.io.FileNotFoundException: \trunk\hadoop\hadoop-client-modules\hadoop-client-runtime\target\hadoop-client-runtime-3.
> 1.0-SNAPSHOT.jar;D (The system cannot find the file specified)
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:219)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:149)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:120)
>         at sun.tools.jar.Main.list(Main.java:1115)
>         at sun.tools.jar.Main.run(Main.java:293)
>         at sun.tools.jar.Main.main(Main.java:1288)
> [INFO] Artifact looks correct: 'D'
> [INFO] Artifact looks correct: 'hadoop-client-runtime-3.1.0-SNAPSHOT.jar;D'
> [ERROR] Found artifact with unexpected contents: '\trunk\hadoop\hadoop-client-modules\hadoop-client-api\target\hadoop-cl
> ient-api-3.1.0-SNAPSHOT.jar'
>     Please check the following and either correct the build or update
>     the allowed list with reasoning.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org