iwasakims opened a new pull request #2569:
URL: https://github.com/apache/hadoop/pull/2569


   https://issues.apache.org/jira/browse/HDFS-15743
   
   `-Pdist` build failed in hadoop-hdfs-native-client on calling 
dev-support/bin/dist-copynativelibs.
   
   ```
   [DEBUG] Executing command line: [bash, 
/home/centos/srcs/hadoop/hadoop-project-dist/../dev-support/bin/dist-copynativelibs,
 --version=3.4.0-SNAPSHOT, 
--builddir=/home/centos/srcs/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target,
 --artifactid=hadoop-hdfs-native-client, --isalbundle=false, --isallib=, 
--openssllib=, --opensslbinbundle=false, --openssllibbundle=false, 
--snappylib=, --snappylibbundle=false, --zstdbinbundle=false, --zstdlib=, 
--zstdlibbundle=false]
   tar: ./*: Cannot stat: No such file or directory
   tar: Exiting with failure status due to previous errors
   ```
   
   The cause is empty target/bin dir (and the code for Windows platform) based 
on debug output by `set -x`. 
   
   ```
   + [[ -d 
/home/centos/srcs/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/bin
 ]]
   + mkdir -p 
/home/centos/srcs/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/hadoop-hdfs-native-client-3.4.0-SNAPSHOT/bin
   + cd 
/home/centos/srcs/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/bin
   + tar cf - './*'
   tar: ./*: Cannot stat: No such file or directory
   tar: Exiting with failure status due to previous errors
   ```
   
   I guess target/bin is created or emptied by recent commit. Adding empty dir 
check to the conditional worked for me.


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to