Skip to content

HDDS-16032. cd: lib/native: No such file or directory - #10909

Merged
adoroszlai merged 1 commit into
apache:masterfrom
adoroszlai:HDDS-16032
Jul 31, 2026
Merged

HDDS-16032. cd: lib/native: No such file or directory#10909
adoroszlai merged 1 commit into
apache:masterfrom
adoroszlai:HDDS-16032

Conversation

@adoroszlai

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix the error message emitted by ozone when built without -Pdist:

$ cd hadoop-ozone/dist/target/ozone-2.3.0-SNAPSHOT

$ bin/ozone debug checknative    
bin/../libexec/ozone-functions.sh: line 1384: cd: lib/native: No such file or directory
Native library checking:
     hadoop:  false  
...

$ ls lib/native
ls: cannot access 'lib/native': No such file or directory

Also when built with -Pdist, but not executed from OZONE_HOME directory:

$ cd hadoop-ozone/dist/target/ozone-2.3.0-SNAPSHOT/bin
$ ./ozone debug checknative
bin/../libexec/ozone-functions.sh: line 1384: cd: lib/native: No such file or directory
Native library checking:
     hadoop:  true   lib/native/libhadoop_linux_x86_64.so

Reduce code duplication between Linux and Mac-specific branches.

https://issues.apache.org/jira/browse/HDDS-16032

How was this patch tested?

Without -Pdist:

$ mvn -DskipRecon -DskipShade -DskipTests clean verify
...
$ cd hadoop-ozone/dist/target/ozone-2.3.0-SNAPSHOT
$ ls lib/native
ls: cannot access 'lib/native': No such file or directory

$ bin/ozone debug checknative
Native library checking:
     hadoop:  false
...

With -Pdist:

$ mvn -DskipRecon -DskipShade -DskipTests clean verify -Pdist
...
$ cd hadoop-ozone/dist/target/ozone-2.3.0-SNAPSHOT
$ bin/ozone debug checknative
Native library checking:
     hadoop:  true   lib/native/libhadoop_linux_x86_64.so
...

$ ls -1 --file-type lib/native
libhadoop.dylib@
libhadoop_linux_aarch_64.so
libhadoop_linux_x86_64.so
libhadoop_osx_aarch_64.dylib
libhadoop.so@

$ cd bin
$ ./ozone debug checknative
Native library checking:
     hadoop:  true   lib/native/libhadoop_linux_x86_64.so
...

https://github.com/adoroszlai/ozone/actions/runs/30548924292

@adoroszlai adoroszlai self-assigned this Jul 30, 2026
@adoroszlai
adoroszlai requested a review from ChenSammi July 30, 2026 15:44

@ChenSammi ChenSammi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adoroszlai for the fix.

@adoroszlai
adoroszlai merged commit bae32aa into apache:master Jul 31, 2026
31 checks passed
@adoroszlai
adoroszlai deleted the HDDS-16032 branch July 31, 2026 06:27
@adoroszlai

Copy link
Copy Markdown
Contributor Author

Thanks @ChenSammi for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants