title: Hadoop 2.2.0 Setup (Pseudo-Distributed Mode): ERROR// Warn util.NativeCodeLoader: unable to load native-hadoop library
body: <p>I have recently installed the hadoop new version(2.2.0) on the Ubuntu 12.04LTS (64bit).</p>
  
  <p>And testing the hadoop example dont work.</p>
  
  <p>How to solve this problem????</p>
  
  <blockquote>
    <p>Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
    /usr/local/hadoop/lib/native/libhadoop.so.1.0.0 which might have
    disabled stack guard. The VM will try to fix the stack guard now. It's
    highly recommended that you fix the library with 'execstack -c
    ', or link it with '-z noexecstack'. 13/11/22 20:44:58 WARN
    util.NativeCodeLoader: Unable to load native-hadoop library for your
    platform... using builtin-java classes where applicable
    java.net.ConnectException: Call From ssel-PEGATRON/127.0.1.1 to
    localhost:9000 failed on connection exception:
    java.net.ConnectException: Connection refused; For more details see: 
    <a href="http://wiki.apache.org/hadoop/ConnectionRefused" rel="nofollow">http://wiki.apache.org/hadoop/ConnectionRefused</a>   at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
      at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
      at org.apache.hadoop.ipc.Client.call(Client.java:1351)  at
    org.apache.hadoop.ipc.Client.call(Client.java:1300)   at
    org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
      at com.sun.proxy.$Proxy9.getFileInfo(Unknown Source)    at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)     at
    org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186)
      at
    org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
      at com.sun.proxy.$Proxy9.getFileInfo(Unknown Source)    at
    org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:651)
      at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1679)
      at
    org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1106)
      at
    org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1102)
      at
    org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      at
    org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1102)
      at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1397)     at
    org.apache.hadoop.examples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:278)
      at
    org.apache.hadoop.examples.QuasiMonteCarlo.run(QuasiMonteCarlo.java:354)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)    at
    org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMonteCarlo.java:363)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)     at
    org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
      at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
      at
    org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)     at
    org.apache.hadoop.util.RunJar.main(RunJar.java:212) Caused by:
    java.net.ConnectException: Connection refused     at
    sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)  at
    sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:735)
      at
    org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
      at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)    at
    org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)     at
    org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:547)
      at
    org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:642)
      at
    org.apache.hadoop.ipc.Client$Connection.access$2600(Client.java:314)
      at org.apache.hadoop.ipc.Client.getConnection(Client.java:1399)     at
    org.apache.hadoop.ipc.Client.call(Client.java:1318)   ... 33 more</p>
  </blockquote>