Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 56928 invoked from network); 10 Sep 2010 00:48:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 00:48:20 -0000 Received: (qmail 3007 invoked by uid 500); 10 Sep 2010 00:48:19 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 2970 invoked by uid 500); 10 Sep 2010 00:48:19 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 2960 invoked by uid 99); 10 Sep 2010 00:48:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 00:48:18 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [203.66.245.12] (HELO mg.tsmc.com) (203.66.245.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 00:48:12 +0000 Received: from mailgate09.tsmc.com.tw (mailgate09.tsmc.com.tw [10.60.33.43]) by mg.tsmc.com (8.13.8/8.12.6) with ESMTP id o8A0lawh028786 for ; Fri, 10 Sep 2010 08:47:36 +0800 (CST) Received: from twhsos12.tsmc.com.tw (twhsos12.tsmc.com.tw [10.48.37.96]) by mailgate09.tsmc.com.tw (8.13.8/8.13.8) with ESMTP id o8A0lZuS018009 for ; Fri, 10 Sep 2010 08:47:35 +0800 Subject: Re: try to read content of stored file To: user@hbase.apache.org X-Mailer: Lotus Notes Release 5.0.10 March 22, 2002 Message-ID: From: y_823910@tsmc.com Date: Fri, 10 Sep 2010 08:47:27 +0800 X-MIMETrack: Serialize by Router on TWHSOS12/TSMC(Release 7.04FP2HF3 | July 6, 2010) at 09/10/2010 08:47:35 MIME-Version: 1.0 Content-type: text/plain; charset=Big5 I got a hbase file from HDFS to /Cloud_Computing/tmp/ttt.txt I am sure the ttt.txt is in the /Cloud_Computing/tmp, I don't know why it still showed file doesn't exist ./hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f /Cloud_Computing/tmp Scanning -> /Cloud_Computing/tmp ERROR, file doesnt exist: /Cloud_Computing/tmp ./hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f /Cloud_Computing/tmp/ttt.txt Scanning -> /Cloud_Computing/tmp/ttt.txt ERROR, file doesnt exist: /Cloud_Computing/tmp/ttt.txt saint.ack@gmail.c om To: user@hbase.apache.org Sent by: cc: (bcc: Y_823910/TSMC) saint.ack@gmail.c Subject: Re: try to read content of stored file om 2010/09/09 11:56 PM Please respond to user 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 : > 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: user@hbase.apache.org > 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 : >> /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: > user@hbase.apache.org >> 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, 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: >> user@hbase.apache.org >>> Sent by: cc: (bcc: >> Y_823910/TSMC) >>> saint.ack@gmail.c Subject: Re: try to read >> content of stored file >>> om >>> >>> >>> 2010/09/09 11:50 >>> AM >>> Please respond to >>> user >>> >>> >>> >>> >>> >>> >>> Try this tool: >>> >>> $ ./bin/hbase org.apache.hadoop.hbase.io.hfile.HFile >>> >>> Doing the above dumps out usage. You can pass a filename -- specify >>> it fully with its hdfs schema as in hdfs://a:9000/hbase/.META./12/34 >>> -- or pass the name of a region and it'll dump all therein. >>> >>> Let us know if its not working for you. >>> >>> St.Ack >>> >>> 2010/9/8 : >>>> >>>> Hi there, >>>> >>>> I am very curious about the content of Hbase store file. >>>> Try to read it by HDFS java API, but it's hard to understand these data >>> due >>>> to alot of invisible codes. >>>> Any suggestion? >>>> >>>> >>>> Fleming Chiu(������) >>>> Be Veg! Go Green! Save the planet! >>>> >>>> >>>> >> > --------------------------------------------------------------------------- >>> >>>> TSMC PROPERTY >>>> This email communication (and any attachments) is proprietary >>> information >>>> for the sole use of its >>>> intended recipient. Any unauthorized review, use or distribution by >>> anyone >>>> other than the intended >>>> recipient is strictly prohibited. If you are not the intended >>> recipient, >>>> please notify the sender by >>>> replying to this email, and then delete this email and any copies of > it >>>> immediately. Thank you. >>>> >> > --------------------------------------------------------------------------- >>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> > --------------------------------------------------------------------------- >>> TSMC PROPERTY >>> This email communication (and any attachments) is proprietary >> information >>> for the sole use of its >>> intended recipient. Any unauthorized review, use or distribution by >> anyone >>> other than the intended >>> recipient is strictly prohibited. If you are not the intended >> recipient, >>> please notify the sender by >>> replying to this email, and then delete this email and any copies of it >>> immediately. Thank you. >>> >> > --------------------------------------------------------------------------- >>> >>> >> >> >> >> >> > --------------------------------------------------------------------------- >> TSMC PROPERTY >> This email communication (and any attachments) is proprietary > information >> for the sole use of its >> intended recipient. Any unauthorized review, use or distribution by > anyone >> other than the intended >> recipient is strictly prohibited. If you are not the intended > recipient, >> please notify the sender by >> replying to this email, and then delete this email and any copies of it >> immediately. Thank you. >> > --------------------------------------------------------------------------- >> >> >> >> > > > > > --------------------------------------------------------------------------- > TSMC PROPERTY > This email communication (and any attachments) is proprietary information > for the sole use of its > intended recipient. Any unauthorized review, use or distribution by anyone > other than the intended > recipient is strictly prohibited. If you are not the intended recipient, > please notify the sender by > replying to this email, and then delete this email and any copies of it > immediately. Thank you. > --------------------------------------------------------------------------- > > > > --------------------------------------------------------------------------- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you. ---------------------------------------------------------------------------