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 Vinodh Nagaraj <vi...@gmail.com> on 2016/03/18 11:41:23 UTC

Hadoop command without URI

Hi All,

I configured Hadoop  2.7.1 on Windows 32 bit.

Core-site.xml
-------------------------
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>

when  i execute the below command,it shows error.

C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls*
ls: `.': No such file or directory

If i execute like below,it shows output.

C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls hdfs://localhost/*


*Do i have to change anything in core-site.xml file ?*


*Any help please.*

Thanks & Regards,
Vinodh.N

Re: Hadoop command without URI

Posted by Namikaze Minato <ll...@gmail.com>.
I don't think you need to change anything, no.

If you do >hadoop fs -ls /

You should have the same output as your hadoop fs -ls hdfs://localhost/

Regards,
LLoyd

On 18 March 2016 at 11:41, Vinodh Nagaraj <vi...@gmail.com> wrote:

> Hi All,
>
> I configured Hadoop  2.7.1 on Windows 32 bit.
>
> Core-site.xml
> -------------------------
> <configuration>
> <property>
> <name>fs.defaultFS</name>
> <value>hdfs://localhost/</value>
> </property>
>
> when  i execute the below command,it shows error.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls*
> ls: `.': No such file or directory
>
> If i execute like below,it shows output.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls hdfs://localhost/*
>
>
> *Do i have to change anything in core-site.xml file ?*
>
>
> *Any help please.*
>
> Thanks & Regards,
> Vinodh.N
>
>

Re: Hadoop command without URI

Posted by Namikaze Minato <ll...@gmail.com>.
I don't think you need to change anything, no.

If you do >hadoop fs -ls /

You should have the same output as your hadoop fs -ls hdfs://localhost/

Regards,
LLoyd

On 18 March 2016 at 11:41, Vinodh Nagaraj <vi...@gmail.com> wrote:

> Hi All,
>
> I configured Hadoop  2.7.1 on Windows 32 bit.
>
> Core-site.xml
> -------------------------
> <configuration>
> <property>
> <name>fs.defaultFS</name>
> <value>hdfs://localhost/</value>
> </property>
>
> when  i execute the below command,it shows error.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls*
> ls: `.': No such file or directory
>
> If i execute like below,it shows output.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls hdfs://localhost/*
>
>
> *Do i have to change anything in core-site.xml file ?*
>
>
> *Any help please.*
>
> Thanks & Regards,
> Vinodh.N
>
>

Re: Hadoop command without URI

Posted by Namikaze Minato <ll...@gmail.com>.
I don't think you need to change anything, no.

If you do >hadoop fs -ls /

You should have the same output as your hadoop fs -ls hdfs://localhost/

Regards,
LLoyd

On 18 March 2016 at 11:41, Vinodh Nagaraj <vi...@gmail.com> wrote:

> Hi All,
>
> I configured Hadoop  2.7.1 on Windows 32 bit.
>
> Core-site.xml
> -------------------------
> <configuration>
> <property>
> <name>fs.defaultFS</name>
> <value>hdfs://localhost/</value>
> </property>
>
> when  i execute the below command,it shows error.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls*
> ls: `.': No such file or directory
>
> If i execute like below,it shows output.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls hdfs://localhost/*
>
>
> *Do i have to change anything in core-site.xml file ?*
>
>
> *Any help please.*
>
> Thanks & Regards,
> Vinodh.N
>
>

Re: Hadoop command without URI

Posted by Namikaze Minato <ll...@gmail.com>.
I don't think you need to change anything, no.

If you do >hadoop fs -ls /

You should have the same output as your hadoop fs -ls hdfs://localhost/

Regards,
LLoyd

On 18 March 2016 at 11:41, Vinodh Nagaraj <vi...@gmail.com> wrote:

> Hi All,
>
> I configured Hadoop  2.7.1 on Windows 32 bit.
>
> Core-site.xml
> -------------------------
> <configuration>
> <property>
> <name>fs.defaultFS</name>
> <value>hdfs://localhost/</value>
> </property>
>
> when  i execute the below command,it shows error.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls*
> ls: `.': No such file or directory
>
> If i execute like below,it shows output.
>
> C:\hadoop-2.7.1\hadoop-2.7.1\sbin>*hadoop fs -ls hdfs://localhost/*
>
>
> *Do i have to change anything in core-site.xml file ?*
>
>
> *Any help please.*
>
> Thanks & Regards,
> Vinodh.N
>
>