You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Mapred Learn <ma...@gmail.com> on 2011/01/10 23:35:27 UTC
hadoop single user setup
hi,
I am a newbie and am trying to setup hadoop in single user setup on my
windows
7 machine.
I followed steps at:
http://hadoop.apache.org/common/docs/current/single_node_setup.html#L...<http://hadoop.apache.org/common/docs/current/single_node_setup.html#Local>
but i keep on getting error:
$ bin/hadoop fs -lsr
11/01/10 13:42:49 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0
.1:9000. Already tried 0 time(s).
11/01/10 13:42:51 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0
.1:9000. Already tried 1 time(s).
on all hdfs commands.
What is wrong here ?
Thanks in advance
Re: hadoop single user setup
Posted by Mapred Learn <ma...@gmail.com>.
Thanks.
I tried start-dfs.sh and namenode service starts but after sometime I see
Shutdown message in namenode log:
2011-01-10 14:52:47,568 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 1
on 9000: starting^M
2011-01-10 14:52:47,568 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 5
on 9000: starting^M
2011-01-10 14:52:47,569 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 9
on 9000: starting^M
2011-01-10 14:52:47,569 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 3
on 9000: starting^M
2011-01-10 14:52:47,572 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 7
on 9000: starting^M
2011-01-10 14:52:47,573 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 2
on 9000: starting^M
2011-01-10 14:52:47,574 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 6
on 9000: starting^M
2011-01-10 14:52:47,575 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 0
on 9000: starting^M
2011-01-10 14:52:47,575 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 4
on 9000: starting^M
2011-01-10 14:52:47,576 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 8
on 9000: starting^M
2011-01-10 14:53:12,888 INFO
org.apache.hadoop.hdfs.server.namenode.FSNamesystem
: Roll Edit Log from 127.0.0.1^M
2011-01-10 14:53:12,889 INFO
org.apache.hadoop.hdfs.server.namenode.FSNamesystem
: Number of transactions: 0 Total time for transactions(ms): 0Number of
transact
ions batched in Syncs: 0 Number of syncs: 0 SyncTimes(ms): 0 ^M
2011-01-10 14:53:13,629 INFO
org.apache.hadoop.hdfs.server.namenode.FSNamesystem
: Roll FSImage from 127.0.0.1^M
2011-01-10 14:53:13,629 INFO
org.apache.hadoop.hdfs.server.namenode.FSNamesystem
: Number of transactions: 0 Total time for transactions(ms): 0Number of
transact
ions batched in Syncs: 0 Number of syncs: 1 SyncTimes(ms): 17 ^M
2011-01-10 14:53:49,962 INFO
org.apache.hadoop.hdfs.server.namenode.NameNode: SH
UTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at Owner-VAIO/192.168.1.75
************************************************************/^M
Thanks
On Mon, Jan 10, 2011 at 2:44 PM, Aaron Eng <ae...@maprtech.com> wrote:
> When you run the Hadoop CLI command it spawns a java process which in turn
> tries to connect to the namenode service. In this case, your client is
> trying to reach the namenode at "localhost" on TCP port 9000. That
> connection is failing. The likely reason is that your namenode service is
> not running right now. You can check this by doing a "netstat -an | grep
> 9000" to see if theres anything listening, which is unlikely. If you don't
> see any process bound to port 9000 then either start the namenode service,
> or if you've already tried that, then check the namenode log to see why it
> isn't running. The location of the log files can vary but the file you'd be
> interested in will have a name format like hadoop*namenode*.log
>
>
> 11/01/10 13:42:49 INFO ipc.Client: Retrying connect to server:
> localhost/127.0.0
> .1:9000. Already tried 0 time(s).
>
>
>
> On Mon, Jan 10, 2011 at 2:35 PM, Mapred Learn <ma...@gmail.com>wrote:
>
>> hi,
>> I am a newbie and am trying to setup hadoop in single user setup on my
>> windows
>> 7 machine.
>> I followed steps at:
>> http://hadoop.apache.org/common/docs/current/single_node_setup.html#L...<http://hadoop.apache.org/common/docs/current/single_node_setup.html#Local>
>> but i keep on getting error:
>> $ bin/hadoop fs -lsr
>> 11/01/10 13:42:49 INFO ipc.Client: Retrying connect to server:
>> localhost/127.0.0
>> .1:9000. Already tried 0 time(s).
>> 11/01/10 13:42:51 INFO ipc.Client: Retrying connect to server:
>> localhost/127.0.0
>> .1:9000. Already tried 1 time(s).
>> on all hdfs commands.
>>
>> What is wrong here ?
>>
>> Thanks in advance
>>
>
>
Re: hadoop single user setup
Posted by Aaron Eng <ae...@maprtech.com>.
When you run the Hadoop CLI command it spawns a java process which in turn
tries to connect to the namenode service. In this case, your client is
trying to reach the namenode at "localhost" on TCP port 9000. That
connection is failing. The likely reason is that your namenode service is
not running right now. You can check this by doing a "netstat -an | grep
9000" to see if theres anything listening, which is unlikely. If you don't
see any process bound to port 9000 then either start the namenode service,
or if you've already tried that, then check the namenode log to see why it
isn't running. The location of the log files can vary but the file you'd be
interested in will have a name format like hadoop*namenode*.log
11/01/10 13:42:49 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0
.1:9000. Already tried 0 time(s).
On Mon, Jan 10, 2011 at 2:35 PM, Mapred Learn <ma...@gmail.com>wrote:
> hi,
> I am a newbie and am trying to setup hadoop in single user setup on my
> windows
> 7 machine.
> I followed steps at:
> http://hadoop.apache.org/common/docs/current/single_node_setup.html#L...<http://hadoop.apache.org/common/docs/current/single_node_setup.html#Local>
> but i keep on getting error:
> $ bin/hadoop fs -lsr
> 11/01/10 13:42:49 INFO ipc.Client: Retrying connect to server:
> localhost/127.0.0
> .1:9000. Already tried 0 time(s).
> 11/01/10 13:42:51 INFO ipc.Client: Retrying connect to server:
> localhost/127.0.0
> .1:9000. Already tried 1 time(s).
> on all hdfs commands.
>
> What is wrong here ?
>
> Thanks in advance
>