ChenSammi opened a new pull request, #10305: URL: https://github.com/apache/ozone/pull/10305
## What changes were proposed in this pull request? download libhadoop library during maven build, for local unit test, and dist package. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15318 ## How was this patch tested? Test locally. ``` mvn clean package -DskipTests -Dmaven.javadoc.skip=true -s ~/workspace/tools/apache-maven-3.6.0/conf/settings-apache.xml -T 6 -Pnative-mac -Pdist sammi@X3HF9K66K7 target % find . -name libhadoop* ./ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.dylib ./ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.1.0.0.dylib sammi@X3HF9K66K7 target % tar -tvf ozone-2.2.0-SNAPSHOT.tar.gz| grep libhadoop lrwxr-xr-x 0 sammi staff 0 May 18 20:30 ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.dylib -> libhadoop.1.0.0.dylib -rw-r--r-- 0 sammi staff 157368 May 18 20:30 ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.1.0.0.dylib ``` ``` mvn clean package -DskipTests -Dmaven.javadoc.skip=true -s ~/workspace/tools/apache-maven-3.6.0/conf/settings-apache.xml -T 6 -Pnative -Pdist sammi@X3HF9K66K7 target % find . -name libhadoop* ./ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.so ./ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.so.1.0.0 sammi@X3HF9K66K7 target % tar -tvf ozone-2.2.0-SNAPSHOT.tar.gz| grep libhadoop lrwxr-xr-x 0 sammi staff 0 May 19 12:02 ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.so -> libhadoop.so.1.0.0 -rwxr-xr-x 0 sammi staff 890256 May 19 12:02 ozone-2.2.0-SNAPSHOT/lib/native/libhadoop.so.1.0.0 ``` ``` mvn clean package -DskipTests -Dmaven.javadoc.skip=true -s ~/workspace/tools/apache-maven-3.6.0/conf/settings-apache.xml -T 6 -Pdist sammi@X3HF9K66K7 target % find . -name libhadoop* sammi@X3HF9K66K7 target % tar -tvf ozone-2.2.0-SNAPSHOT.tar.gz| grep libhadoop ``` The downloaded file in cached in maven local repo, so only download once if it's not changed. ``` sammi@X3HF9K66K7 target % ls -al ~/.m2/repository/.cache/download-maven-plugin total 1006024 drwxr-xr-x 5 sammi staff 160 May 18 19:47 . drwxr-xr-x 3 sammi staff 96 May 18 10:56 .. -rw-r--r-- 1 sammi staff 514917037 May 18 11:50 hadoop-3.4.3.tar.gz_0deb1bfef085d775400e262f41867f8e -rw-r--r-- 1 sammi staff 478 May 18 19:47 index.ser -rw-r--r-- 1 sammi staff 157368 May 18 19:47 libhadoop.1.0.0.dylib_1aa24cad2f558d1e1012dfd83037efc1 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
