hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Boesch <java...@gmail.com>
Subject Re: Recommended way to check if namenode already formatted
Date Thu, 09 Aug 2012 23:36:46 GMT
Hi,
      VERSION does not appear to show up when running  "hadoop dfs -lsr /"
   it displays the files previously placed into hdfs . but nothing about
VERSION.      I can see the VERSION file  on the datanodes under the hdfs
managed data  directoy

find /data | xargs ls -lrta | grep VERSION
-rw-rw-r-- 1 hdfs   hdfs     154 Aug  9 16:28 /data/1/dfs/dn/current/VERSION
-rw-rw-r-- 1 hdfs   hdfs     154 Aug  9 16:28 /data/2/dfs/dn/current/VERSION
-rw-rw-r-- 1 hdfs   hdfs     154 Aug  9 16:28 /data/3/dfs/dn/current/VERSION
-rw-rw-r-- 1 hdfs hdfs    154 Aug  9 16:28 VERSION
-rw-rw-r-- 1 hdfs hdfs    154 Aug  9 16:28 VERSION
-rw-rw-r-- 1 hdfs hdfs    154 Aug  9 16:28 VERSION

But using hadoop dfs does not see it ?


2012/8/9 Mohammad Tariq <dontariq@gmail.com>

> Hello Stephen,
>
>     You can use the VERSION file to verify that.
>
> Regards,
>     Mohammad Tariq
>
>
> On Fri, Aug 10, 2012 at 4:34 AM, Stephen Boesch <javadba@gmail.com> wrote:
> >
> > Hi,  what's your take?   I was thinking to check if a certain
> always-present
> > file exists  via a  hadoop dfs -ls <file> .  Other suggestions  welcome.
> >
> > thanks
> >
> > stephenb
>

Mime
View raw message