You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by yiyu jia <ji...@gmail.com> on 2013/01/18 07:12:38 UTC

run hadoop in standalone mode

Hi,

I tried to run hadoop in standalone mode according to hadoop online
document. But, I get error message as below. I run command "./bin/hadoop
jar hadoop-examples-1.1.1.jar pi 10 100".


*13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 9 time(s); retry policy is
RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
Connection refused
*


I disabled ipV6, firewall on my linux machine. But, i still get this error
message. localhost is bound with 127.0.01 . core-site.xml and
mapreduce-site.xml are empty as they are not modified.

Anybody can give me a hint if I need to do some specific configuration to
run hadoop in standalone mode?

thanks and regards,

Yiyu

Re: run hadoop in standalone mode

Posted by Harsh J <ha...@cloudera.com>.
Note: You are running/asking about a pseudo-distributed mode, not
'standalone' exactly. Standalone does not have a running HDFS and uses the
local filesystem for MR execution.


On Fri, Jan 18, 2013 at 11:42 AM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Harsh J

Re: run hadoop in standalone mode

Posted by Mohammad Tariq <do...@gmail.com>.
Hello Yiyu,

      Do you have "127.0.1.1" entry in your /etc/hosts file?
If yes, then change it to "127.0.0.1" and retry.


Warm Regards,
Tariq
https://mtariq.jux.com/
cloudfront.blogspot.com


On Fri, Jan 18, 2013 at 11:57 AM, feng lu <am...@gmail.com> wrote:

> Hi yiyu
>
> do you set the hadoop.tmp.dir in core-site.xml and format the namenode
> with "hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp,
> it will be clear when you restart you computer.
>
>
> On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:
>
>> Hi,
>>
>> I tried to run hadoop in standalone mode according to hadoop online
>> document. But, I get error message as below. I run command "./bin/hadoop
>> jar hadoop-examples-1.1.1.jar pi 10 100".
>>
>>
>> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server:
>> localhost/127.0.0.1:8020. Already tried 9 time(s); retry policy is
>> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
>> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
>> 127.0.0.1:8020 failed on connection exception:
>> java.net.ConnectException: Connection refused
>> *
>>
>>
>> I disabled ipV6, firewall on my linux machine. But, i still get this
>> error message. localhost is bound with 127.0.01 . core-site.xml and
>> mapreduce-site.xml are empty as they are not modified.
>>
>> Anybody can give me a hint if I need to do some specific configuration to
>> run hadoop in standalone mode?
>>
>> thanks and regards,
>>
>> Yiyu
>>
>>
>
>
> --
> Don't Grow Old, Grow Up... :-)
>

Re: run hadoop in standalone mode

Posted by Mohammad Tariq <do...@gmail.com>.
Hello Yiyu,

      Do you have "127.0.1.1" entry in your /etc/hosts file?
If yes, then change it to "127.0.0.1" and retry.


Warm Regards,
Tariq
https://mtariq.jux.com/
cloudfront.blogspot.com


On Fri, Jan 18, 2013 at 11:57 AM, feng lu <am...@gmail.com> wrote:

> Hi yiyu
>
> do you set the hadoop.tmp.dir in core-site.xml and format the namenode
> with "hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp,
> it will be clear when you restart you computer.
>
>
> On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:
>
>> Hi,
>>
>> I tried to run hadoop in standalone mode according to hadoop online
>> document. But, I get error message as below. I run command "./bin/hadoop
>> jar hadoop-examples-1.1.1.jar pi 10 100".
>>
>>
>> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server:
>> localhost/127.0.0.1:8020. Already tried 9 time(s); retry policy is
>> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
>> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
>> 127.0.0.1:8020 failed on connection exception:
>> java.net.ConnectException: Connection refused
>> *
>>
>>
>> I disabled ipV6, firewall on my linux machine. But, i still get this
>> error message. localhost is bound with 127.0.01 . core-site.xml and
>> mapreduce-site.xml are empty as they are not modified.
>>
>> Anybody can give me a hint if I need to do some specific configuration to
>> run hadoop in standalone mode?
>>
>> thanks and regards,
>>
>> Yiyu
>>
>>
>
>
> --
> Don't Grow Old, Grow Up... :-)
>

Re: run hadoop in standalone mode

Posted by Mohammad Tariq <do...@gmail.com>.
Hello Yiyu,

      Do you have "127.0.1.1" entry in your /etc/hosts file?
If yes, then change it to "127.0.0.1" and retry.


Warm Regards,
Tariq
https://mtariq.jux.com/
cloudfront.blogspot.com


On Fri, Jan 18, 2013 at 11:57 AM, feng lu <am...@gmail.com> wrote:

> Hi yiyu
>
> do you set the hadoop.tmp.dir in core-site.xml and format the namenode
> with "hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp,
> it will be clear when you restart you computer.
>
>
> On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:
>
>> Hi,
>>
>> I tried to run hadoop in standalone mode according to hadoop online
>> document. But, I get error message as below. I run command "./bin/hadoop
>> jar hadoop-examples-1.1.1.jar pi 10 100".
>>
>>
>> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server:
>> localhost/127.0.0.1:8020. Already tried 9 time(s); retry policy is
>> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
>> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
>> 127.0.0.1:8020 failed on connection exception:
>> java.net.ConnectException: Connection refused
>> *
>>
>>
>> I disabled ipV6, firewall on my linux machine. But, i still get this
>> error message. localhost is bound with 127.0.01 . core-site.xml and
>> mapreduce-site.xml are empty as they are not modified.
>>
>> Anybody can give me a hint if I need to do some specific configuration to
>> run hadoop in standalone mode?
>>
>> thanks and regards,
>>
>> Yiyu
>>
>>
>
>
> --
> Don't Grow Old, Grow Up... :-)
>

