Try hadoop fs -ls / you're logged in as root, so it's trying to ls /user/root on HDFS which probably doesn't exist.
-Todd On Thu, Dec 16, 2010 at 7:58 AM, Hiller, Dean (Contractor) <dean.hil...@broadridge.com> wrote: > ./hadoop dfs –ls hdfs:// works > > > > But when I just do ls, it is not working…. > > > > [r...@hadoop4 bin]# ./hadoop dfs -ls > > configDir=/mnt/hadoop_files/hadoop_config > > classpath=/opt/hbase-install/hbase/hbase-0.20.6.jar:/opt/hbase-install/hbase/hba > > se-0.20.6-test.jar:/mnt/hadoop_config/hbase_config:/opt/hbase-install/hbase/lib/ > > zookeeper-3.2.2.jar > > ls: Cannot access .: No such file or directory. > > > > Unfortunately, I had to reconfigure all of my hadoop for DNS so I must have > something wrong. > > My core-site.xml file is now > > <configuration> > > <property> > > <name>fs.default.name</name> > > <value>hdfs://hadoop1:54310</value> > > </property> > > <property> > > <name>hadoop.tmp.dir</name> > > <value>/hdfs/data/hadooptmp</value> > > </property> > > </configuration> > > > > While my hdfs-site.xml is > > <configuration> > > <property> > > <name>dfs.data.dir</name> > > <value>/hdfs/data/hadoop</value> > > </property> > > <property> > > <name>dfs.replication</name> > > <value>1</value> > > </property> > > </configuration> > > > > My masters is > > hadoop1 > > > > My slaves file is > > hadoop1 > > hadoop2 > > > > Is there something wrong in my config? I am having other issues that I > thought may be caused by this. > > Thanks, > > Dean > > > > > > > > This message and any attachments are intended only for the use of the > addressee and > may contain information that is privileged and confidential. If the reader > of the > message is not the intended recipient or an authorized representative of the > intended recipient, you are hereby notified that any dissemination of this > communication is strictly prohibited. If you have received this > communication in > error, please notify us immediately by e-mail and delete the message and any > attachments from your system. > > -- Todd Lipcon Software Engineer, Cloudera