You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Raghavendra K <ra...@gmail.com> on 2008/03/31 09:28:43 UTC

ipc.Client localhost problem

Hi,
 When I connect using the code
hdfsFS fs = hdfsConnect("default", 0);
The program works successfully and am able to save the data also. But when I
connect using the code
hdfsFS fs = hdfsConnect("localhost", 0);
(or)
hdfsFS fs = hdfsConnect("garl-intel2", 9000);
I get the following error.
08/03/31 12:48:11 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:0. Already tried 1 time(s).
How should I resolve it?

-- 
Regards,
Raghavendra K

Re: ipc.Client localhost problem

Posted by Peeyush Bishnoi <pe...@yahoo-inc.com>.
Hi ,

You have to set the "garl-intel2"  as a namenode parameter  for
fs.default.name into hadoop-site.xml

Just follow this URL : 

http://hadoop.apache.org/core/docs/current/quickstart.html 

for installing the hadoop and configuring the hadoop parameters .


---
Peeyush

On Mon, 2008-03-31 at 14:44 +0530, Raghavendra K wrote:

> Hi Peeyush,
> Thanks a lot for your reply.
> Can you tell me how to go about adding garl-intel2 to the
> hadoop-default.xml?
> Is there any document available for doing that?
> Thanking you.
> 
> 
> On Mon, Mar 31, 2008 at 2:26 PM, Peeyush Bishnoi
> <pe...@yahoo-inc.com> wrote:
> 
>         Hello Raghvendra ,
>         
>         It is working with default because "default" parameter used
>         the
>         configured file system from hadoop-site/hadoop-default.xml .
>         As your
>         localhost and garl-intel2 is not configured with
>         hadoop-site/hadoop-default.xml , it is throwing the error.
>         
>         So with hdfsConnect you have to use Hostname or IP Address
>         which has
>         been configured with file system and mentioned in the
>         hadoop-site/hadoop-default.xml
>         
>         Thanks
>         
>         ---
>         Peeyush
>         
>         
>         
>         On Mon, 2008-03-31 at 12:58 +0530, Raghavendra K wrote:
>         
>         > Hi,
>         >  When I connect using the code
>         > hdfsFS fs = hdfsConnect("default", 0);
>         > The program works successfully and am able to save the data
>         also. But when I
>         > connect using the code
>         > hdfsFS fs = hdfsConnect("localhost", 0);
>         > (or)
>         > hdfsFS fs = hdfsConnect("garl-intel2", 9000);
>         > I get the following error.
>         > 08/03/31 12:48:11 INFO ipc.Client: Retrying connect to
>         server:
>         > localhost/127.0.0.1:0. Already tried 1 time(s).
>         > How should I resolve it?
>         >
>         
> 
> 
> 
> 
> -- 
> Regards,
> Raghavendra K

Re: ipc.Client localhost problem

Posted by Raghavendra K <ra...@gmail.com>.
Hi Peeyush,
Thanks a lot for your reply.
Can you tell me how to go about adding garl-intel2 to the hadoop-default.xml
?
Is there any document available for doing that?
Thanking you.

On Mon, Mar 31, 2008 at 2:26 PM, Peeyush Bishnoi <pe...@yahoo-inc.com>
wrote:

> Hello Raghvendra ,
>
> It is working with default because "default" parameter used the
> configured file system from hadoop-site/hadoop-default.xml . As your
> localhost and garl-intel2 is not configured with
> hadoop-site/hadoop-default.xml , it is throwing the error.
>
> So with hdfsConnect you have to use Hostname or IP Address which has
> been configured with file system and mentioned in the
> hadoop-site/hadoop-default.xml
>
> Thanks
>
> ---
> Peeyush
>
> On Mon, 2008-03-31 at 12:58 +0530, Raghavendra K wrote:
>
> > Hi,
> >  When I connect using the code
> > hdfsFS fs = hdfsConnect("default", 0);
> > The program works successfully and am able to save the data also. But
> when I
> > connect using the code
> > hdfsFS fs = hdfsConnect("localhost", 0);
> > (or)
> > hdfsFS fs = hdfsConnect("garl-intel2", 9000);
> > I get the following error.
> > 08/03/31 12:48:11 INFO ipc.Client: Retrying connect to server:
> > localhost/127.0.0.1:0. Already tried 1 time(s).
> > How should I resolve it?
> >
>



-- 
Regards,
Raghavendra K

Re: ipc.Client localhost problem

Posted by Peeyush Bishnoi <pe...@yahoo-inc.com>.
Hello Raghvendra ,

It is working with default because "default" parameter used the
configured file system from hadoop-site/hadoop-default.xml . As your
localhost and garl-intel2 is not configured with
hadoop-site/hadoop-default.xml , it is throwing the error.

So with hdfsConnect you have to use Hostname or IP Address which has
been configured with file system and mentioned in the
hadoop-site/hadoop-default.xml

Thanks

---
Peeyush 

On Mon, 2008-03-31 at 12:58 +0530, Raghavendra K wrote:

> Hi,
>  When I connect using the code
> hdfsFS fs = hdfsConnect("default", 0);
> The program works successfully and am able to save the data also. But when I
> connect using the code
> hdfsFS fs = hdfsConnect("localhost", 0);
> (or)
> hdfsFS fs = hdfsConnect("garl-intel2", 9000);
> I get the following error.
> 08/03/31 12:48:11 INFO ipc.Client: Retrying connect to server:
> localhost/127.0.0.1:0. Already tried 1 time(s).
> How should I resolve it?
>