[ 
https://issues.apache.org/jira/browse/HADOOP-8884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471869#comment-13471869
 ] 

Aaron T. Myers commented on HADOOP-8884:
----------------------------------------

Great point, Todd. I should've thought of that.

It doesn't actually happen for every `hadoop fs -ls' operation per se, since 
that doesn't try to load the native libs, but it will happen for any command 
that would try to do so, e.g. `hadoop fs -cat':

{noformat}
$ hadoop fs -cat bashrc
12/10/08 14:17:27 WARN util.NativeCodeLoader: Continuing after failing to load 
native-hadoop - 
java.library.path=/home/atm/Downloads/jdk1.6.0_30/jre/lib/amd64/server:/home/atm/Downloads/jdk1.6.0_30/jre/lib/amd64:/home/atm/Downloads/jdk1.6.0_30/jre/../lib/amd64:/usr/local/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 with error:
java.lang.UnsatisfiedLinkError: no hadoop in java.library.path
{noformat}

I'll go ahead and revert this commit for now. Perhaps we should try to find a 
way to print this warning only when the native libs fail to load for some 
reason other than them being not present entirely.
                
> DEBUG should be WARN for DEBUG util.NativeCodeLoader: Failed to load 
> native-hadoop with error: java.lang.UnsatisfiedLinkError
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8884
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8884
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 2.0.1-alpha
>            Reporter: Anthony Rojas
>            Assignee: Anthony Rojas
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8884.patch, HADOOP-8884.patch, 
> HADOOP-8884-v2.patch
>
>
> Recommending to change the following debug message and promote it to a 
> warning instead:
> 12/07/02 18:41:44 DEBUG util.NativeCodeLoader: Failed to load native-hadoop 
> with error: java.lang.UnsatisfiedLinkError: 
> /usr/lib/hadoop/lib/native/libhadoop.so.1.0.0: /lib64/libc.so.6: version 
> `GLIBC_2.6' not found (required by 
> /usr/lib/hadoop/lib/native/libhadoop.so.1.0.0)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to