Packaging GlusterFS Hadoop

Mikolaj Izdebski mizdebsk at redhat.com
Wed Aug 28 09:09:40 UTC 2013


On 08/27/2013 10:22 PM, puntogil at libero.it wrote:
> can try to change, in hadoop-annotations pom file, 1.6 with 1.7
> or remove profiles and add com.sun:tools directly as dep
> 
> %pom_xpath_remove"pom:project/pom:profiles"
> hadoop-common-project/hadoop-annotations
> %pom_xpath_inject "pom:project/pom:dependencies" '
> <dependency>
>    <groupId>com.sun</groupId>
>    <artifactId>tools</artifactId>
>    <version>1.6</version>
>    <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>'  hadoop-common-project/hadoop-annotations

This is wrong and probably dependency like that in one of
hadoop-glusterfs caused the problem in the first place.

In Fedora system scope should NOT be used.  What happens here is that
you *hardcode* path to JVM, but the JVM hardcoded is going to be
different depending on a number of factors, like particular JVM
(OpenJDK/libgcj), JDK version or system architecture.

The correct way of declaring dependency on tools JAR in Fedora is:

    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
    <dependency>

-- 
Mikolaj Izdebski
IRC: mizdebsk


More information about the bigdata mailing list