Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ function ozone_os_tricks
export JAVA_HOME
fi
fi
export DYLD_LIBRARY_PATH=$OZONE_HOME/lib/native:$DYLD_LIBRARY_PATH
;;
Linux)

Expand Down Expand Up @@ -1373,6 +1374,7 @@ function ozone_os_tricks
ozone_error "ERROR: For more info: http://wiki.apache.org/hadoop/HadoopIPv6"
exit 1
fi
export LD_LIBRARY_PATH=$OZONE_HOME/lib/native:$LD_LIBRARY_PATH
;;
CYGWIN*)
# Flag that we're running on Cygwin to trigger path translation later.
Expand Down
104 changes: 40 additions & 64 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
<gson.version>2.13.1</gson.version>
<guava.version>33.6.0-jre</guava.version>
<guice.version>6.0.0</guice.version>
<hadoop.native.lib.name>libhadoop_osx_aarch_64.dylib</hadoop.native.lib.name>
<hadoop.native.lib.symbolic.name>libhadoop.dylib</hadoop.native.lib.symbolic.name>
<hadoop.version>3.4.3</hadoop.version>
<hadoop2.version>2.10.2</hadoop2.version>
<hdds.rocks.native.version>${hdds.version}</hdds.rocks.native.version>
Expand Down Expand Up @@ -2549,6 +2551,36 @@
</distributionManagement>

<profiles>
<profile>
<id>linux-x86_64</id>
<activation>
<activeByDefault>false</activeByDefault>
<os>
<name>linux</name>
<family>unix</family>
<arch>amd64</arch>
</os>
</activation>
<properties>
<hadoop.native.lib.name>libhadoop_linux_x86_64.so</hadoop.native.lib.name>
<hadoop.native.lib.symbolic.name>libhadoop.so</hadoop.native.lib.symbolic.name>
</properties>
</profile>
<profile>
<id>linux-aarch64</id>
<activation>
<activeByDefault>false</activeByDefault>
<os>
<name>linux</name>
<family>unix</family>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<hadoop.native.lib.name>libhadoop_linux_aarch_64.so</hadoop.native.lib.name>
<hadoop.native.lib.symbolic.name>libhadoop.so</hadoop.native.lib.symbolic.name>
</properties>
</profile>
<profile>
<id>dist</id>
<build>
Expand Down Expand Up @@ -2614,26 +2646,13 @@
<inherited>false</inherited>
<executions>
<execution>
<id>fetch-linux-library</id>
<goals>
<goal>wget</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<url>https://raw.githubusercontent.com/apache/ozone-thirdparty/master/hadoop-native-lib/${hadoop.version}/libhadoop_linux_x86_64.so</url>
<unpack>false</unpack>
<outputDirectory>${project.build.directory}/native-lib</outputDirectory>
<skipCache>false</skipCache>
</configuration>
</execution>
<execution>
<id>fetch-mac-library</id>
<id>fetch-hadoop-native-library</id>
<goals>
<goal>wget</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<url>https://raw.githubusercontent.com/apache/ozone-thirdparty/master/hadoop-native-lib/${hadoop.version}/libhadoop_osx_aarch_64.dylib</url>
<url>https://raw.githubusercontent.com/apache/ozone-thirdparty/master/hadoop-native-lib/${hadoop.version}/${hadoop.native.lib.name}</url>
<unpack>false</unpack>
<outputDirectory>${project.build.directory}/native-lib</outputDirectory>
<skipCache>false</skipCache>
Expand All @@ -2648,22 +2667,7 @@
<inherited>false</inherited>
<executions>
<execution>
<id>extract-linux-library</id>
<goals>
<goal>run</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<target>
<exec dir="${project.build.directory}/native-lib" executable="bash" failonerror="true">
<arg value="-c" />
<arg value="ln -sf libhadoop_linux_x86_64.so libhadoop.so" />
</exec>
</target>
</configuration>
</execution>
<execution>
<id>extract-mac-library</id>
<id>extract-hadoop-native-library</id>
<goals>
<goal>run</goal>
</goals>
Expand All @@ -2672,7 +2676,7 @@
<target>
<exec dir="${project.build.directory}/native-lib" executable="bash" failonerror="true">
<arg value="-c" />
<arg value="ln -sf libhadoop_osx_aarch_64.dylib libhadoop.dylib" />
<arg value="ln -sf ${hadoop.native.lib.name} ${hadoop.native.lib.symbolic.name}" />
</exec>
</target>
</configuration>
Expand Down Expand Up @@ -2963,26 +2967,13 @@
<inherited>false</inherited>
<executions>
<execution>
<id>fetch-linux-library</id>
<goals>
<goal>wget</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<url>https://raw.githubusercontent.com/apache/ozone-thirdparty/master/hadoop-native-lib/${hadoop.version}/libhadoop_linux_x86_64.so</url>
<unpack>false</unpack>
<outputDirectory>${project.build.directory}/native-lib</outputDirectory>
<skipCache>false</skipCache>
</configuration>
</execution>
<execution>
<id>fetch-mac-library</id>
<id>fetch-hadoop-native-library</id>
<goals>
<goal>wget</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<url>https://raw.githubusercontent.com/apache/ozone-thirdparty/master/hadoop-native-lib/${hadoop.version}/libhadoop_osx_aarch_64.dylib</url>
<url>https://raw.githubusercontent.com/apache/ozone-thirdparty/master/hadoop-native-lib/${hadoop.version}/${hadoop.native.lib.name}</url>
<unpack>false</unpack>
<outputDirectory>${project.build.directory}/native-lib</outputDirectory>
<skipCache>false</skipCache>
Expand All @@ -2997,22 +2988,7 @@
<inherited>false</inherited>
<executions>
<execution>
<id>extract-linux-library</id>
<goals>
<goal>run</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<target>
<exec dir="${project.build.directory}/native-lib" executable="bash" failonerror="true">
<arg value="-c" />
<arg value="ln -sf libhadoop_linux_x86_64.so libhadoop.so" />
</exec>
</target>
</configuration>
</execution>
<execution>
<id>extract-mac-library</id>
<id>extract-hadoop-native-library</id>
<goals>
<goal>run</goal>
</goals>
Expand All @@ -3021,7 +2997,7 @@
<target>
<exec dir="${project.build.directory}/native-lib" executable="bash" failonerror="true">
<arg value="-c" />
<arg value="ln -sf libhadoop_osx_aarch_64.dylib libhadoop.dylib" />
<arg value="ln -sf ${hadoop.native.lib.name} ${hadoop.native.lib.symbolic.name}" />
</exec>
</target>
</configuration>
Expand Down