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?
> 

Reply via email to