Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9290

Some tests cannot load native library

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.1.0-beta
    • build, native
    • None

    Description

      Some tests are unable to load the native DLL on Windows. The culprit appears to be an incorrect PATH configuration for the native-win profile in hadoop-project/pom.xml.

          <profile>
            <id>native-win</id>
            <activation>
              <os>
                <family>Windows</family>
              </os>
            </activation>
            <build>
              <plugins>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-surefire-plugin</artifactId>
                  <configuration>
                    <environmentVariables>
                      <!-- Specify where to look for the native DLL on Windows -->
                      <PATH>${env.PATH};${basedir}\..\..\hadoop-common-project\hadoop-common\target\bin;</PATH>
                    </environmentVariables>
                  </configuration>
                </plugin>
              </plugins>
            </build>
          </profile>
      

      This is evaluated independently by each project and the relative path is not always correct.

      Attachments

        1. HADOOP-9290.2.patch
          4 kB
          Chris Nauroth
        2. HADOOP-9290.3.patch
          5 kB
          Chris Nauroth
        3. HADOOP-9290.4.patch
          7 kB
          Chris Nauroth
        4. HADOOP-9290.patch
          0.6 kB
          Arpit Agarwal

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              arp Arpit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: