jojochuang opened a new pull request, #8623: URL: https://github.com/apache/ozone/pull/8623
## What changes were proposed in this pull request? HDDS-13266. ozone debug checknative command to add openssl lib check. Please describe your PR in detail: * Added openssl library check in 'ozone debug checknative' command output. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13266 ## How was this patch tested? The following is the output of 'ozone debug checknative' in debug log level, running in ozone-docker-runner: ``` curl -L "https://www.apache.org/dyn/closer.lua?action=download&filename=hadoop/common/hadoop-3.4.0/hadoop-3.4.0-aarch64.tar.gz" | tar -xz --wildcards 'hadoop-3.4.0/lib/native/libhadoop.*' export LD_LIBRARY_PATH=$PWD/hadoop-3.4.0/lib/native/:$LD_LIBRARY_PATH ozone --debug --loglevel DEBUG debug checknative 2025-06-14 02:58:18,567 [main] WARN erasurecode.ErasureCodeNative: ISA-L support is not available in your platform... using builtin-java codec where applicable 2025-06-14 02:58:18,569 [main] WARN crypto.OpensslCipher: Failed to load OpenSSL Cipher. java.lang.UnsatisfiedLinkError: Cannot load libcrypto.so (libcrypto.so: cannot open shared object file: No such file or directory)! at org.apache.hadoop.crypto.OpensslCipher.initIDs(Native Method) at org.apache.hadoop.crypto.OpensslCipher.<clinit>(OpensslCipher.java:90) at org.apache.hadoop.ozone.debug.CheckNative.getLibraryStatus(CheckNative.java:54) at org.apache.hadoop.ozone.debug.CheckNative.call(CheckNative.java:82) at org.apache.hadoop.ozone.debug.CheckNative.call(CheckNative.java:36) at picocli.CommandLine.executeUserObject(CommandLine.java:2031) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469) at picocli.CommandLine$RunLast.handle(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2423) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277) at picocli.CommandLine$RunLast.execute(CommandLine.java:2425) at org.apache.hadoop.ozone.shell.Shell.lambda$execute$0(Shell.java:95) at org.apache.hadoop.hdds.tracing.TracingUtil.executeInSpan(TracingUtil.java:167) at org.apache.hadoop.hdds.tracing.TracingUtil.executeInNewSpan(TracingUtil.java:157) at org.apache.hadoop.ozone.shell.Shell.execute(Shell.java:95) at picocli.CommandLine.execute(CommandLine.java:2174) at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:89) at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:80) at org.apache.hadoop.ozone.debug.OzoneDebug.main(OzoneDebug.java:36) Native library checking: hadoop: true /opt/hadoop/hadoop-3.4.0/lib/native/libhadoop.so.1.0.0 ISA-L: false libhadoop was built without ISA-L support OpenSSL: false Cannot load libcrypto.so (libcrypto.so: cannot open shared object file: No such file or directory)! 2025-06-14 02:58:18,571 [main] DEBUG utils.LeakDetector: Starting leak detector thread ManagedRocksObject0. 2025-06-14 02:58:18,588 [main] INFO utils.NativeLibraryLoader: Loading Library: ozone_rocksdb_tools rocks-tools: false ``` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
