hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-14481) Print stack trace when native bzip2 library does not load
Date Fri, 02 Jun 2017 17:05:04 GMT
Wei-Chiu Chuang created HADOOP-14481:

             Summary: Print stack trace when native bzip2 library does not load
                 Key: HADOOP-14481
                 URL: https://issues.apache.org/jira/browse/HADOOP-14481
             Project: Hadoop Common
          Issue Type: Improvement
          Components: io
            Reporter: Wei-Chiu Chuang
            Assignee: Wei-Chiu Chuang
            Priority: Minor

When I run hadoop checknative on my machine, it was not able to load system bzip2 library
and printed the following message.

17/06/02 09:25:42 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library
system-native, will use pure-Java version

Reviewing the relevant code, it fails because of an exception. However, that exception is
not logged. We should print the stacktrace, at least at debug log level.

try {
          // Initialize the native library.
          nativeBzip2Loaded = true;
          LOG.info("Successfully loaded & initialized native-bzip2 library " +
        } catch (Throwable t) {
          LOG.warn("Failed to load/initialize native-bzip2 library " + 
                   libname + ", will use pure-Java version");

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message