Hi all
I have started hadoop and its running
am getting following error when i try to execute a simple map reduce program
r...@cjb3f-69:/home/media/Desktop# hadoop-0.20 jar HadoopSample.jar
HadoopSample input output
10/10/22 14:41:58 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 0 time(s).
10/10/22 14:41:59 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 1 time(s).
10/10/22 14:42:00 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 2 time(s).
10/10/22 14:42:01 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 3 time(s).
10/10/22 14:42:02 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 4 time(s).
10/10/22 14:42:03 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 5 time(s).
10/10/22 14:42:04 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 6 time(s).
10/10/22 14:42:05 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 7 time(s).
10/10/22 14:42:06 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 8 time(s).
10/10/22 14:42:07 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 9 time(s).
Exception in thread "main" java.lang.RuntimeException:
java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on
connection exception: java.net.ConnectException: Connection refused
at
org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:370)
at
org.apache.hadoop.mapred.FileOutputFormat.setOutputPath(FileOutputFormat.java:125)
at HadoopSample.main(HadoopSample.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Caused by: java.net.ConnectException: Call to
localhost/127.0.0.1:8020failed on connection exception:
java.net.ConnectException: Connection
refused
at org.apache.hadoop.ipc.Client.wrapException(Client.java:845)
at org.apache.hadoop.ipc.Client.call(Client.java:821)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:221)
at $Proxy0.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:363)
at
org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:110)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:211)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:174)
at
org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:82)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1448)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:67)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1476)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1464)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:197)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:96)
at
org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:366)
... 7 more
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
at
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:407)
at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:332)
at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:202)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:944)
at org.apache.hadoop.ipc.Client.call(Client.java:789)
can any one help.
I am using cloudera hadoop on Ubuntu
Thanks
Biju