Re: run hadoop in standalone mode

Posted by Mohammad Tariq <do...@gmail.com>.
Hello Yiyu,

      Do you have "127.0.1.1" entry in your /etc/hosts file?
If yes, then change it to "127.0.0.1" and retry.


Warm Regards,
Tariq
https://mtariq.jux.com/
cloudfront.blogspot.com


On Fri, Jan 18, 2013 at 11:57 AM, feng lu <am...@gmail.com> wrote:

> Hi yiyu
>
> do you set the hadoop.tmp.dir in core-site.xml and format the namenode
> with "hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp,
> it will be clear when you restart you computer.
>
>
> On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:
>
>> Hi,
>>
>> I tried to run hadoop in standalone mode according to hadoop online
>> document. But, I get error message as below. I run command "./bin/hadoop
>> jar hadoop-examples-1.1.1.jar pi 10 100".
>>
>>
>> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server:
>> localhost/127.0.0.1:8020. Already tried 9 time(s); retry policy is
>> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
>> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
>> 127.0.0.1:8020 failed on connection exception:
>> java.net.ConnectException: Connection refused
>> *
>>
>>
>> I disabled ipV6, firewall on my linux machine. But, i still get this
>> error message. localhost is bound with 127.0.01 . core-site.xml and
>> mapreduce-site.xml are empty as they are not modified.
>>
>> Anybody can give me a hint if I need to do some specific configuration to
>> run hadoop in standalone mode?
>>
>> thanks and regards,
>>
>> Yiyu
>>
>>
>
>
> --
> Don't Grow Old, Grow Up... :-)
>

Re: run hadoop in standalone mode

Posted by feng lu <am...@gmail.com>.
Hi yiyu

do you set the hadoop.tmp.dir in core-site.xml and format the namenode with
"hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp, it
will be clear when you restart you computer.


On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Don't Grow Old, Grow Up... :-)

Re: run hadoop in standalone mode

Posted by Harsh J <ha...@cloudera.com>.
Note: You are running/asking about a pseudo-distributed mode, not
'standalone' exactly. Standalone does not have a running HDFS and uses the
local filesystem for MR execution.


On Fri, Jan 18, 2013 at 11:42 AM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Harsh J

Re: run hadoop in standalone mode

Posted by feng lu <am...@gmail.com>.
Hi yiyu

do you set the hadoop.tmp.dir in core-site.xml and format the namenode with
"hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp, it
will be clear when you restart you computer.


On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Don't Grow Old, Grow Up... :-)

Re: run hadoop in standalone mode

Posted by Harsh J <ha...@cloudera.com>.
Note: You are running/asking about a pseudo-distributed mode, not
'standalone' exactly. Standalone does not have a running HDFS and uses the
local filesystem for MR execution.


On Fri, Jan 18, 2013 at 11:42 AM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Harsh J

Re: run hadoop in standalone mode

Posted by feng lu <am...@gmail.com>.
Hi yiyu

do you set the hadoop.tmp.dir in core-site.xml and format the namenode with
"hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp, it
will be clear when you restart you computer.


On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Don't Grow Old, Grow Up... :-)

Re: run hadoop in standalone mode

Posted by Harsh J <ha...@cloudera.com>.
Note: You are running/asking about a pseudo-distributed mode, not
'standalone' exactly. Standalone does not have a running HDFS and uses the
local filesystem for MR execution.


On Fri, Jan 18, 2013 at 11:42 AM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Harsh J

Re: run hadoop in standalone mode

Posted by feng lu <am...@gmail.com>.
Hi yiyu

do you set the hadoop.tmp.dir in core-site.xml and format the namenode with
"hadoop namenode format" command? Default the hadoop.tmp.dir the /tmp, it
will be clear when you restart you computer.


On Fri, Jan 18, 2013 at 2:12 PM, yiyu jia <ji...@gmail.com> wrote:

> Hi,
>
> I tried to run hadoop in standalone mode according to hadoop online
> document. But, I get error message as below. I run command "./bin/hadoop
> jar hadoop-examples-1.1.1.jar pi 10 100".
>
>
> *13/01/18 01:07:05 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020. Already tried 9 time(s); retry policy is
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
> java.lang.RuntimeException: java.net.ConnectException: Call to localhost/
> 127.0.0.1:8020 failed on connection exception: java.net.ConnectException:
> Connection refused
> *
>
>
> I disabled ipV6, firewall on my linux machine. But, i still get this error
> message. localhost is bound with 127.0.01 . core-site.xml and
> mapreduce-site.xml are empty as they are not modified.
>
> Anybody can give me a hint if I need to do some specific configuration to
> run hadoop in standalone mode?
>
> thanks and regards,
>
> Yiyu
>
>


-- 
Don't Grow Old, Grow Up... :-)