Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDFS-15743. Fix -Pdist build failure of hadoop-hdfs-native-client. #2569

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

iwasakims
Copy link
Member

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.

@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 28s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+0 🆗 mvndep 14m 6s Maven dependency ordering for branch
+1 💚 shadedclient 15m 30s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 33s Maven dependency ordering for patch
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 shelldocs 0m 16s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 15m 3s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 36s The patch does not generate ASF License warnings.
48m 20s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2569/1/artifact/out/Dockerfile
GITHUB PR #2569
Optional Tests dupname asflicense shellcheck shelldocs
uname Linux 9a0aaef4c3ca 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / a35fc38
Max. process+thread count 535 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2569/1/console
versions git=2.17.1 maven=3.6.0 shellcheck=0.4.6
Powered by Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@iwasakims iwasakims merged commit 9aefe72 into apache:trunk Dec 21, 2020
@iwasakims
Copy link
Member Author

Thanks, @goiri. I merged this.

asfgit pushed a commit that referenced this pull request Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants