hbase中meta表信息查看
来源:互联网 发布:编程需要学微积分吗 编辑:程序博客网 时间:2024/06/06 05:00
Hi,We had the same problem.We solve it this way:hbase zk_cli-ls /hbase/tablesThe table was still on Zookeeper.Deleted the table from zookeeper (rmr).Restart Hbase Masters, restart hbase region servers.echo "scan '.META.'" | hbase shell | grep-------------------------------------------------------
Miguel CostaOn 05/07/2012 06:42 PM, Ey-Chih chow wrote:> If we use the class CleanFromMeta in http://www.mail-archive.com/issues@hbase.apache.org/msg06620.htmlto delete related entries in .META., will the corresponding znode for the table get automaticallydeleted? Thanks.>> Ey-Chih Chow>>> On May 7, 2012, at 8:11 AM, Jiajun Chen wrote:>>> Yeah !>> delete the znode for that table and restart the cluster then create it>> successfully !>>>> On 7 May 2012 23:08, Dave Wang<dsw@cloudera.com> wrote:>>>>> You may need to edit your ZK nodes. Depending on what version of HBase you>>> are running, you may need to either create or delete the znode for that>>> table.>>>>>> - Dave>>>>>> On Mon, May 7, 2012 at 7:57 AM, Jiajun Chen<cjjvictory@gmail.com> wrote:>>>>>>> I deleted all rows of cjjWaitHash in .META. used deleteall in shell ,and>>>> output nothing after echo "scan '.META.'" | hbase shell | grep>>> cjjWaitHash>>>> .>>>>>>>> but why ?>>>>>>>>> count 'cjjWaitHash'>>>> ERROR: Unknown table cjjWaitHash!>>>>>>>>> enable 'cjjWaitHash'>>>> ERROR: Table cjjWaitHash does not exist.'>>>>>>>>> disable 'cjjWaitHash'>>>> ERROR: Table cjjWaitHash does not exist.'>>>>>>>>> create 'cjjWaitHash',{NAME => 'c',COMPRESSION =>'LZO', VERSIONS=> '1'}>>>> ERROR: Table already exists: cjjWaitHash!>>>>>>>>>>>> On 7 May 2012 22:34, Jiajun Chen<cjjvictory@gmail.com> wrote:>>>>>>>>> But I can't find the key contains cjjWaitHash use the following code:>>>>>>>>>> public void printMETA() throws IOException>>>>> {>>>>> final HTable table = MyHBaseConfiguration.getTable(".META.");>>>>> final Scan scan = new Scan();>>>>> final ResultScanner scanner = table.getScanner(scan);>>>>>>>>>> while (true)>>>>> {>>>>> final Result next = scanner.next();>>>>> if (null == next)>>>>> {>>>>>>>>>> return;>>>>> }>>>>> final String row = Bytes.toString(next.getRow());>>>>> if (row.contains("cjjWaitHash"))>>>>> {>>>>> System.err.println(row);>>>>> }>>>>> System.out.println(row);>>>>>>>>>> }>>>>> }>>>>>>>>>> On 7 May 2012 22:30, Doug Meil<doug.meil@explorysmedical.com> wrote:>>>>>>>>>>> This is why Harsh was suggesting that you look at what is in METAfor>>>> that>>>>>> table. Those records have to get cleaned out of META because HBase>>>> thinks>>>>>> that table still exists.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On 5/7/12 10:23 AM, "Jiajun Chen"<cjjvictory@gmail.com> wrote:>>>>>>>>>>>>> I can lost the data , how to create the table with no data ?>>>>>>>>>>>>>> On 7 May 2012 22:19, Doug Meil<doug.meil@explorysmedical.com>>>> wrote:>>>>>>>> Because you did this... "hadoop fs -rmr /hbase/cjjWaitHash">>>>>>>>>>>>>>>> ... your data is gone.>>>>>>>>>>>>>>>> Per...>>>>>>>>>>>>>>>> http://hbase.apache.org/book.html#trouble.namenode>>>>>>>>>>>>>>>>>>>>>>>> ... that's where StoreFiles are kept for that particulartable.>>>>>>>>>>>>>>>>>>>>>>>> On 5/7/12 10:05 AM, "Jiajun Chen"<cjjvictory@gmail.com> wrote:>>>>>>>>>>>>>>>>> which temp directory ?>>>>>>>>> lose the data of all tables ?>>>>>>>>>>>>>>>>>> On 7 May 2012 22:01, Tom Brown<tombrown52@gmail.com> wrote:>>>>>>>>>>>>>>>>>>> I made a very similar mistake myself the other daywhen trying>>> to>>>>>>>> reset>>>>>>>>>> my>>>>>>>>>> cluster. What finally solved it was deleting thetemp directory>>>>>> used>>>>>>>>>> by my>>>>>>>>>> data nodes (in my case I wanted to loose all my data,so it was>>> ok>>>>>> to>>>>>>>>>> delete everything... In your case, you may have tofigure out>>> how>>>> to>>>>>>>>>> export>>>>>>>>>> some data first, as I don't know exactly what effectdeleting>>> that>>>>>>>> temp>>>>>>>>>> directory will have)>>>>>>>>>>>>>>>>>>>> Good luck!>>>>>>>>>>>>>>>>>>>> --Tom>>>>>>>>>>>>>>>>>>>> On Monday, May 7, 2012, Doug Meil wrote:>>>>>>>>>>>>>>>>>>>>> Harsh pretty much summed it up already (e.g.,"don't do that")>>>> but>>>>>>>>>> below>>>>>>>>>>> is some further reading of what just happened...>>>>>>>>>>>>>>>>>>>>>> http://hbase.apache.org/book.html#arch.catalog>>>>>>>>>>> http://hbase.apache.org/book.html#trouble.namenode>>>>>>>>>>>>>>>>>>>>>> ... META is just an HBase table under the covers.By deleting>>>> the>>>>>>>>>> table>>>>>>>>>> on>>>>>>>>>>> the HDFS filesystem, it did nothing with thetable metadata in>>>>>>>> META.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On 5/7/12 9:18 AM, "Harsh J"<harsh@cloudera.com>>> <javascript:;>>>>>>>>>>>> wrote:>>>>>>>>>>>> The drop is what you ought to have done first,before>>> removing>>>>>>>> the FS>>>>>>>>>>>> folder and the meta entries. It does allthose actions for>>> you.>>>>>>>> Why>>>>>>>>>>>> did you do it this way?>>>>>>>>>>>>>>>>>>>>>>>> Do you see the table still appearing in thelist outputs? Can>>>> you>>>>>>>>>>>> provide us a paste bin link of:>>>>>>>>>>>>>>>>>>>>>>>> echo "scan '.META.'" | hbase shell | grepcjjWaitHash>>>>>>>>>>>>>>>>>>>>>>>> On Mon, May 7, 2012 at 6:44 PM, Jiajun Chen<>>>>>> cjjvictory@gmail.com>>>>>>>>>> <javascript:;>>>>>>>>>>>>> wrote:>>>>>>>>>>>>> I deleted the folder use bin/hadoop fs-rmr>>>> /hbase/cjjWaitHash>>>>>>>> ,and>>>>>>>>>>>>> deleted>>>>>>>>>>>>> the row with prefix cjjWaitHash in .META.>>>>>>>>>>>>> Now how can I drop the table cjjWaitHash?>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->>>>>>>>>>>> Harsh J>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->>>>>>>>>>>>>>>>>>>>>>>> -->>>>>>>>>>>>>>>>>> --
0 0
- hbase中meta表信息查看
- HBase中-ROOT-和.META.表
- hbase meta表恢复
- hbase meta表修复
- hbase meta表修复
- hbase meta表修复
- 删除Hbase的META中多余表项
- HBase meta表数据修复
- HBase查看表大小&在Hdfs中的具体信息
- yii中添加meta信息
- Hbase“-ROOT-”表和“.META.”表
- HBase -ROOT-表和.META.表
- HBase -ROOT-和.META.表结构
- HBase -ROOT-和.META.表结构
- HBase -ROOT-和.META.表结构
- HBase -ROOT-和.META.表结构
- 记一次HBASE META表故障
- HBase查看表大小
- 重温SQL——行转列,列转行
- FLEX/AIR发送Http请求Web服务器并取得数据。
- 对jsp的一个小结(3)使用JDBC操作数据库
- add comments for signal
- plupload上传插件绑定事件的两种方法
- hbase中meta表信息查看
- OpenCascade 6.8.0 和 VS2010联合编译
- Java多例模式
- libevent (二) 接收TCP连接
- golang的profile
- 深入浅出REST
- LUA string库详解
- Objective-C中的@property和@synthesize用法详解
- flex中httpservice与java后台交互的两种传值方式