Hi , 1. Make sure Name Node & Job Tracker processes are running or not.
You can verify them using "Jps" command 2. If you use /hadoop/bin/start-dfs.sh it will start only NameNode & Data Node and not Job Tracker. To run Job Tracker you need use "start-all.sh" instead of "start-dfs.sh" 3. Verifying Namenodes & Job Trackers running through urls. Name Node: http://localhost:50070 Job Tracker: http://localhost:50030 4. Verify the configuration settings @ hadoop/conf/*.xml Make sure you define Name node details in the "core-site.xml" and Job tracker details in "mapred-site.xml" Thanks, Murali On Fri, May 31, 2013 at 3:07 PM, sumit piparsania <[email protected] > wrote: > Hi, > > I am new to hadoop. I am facing some issues while executing the below > command. > Kindly help me resolving this issue. > > > command: bin/hadoop jar hadoop-examples-*.jar grep input output > 'dfs[a-z.]+' > Error: > bin/hadoop: line 320: C:\Program: command not found > 13/05/31 12:59:58 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 0 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:00 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 1 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:02 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 2 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:04 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 3 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:06 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 4 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:08 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 5 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:10 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 6 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:12 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 7 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:14 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 8 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > 13/05/31 13:00:16 INFO ipc.Client: Retrying connect to server: localhost/ > 127.0.0.1:9001. Already tried 9 time(s); retry policy is > RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) > java.net.ConnectException: Call to localhost/127.0.0.1:9001 failed on > connection exception: java.net.ConnectException: Connection refused: no > further information > at org.apache.hadoop.ipc.Client.wrapException(Client.java:1136) > at org.apache.hadoop.ipc.Client.call(Client.java:1112) > at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:229) > at org.apache.hadoop.mapred.$Proxy2.getProtocolVersion(Unknown Source) > at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:411) > at org.apache.hadoop.mapred.JobClient.createRPCProxy(JobClient.java:499) > at org.apache.hadoop.mapred.JobClient.init(JobClient.java:490) > at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:473) > at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1322) > at org.apache.hadoop.examples.Grep.run(Grep.java:69) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.examples.Grep.main(Grep.java:93) > 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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) > at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) > at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64) > 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: Connection refused: no further > information > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599) > at > org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) > at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:511) > at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:481) > at > org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:453) > at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:579) > at org.apache.hadoop.ipc.Client$Connection.access$2100(Client.java:202) > at org.apache.hadoop.ipc.Client.getConnection(Client.java:1243) > at org.apache.hadoop.ipc.Client.call(Client.java:1087) > ... 22 more > >
