Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - try to read content of stored file


Copy link to this message
-
Re: try to read content of stored file
Himanshu Vashishtha 2010-09-09, 21:04
just a minor point:

./bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f  <file name>
where filename should be the configured fs (local/hdfs). "-f" option is
necessary to read a given file. In case one gives wrong dfs, it will give
error.

hbase org.apache.hadoop.hbase.io.hfile.HFile -vf
hdfs://localhost:54310/hbase/elemTable/93505166/positionFamily/7224251540989841115
| more
Scanning ->
hdfs://localhost:54310/hbase/elemTable/93505166/positionFamily/7224251540989841115
Scanned kv count -> 301036

hbase org.apache.hadoop.hbase.io.hfile.HFile -vf
fake://localhost:54310/hbase/elemTable/93505166/positionFamily/7224251540989841115ds
| more
java.lang.IllegalArgumentException: Wrong FS:
fake://localhost:54310/hbase/elemTable/93505166/positionFamily/7224251540989841115ds,
expected: hdfs://localhost:54310
    at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:310)
2010/9/9 Stack <[EMAIL PROTECTED]>

> Just pass the path as an argument.  For example if the file i sin
> current directory named 5319664235715793176:
>
> $ ./bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f
> ./5319664235715793176
>
> St.Ack
>
> 2010/9/8  <[EMAIL PROTECTED]>:
> > Meantime, copy the file down from hdfs and pass it to the script (w/
> > the -f and -v flags)
> >
> > I've copy the file from hdfs to my local machine.
> > but sorry! I don't know how to pass it to the script w/ the -f and -v
> > flags.
> > Could you give me a example.
> > Thank you very much
> >
> >
> >
> >
> >
> >                      saint.ack@gmail.c
> >                      om                       To:
> [EMAIL PROTECTED]
> >                      Sent by:                 cc:      (bcc:
> Y_823910/TSMC)
> >                      saint.ack@gmail.c        Subject: Re: try to read
> content of stored file
> >                      om
> >
> >
> >                      2010/09/09 02:14
> >                      PM
> >                      Please respond to
> >                      user
> >
> >
> >
> >
> >
> >
> > Looks like you need to pass -f so:
> >
> > $ ./bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f
> >
> hdfs://x:9000/hbase/TestTable/efeb1bab2d99b205ec8837fc40d7010a/info/5319664235715793176
> >
> >
> > ... but then you'll probably get this:
> >
> > java.lang.IllegalArgumentException: Wrong FS.....
> >
> > I'll fix this in TRUNK
> >
> > Meantime, copy the file down from hdfs and pass it to the script (w/
> > the -f and -v flags).
> >
> > St.Ack
> >
> >
> >
> > 2010/9/8  <[EMAIL PROTECTED]>:
> >> /bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v
> >> hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
> >> I added -v . but still nothing found on the screen!
> >>
> >>
> >>
> >>
> >>                      saint.ack@gmail.c
> >>                      om                       To:
> > [EMAIL PROTECTED]
> >>                      Sent by:                 cc:      (bcc:
> > Y_823910/TSMC)
> >>                      saint.ack@gmail.c        Subject: Re: try to read
> > content of stored file
> >>                      om
> >>
> >>
> >>                      2010/09/09 01:56
> >>                      PM
> >>                      Please respond to
> >>                      user
> >>
> >>
> >>
> >>
> >>
> >>
> >> Add -v?
> >> St.Ack
> >>
> >> On Wed, Sep 8, 2010 at 10:53 PM,  <[EMAIL PROTECTED]> wrote:
> >>> Hi,
> >>> I didn't see any output after running following commands.
> >>> Any idea?
> >>> Thank you
> >>>
> >>> /bin/hbase org.apache.hadoop.hbase.io.hfile.HFile
> >>> hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
> >>> /bin/hbase org.apache.hadoop.hbase.io.hfile.HFile
> >>> /hbase/TEST/1418428042/DSMP/4759508618286845475
> >>> /bin/hbase org.apache.hadoop.hbase.io.hfile.HFile
> >>> hdfs://cc11:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
> >>>
> >>> Fleming Chiu(邱宏明)
> >>> Be Veg! Go Green! Save the planet!
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>                      saint.ack@gmail.c
> >>>                      om                       To: