iwasakims commented on code in PR #945:
URL: https://github.com/apache/bigtop/pull/945#discussion_r922023155


##########
bigtop-packages/src/common/tez/install_tez.sh:
##########
@@ -109,7 +109,10 @@ install -d -m 0755 $PREFIX/$DOC_DIR
 install -d -m 0755 $PREFIX/$CONF_DIR
 install -d -m 0755 $PREFIX/$MAN_DIR
 
-cp tez-site.xml  $PREFIX/$CONF_DIR
+tar -C $PREFIX/$LIB_DIR -xzf $BUILD_DIR/tez-dist/target/tez*-minimal.tar.gz
 
-tar -C  $PREFIX/$LIB_DIR -xzf  $BUILD_DIR/tez-dist/target/tez*-minimal.tar.gz
+cp tez-site.xml $PREFIX/$CONF_DIR
+
+TEZ_TAR=`find $BUILD_DIR/tez-dist/target/ -name "tez-*.tar.gz" | grep -v 
"minimal"`

Review Comment:
   Using glob pattern could be a bit safer if other tez-*.tar.gz appears in the 
future.
   
   ```
   $ ls tez-dist/target/
   archive-tmp  maven-archiver  maven-shared-archive-resources  tez-0.10.1  
tez-0.10.1-minimal  tez-0.10.1-minimal.tar.gz  tez-0.10.1.tar.gz  
tez-dist-0.10.1-tests.jar
   $ export TEZ_TAR=tez-dist/target/tez-[[:digit:]]*[[:digit:]].tar.gz
   $ echo $TEZ_TAR
   tez-dist/target/tez-0.10.1.tar.gz
   ```



-- 
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]

Reply via email to