pig-withouthadoop.jar is included in the classpath when compiling the
153 files. It looks from the source code for Attributes.java
(http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/java/util/jar/Attributes.java)
that the warning issued is indeed the result of encountering the same
header twice while reading in the jar file, but that the subsequent
error is caused by yet another problem in the manifest.

I'd be curious to know what the META-INF/MANIFEST.MF file looks like
in pig-withouthadoop.jar. Bigtop downloads this jar from the Pig
release but I believe it also recompiles it from source before using
it. I'm not sure exactly which jar is getting pulled in by
conrib/piggybank/java/build.xml (since it doesn't specify a version
number, and the only jar I can find has the version number in the
name) - but it definitely seems to me that the jar has picked up an
invalid manifest somewhere along the way. I'm unable to reproduce the
problem in the 0.4.0 release myself.

I apologize it that's not very helpful - but I hope it's worth something!


On Mon, Sep 10, 2012 at 8:31 PM, Meng Gong <[email protected]> wrote:
> I have download the source of the bigtop & make it.
> The command make hadoop-deb run well & build sucess.
> But make deb failed.
>
> init:
>     [mkdir] Created dir:
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build
>     [mkdir] Created dir:
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build/classes
>     [mkdir] Created dir:
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build/test
>     [mkdir] Created dir:
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build/test/classes
>     [mkdir] Created dir:
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build/docs/api
>
> compile:
>      [echo]  *** Compiling Pig UDFs ***
>     [javac]
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build.xml:92:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 153 source files to
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build/classes
>     [javac] Sep 11, 2012 3:50:15 AM java.util.jar.Attributes read
>     [javac] WARNING: Duplicate name in Manifest: svnversion.
>     [javac] Ensure that the manifest does not have duplicate entries, and
>     [javac] that blank lines separate individual sections in both your
>     [javac] manifest and in the META-INF/MANIFEST.MF entry in the jar file.
>     [javac] error: error reading
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/pig-withouthadoop.jar;
> invalid header field
>     [javac] 1 error
>
> BUILD FAILED
> /home/hadoop/bigtop-0.4.0-incubating/output/pig/pig-0.10.0/contrib/piggybank/java/build.xml:92:
> Compile failed; see the compiler error output for details.
>
> Total time: 1 second
> make: *** [build-indep-stamp] Error 1
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
> status 2
> debuild: fatal error at line 1337:
> dpkg-buildpackage -rfakeroot -D -us -uc -b failed
> make: *** [/home/hadoop/bigtop-0.4.0-incubating/build/pig//.deb] Error 29
>
>
>
>   What should I do with it?? Thanks for help
>
> Yours
> Meng
>

Reply via email to