You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "rzuo (via GitHub)" <gi...@apache.org> on 2023/03/29 05:38:37 UTC

[GitHub] [bigtop] rzuo commented on a diff in pull request #1095: BIGTOP-3921: Add ZSTD Codec Support for hadoop

rzuo commented on code in PR #1095:
URL: https://github.com/apache/bigtop/pull/1095#discussion_r1151415800


##########
bigtop-packages/src/common/hadoop/do-component-build:
##########
@@ -120,6 +120,12 @@ if [ -z "$BUNDLE_SNAPPY" ] ; then
   [ -f /usr/lib/${HOSTTYPE}-linux-gnu/libsnappy.so ] && BUNDLE_SNAPPY="-Dsnappy.prefix=x -Dbundle.snappy=true -Dsnappy.lib=/usr/lib/${HOSTTYPE}-linux-gnu"
 fi
 
+if [ -z "$BUNDLE_ZSTD" ] ; then
+  [ -f /usr/lib/libzstd.so ] && BUNDLE_ZSTD="-Dbundle.zstd=true -Dzstd.lib=/usr/lib"
+  [ -f /usr/lib64/libzstd.so ] && BUNDLE_ZSTD="-Dbundle.zstd=true -Dzstd.lib=/usr/lib64"
+  [ -f /usr/lib/${HOSTTYPE}-linux-gnu/libzstd.so ] && BUNDLE_ZSTD="-Dbundle.zstd=true -Dzstd.lib=/usr/lib/${HOSTTYPE}-linux-gnu"

Review Comment:
   emmm, I only have CentOS 7.4 at hand.
   Can someone help to verify other distros/platforms?
   



-- 
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: dev-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org