[ 
https://issues.apache.org/jira/browse/HDFS-15743?focusedWorklogId=526863&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-526863
 ]

ASF GitHub Bot logged work on HDFS-15743:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Dec/20 16:32
            Start Date: 21/Dec/20 16:32
    Worklog Time Spent: 10m 
      Work Description: 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:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 526863)
    Remaining Estimate: 0h
            Time Spent: 10m

> Fix -Pdist build failure of hadoop-hdfs-native-client
> -----------------------------------------------------
>
>                 Key: HDFS-15743
>                 URL: https://issues.apache.org/jira/browse/HDFS-15743
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {noformat}
> [INFO] --- exec-maven-plugin:1.3.1:exec (pre-dist) @ 
> hadoop-hdfs-native-client ---
> tar: ./*: Cannot stat: No such file or directory
> tar: Exiting with failure status due to previous errors
> Checking to bundle with:
> bundleoption=false, liboption=snappy.lib, pattern=libsnappy. libdir=
> Checking to bundle with:
> bundleoption=false, liboption=zstd.lib, pattern=libzstd. libdir=
> Checking to bundle with:
> bundleoption=false, liboption=openssl.lib, pattern=libcrypto. libdir=
> Checking to bundle with:
> bundleoption=false, liboption=isal.lib, pattern=libisal. libdir=
> Checking to bundle with:
> bundleoption=, liboption=pmdk.lib, pattern=pmdk libdir=
> Bundling bin files failed
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to