|
hua beatls
2013-01-17, 09:23
Jean-Marc Spaggiari
2013-01-17, 11:38
hua beatls
2013-01-17, 12:15
Jean-Marc Spaggiari
2013-01-17, 12:21
hua beatls
2013-01-17, 12:46
Jean-Marc Spaggiari
2013-01-17, 13:40
hua beatls
2013-01-17, 14:42
Jean-Marc Spaggiari
2013-01-17, 14:45
|
-
how to drop a table forcefully?hua beatls 2013-01-17, 09:23
hi,
A table mistakenly created cannot be dropped? first we create it with 'hbase shell', below: [hadoop@hadoop3 ~]$ [hadoop@hadoop3 ~]$ hbase shell 13/01/17 15:49:35 WARN conf.Configuration: hadoop.native.lib is deprecated. Instead, use io.native.lib.available HBase Shell; enter 'help<RETURN>' for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.92.1-cdh4.1.2, r, Thu Nov 1 17:54:35 PDT 2012 hbase(main):001:0> create 't111',{NAME=>'CF111',COMPRESSION=>'snappy'} SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/app/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. ^C[hadoop@hadoop3 ~]$ (this command hang after i issue "ctrl-c". (please be noted that 'snappy' is not installed/config in this hbase.) second, we 'describe' this table, below, hbase(main):003:0> describe 't111' DESCRIPTION ENABLED {NAME => 't111', FAMILIES => [{NAME => 'CF111', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS true => '3', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]} 1 row(s) in 0.0470 seconds 3rd, but this table is in the 'transition' state, and remains in this state. 4th, i want to 'drop' this table, but 'drop' hang and failed. hbase(main):002:0> disable 't111' 0 row(s) in 1.1560 seconds hbase(main):005:0> drop 't111' 'drop' is hang until i 'ctrl-c'. is there any other way to drop this table forcefully? Beat R. beatls
-
Re: how to drop a table forcefully?Jean-Marc Spaggiari 2013-01-17, 11:38
Hi Beat,
Have you tried to check the filesystem using fsck to see if there is no inconsistencies? JM 2013/1/17, hua beatls <[EMAIL PROTECTED]>: > hi, > A table mistakenly created cannot be dropped? > first we create it with 'hbase shell', below: > [hadoop@hadoop3 ~]$ > [hadoop@hadoop3 ~]$ hbase shell > 13/01/17 15:49:35 WARN conf.Configuration: hadoop.native.lib is deprecated. > Instead, use io.native.lib.available > HBase Shell; enter 'help<RETURN>' for list of supported commands. > Type "exit<RETURN>" to leave the HBase Shell > Version 0.92.1-cdh4.1.2, r, Thu Nov 1 17:54:35 PDT 2012 > hbase(main):001:0> create 't111',{NAME=>'CF111',COMPRESSION=>'snappy'} > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/app/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > ^C[hadoop@hadoop3 ~]$ > (this command hang after i issue "ctrl-c". (please be noted that 'snappy' > is not installed/config in this hbase.) > second, we 'describe' this table, below, > hbase(main):003:0> describe 't111' > DESCRIPTION > ENABLED > {NAME => 't111', FAMILIES => [{NAME => 'CF111', BLOOMFILTER => 'NONE', > REPLICATION_SCOPE => '0', VERSIONS > true > => '3', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0', TTL => '2147483647', > BLOCKSIZE => '65536', > IN_MEMORY > => 'false', BLOCKCACHE => > 'true'}]} > > 1 row(s) in 0.0470 seconds > 3rd, but this table is in the 'transition' state, and remains in this > state. > 4th, i want to 'drop' this table, but 'drop' hang and failed. > hbase(main):002:0> disable 't111' > 0 row(s) in 1.1560 seconds > hbase(main):005:0> drop 't111' > > 'drop' is hang until i 'ctrl-c'. > > is there any other way to drop this table forcefully? > > > Beat R. > > beatls >
-
Re: how to drop a table forcefully?hua beatls 2013-01-17, 12:15
Hi,
the file system is ok. any other idea? beatls On Thu, Jan 17, 2013 at 7:38 PM, Jean-Marc Spaggiari < [EMAIL PROTECTED]> wrote: > Hi Beat, > > Have you tried to check the filesystem using fsck to see if there is > no inconsistencies? > > JM > > 2013/1/17, hua beatls <[EMAIL PROTECTED]>: > > hi, > > A table mistakenly created cannot be dropped? > > first we create it with 'hbase shell', below: > > [hadoop@hadoop3 ~]$ > > [hadoop@hadoop3 ~]$ hbase shell > > 13/01/17 15:49:35 WARN conf.Configuration: hadoop.native.lib is > deprecated. > > Instead, use io.native.lib.available > > HBase Shell; enter 'help<RETURN>' for list of supported commands. > > Type "exit<RETURN>" to leave the HBase Shell > > Version 0.92.1-cdh4.1.2, r, Thu Nov 1 17:54:35 PDT 2012 > > hbase(main):001:0> create 't111',{NAME=>'CF111',COMPRESSION=>'snappy'} > > SLF4J: Class path contains multiple SLF4J bindings. > > SLF4J: Found binding in > > > [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > > SLF4J: Found binding in > > > [jar:file:/app/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > > explanation. > > ^C[hadoop@hadoop3 ~]$ > > (this command hang after i issue "ctrl-c". (please be noted that > 'snappy' > > is not installed/config in this hbase.) > > second, we 'describe' this table, below, > > hbase(main):003:0> describe 't111' > > DESCRIPTION > > ENABLED > > {NAME => 't111', FAMILIES => [{NAME => 'CF111', BLOOMFILTER => 'NONE', > > REPLICATION_SCOPE => '0', VERSIONS > > true > > => '3', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0', TTL => > '2147483647', > > BLOCKSIZE => '65536', > > IN_MEMORY > > => 'false', BLOCKCACHE => > > 'true'}]} > > > > 1 row(s) in 0.0470 seconds > > 3rd, but this table is in the 'transition' state, and remains in > this > > state. > > 4th, i want to 'drop' this table, but 'drop' hang and failed. > > hbase(main):002:0> disable 't111' > > 0 row(s) in 1.1560 seconds > > hbase(main):005:0> drop 't111' > > > > 'drop' is hang until i 'ctrl-c'. > > > > is there any other way to drop this table forcefully? > > > > > > Beat R. > > > > beatls > > >
-
Re: how to drop a table forcefully?Jean-Marc Spaggiari 2013-01-17, 12:21
Hi,
What do you mean by "the file system is ok"? Have you run both the HBase and the Hadoop checks and both of them aren't returning any error? Also, what do you have on the webui? Can yo usee the table? The regions? When you are trying to delete the table, what do you havae on you master logs? Can you share this log? Thanks, JM 2013/1/17, hua beatls <[EMAIL PROTECTED]>: > Hi, > the file system is ok. > > any other idea? > > beatls > > On Thu, Jan 17, 2013 at 7:38 PM, Jean-Marc Spaggiari < > [EMAIL PROTECTED]> wrote: > >> Hi Beat, >> >> Have you tried to check the filesystem using fsck to see if there is >> no inconsistencies? >> >> JM >> >> 2013/1/17, hua beatls <[EMAIL PROTECTED]>: >> > hi, >> > A table mistakenly created cannot be dropped? >> > first we create it with 'hbase shell', below: >> > [hadoop@hadoop3 ~]$ >> > [hadoop@hadoop3 ~]$ hbase shell >> > 13/01/17 15:49:35 WARN conf.Configuration: hadoop.native.lib is >> deprecated. >> > Instead, use io.native.lib.available >> > HBase Shell; enter 'help<RETURN>' for list of supported commands. >> > Type "exit<RETURN>" to leave the HBase Shell >> > Version 0.92.1-cdh4.1.2, r, Thu Nov 1 17:54:35 PDT 2012 >> > hbase(main):001:0> create 't111',{NAME=>'CF111',COMPRESSION=>'snappy'} >> > SLF4J: Class path contains multiple SLF4J bindings. >> > SLF4J: Found binding in >> > >> [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> > SLF4J: Found binding in >> > >> [jar:file:/app/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an >> > explanation. >> > ^C[hadoop@hadoop3 ~]$ >> > (this command hang after i issue "ctrl-c". (please be noted that >> 'snappy' >> > is not installed/config in this hbase.) >> > second, we 'describe' this table, below, >> > hbase(main):003:0> describe 't111' >> > DESCRIPTION >> > ENABLED >> > {NAME => 't111', FAMILIES => [{NAME => 'CF111', BLOOMFILTER => 'NONE', >> > REPLICATION_SCOPE => '0', VERSIONS >> > true >> > => '3', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0', TTL => >> '2147483647', >> > BLOCKSIZE => '65536', >> > IN_MEMORY >> > => 'false', BLOCKCACHE => >> > 'true'}]} >> > >> > 1 row(s) in 0.0470 seconds >> > 3rd, but this table is in the 'transition' state, and remains in >> this >> > state. >> > 4th, i want to 'drop' this table, but 'drop' hang and failed. >> > hbase(main):002:0> disable 't111' >> > 0 row(s) in 1.1560 seconds >> > hbase(main):005:0> drop 't111' >> > >> > 'drop' is hang until i 'ctrl-c'. >> > >> > is there any other way to drop this table forcefully? >> > >> > >> > Beat R. >> > >> > beatls >> > >> >
-
Re: how to drop a table forcefully?hua beatls 2013-01-17, 12:46
On Thu, Jan 17, 2013 at 8:21 PM, Jean-Marc Spaggiari <
[EMAIL PROTECTED]> wrote: > Hi, > *below is snapshot of webui,* tabel 'cdrtestsnap' and 'cdrtestsnappy' is on the list , as well as their regions. cdrtestGZ <http://192.168.250.106:60010/table.jsp?name=cdrtestGZ> {NAME => 'cdrtestGZ', FAMILIES => [{NAME => 'cf', COMPRESSION => 'GZ', MIN_VERSIONS => '0'}]} cdrtestsnap<http://192.168.250.106:60010/table.jsp?name=cdrtestsnap> {NAME => 'cdrtestsnap', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0'}]} cdrtestsnappy<http://192.168.250.106:60010/table.jsp?name=cdrtestsnappy> {NAME => 'cdrtestsnappy', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '0'}]} region information of table 'cdrtestsnap' show below: Table Attributes Attribute Name Value Description Enabled true Is the table enabled Compaction ------------------------------ Actions: Region Key (optional): This action will force a compaction of all regions of the table, or, if a key is supplied, only the region containing the given key. Region Key (optional): This action will force a split of all eligible regions of the table, or, if a key is supplied, only the region containing the given key. An eligible region is one that does not contain any references to other regions. Split requests for noneligible regions will be ignored. *below is excerption hbase hbck:* Summary: -ROOT- is okay. Number of regions: 1 Deployed on: hadoop2,60020,1358418770574 .META. is okay. Number of regions: 1 Deployed on: hadoop2,60020,1358418770574 cdrtest is okay. Number of regions: 122 Deployed on: hadoop3,60020,1358418770520 cdrtest1 is okay. Number of regions: 1 Deployed on: hadoop3,60020,1358418770520 cdrtestGZ is okay. Number of regions: 1 Deployed on: hadoop2,60020,1358418770574 filelog is okay. Number of regions: 1 Deployed on: hadoop3,60020,1358418770520 merge_bigtable is okay. Number of regions: 1 Deployed on: hadoop1,60020,1358418784993 zlytest is okay. Number of regions: 1 Deployed on: hadoop1,60020,1358418784993 zlytest1 is okay. Number of regions: 1 Deployed on: hadoop3,60020,1358418770520 2 inconsistencies detected. Status: INCONSISTENT [hadoop@hadoop2 ~]$ d * these two table are in the transition state.* Regions in Transition Region State 89d3b8af7181ad8b857ef7f55c3abe46 cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. state=PENDING_OPEN, ts=Thu Jan 17 20:19:13 CST 2013 (945s ago), server=hadoop3,60020,1358418770520 c56109758acea3619fb9c656b8b45aa3 cdrtestsnap,,1358321463618.c56109758acea3619fb9c656b8b45aa3. state=PENDING_OPEN, ts=Thu Jan 17 20:15:59 CST 2013 (1138s ago), server=null masterlog: 2013-01-17 20:17:13,630 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Handling transition=RS_ZK_REGION_FAILED_OPEN, server=hadoop3,60020,1358418770520, region=89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,630 DEBUG org.apache.hadoop.hbase.master.handler.ClosedRegionHandler: Handling CLOSED event for 89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,630 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Forcing OFFLINE; was=cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. state=CLOSED, ts=1358425018648, server=hadoop3,60020,1358418770520 2013-01-17 20:17:13,630 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign: master:60000-0x33c48075af00003 Creating (or updating) unassigned node for 89d3b8af7181ad8b857ef7f55c3abe46 with OFFLINE state 2013-01-17 20:17:13,639 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Found an existing plan for cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. destination server is hadoop3,60020,1358418770520 2013-01-17 20:17:13,639 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Handling transition=M_ZK_REGION_OFFLINE, server=hadoop1,60000,1358418784101, region=89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,639 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Using pre-existing plan for region cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46.; plan=hri=cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46., src=, dest=hadoop3,60020,1358418770520 2013-01-17 20:17:13,639 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Assigning region cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. to hadoop3,60020,1358418770520 2013-01-17 20:17:13,639 DEBUG org.apache.hadoop.hbase.master.ServerManager: New connection to hadoop3,60020,1358418770520 2013-01-17 20:17:13,648 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Handling transition=RS_ZK_REGION_OPENING, server=hadoop3,60020,1358418770520, region=89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,656 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Handling transition=RS_ZK_REGION_FAILED_OPEN, server=hadoop3,60020,1358418770520, region=89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,656 DEBUG org.apache.hadoop.hbase.master.handler.ClosedRegionHandler: Handling CLOSED event for 89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,656 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Forcing OFFLINE; was=cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. state=CLOSED, ts=1358425018687, server=hadoop3,60020,1358418770520 2013-01-17 20:17:13,656 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign: master:60000-0x33c48075af00003 Creating (or updating) unassigned node for 89d3b8af7181ad8b857ef7f55c3abe46 with OFFLINE state 2013-01-17 20:17:13,664 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Handling transition=M_ZK_REGION_OFFLINE, server=hadoop1,60000,1358418784101, region=89d3b8af7181ad8b857ef7f55c3abe46 2013-01-17 20:17:13,664 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Found an existing plan for cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. destination server is hadoop3
-
Re: how to drop a table forcefully?Jean-Marc Spaggiari 2013-01-17, 13:40
Ok.
So. You HBase system is inconsistent. And I can't see you table " t111" anywhere. On the shell, if you do a "list", which tables are you getting? I guess t111 will not be there. First thing to do is to fix that. Can you provide more logs from the hbase check? It might tell you what the issues are. You can past it on pastebin.com JM 2013/1/17, hua beatls <[EMAIL PROTECTED]>: > On Thu, Jan 17, 2013 at 8:21 PM, Jean-Marc Spaggiari < > [EMAIL PROTECTED]> wrote: > >> Hi, >> > *below is snapshot of webui,* tabel 'cdrtestsnap' and > 'cdrtestsnappy' is on the list , as well as their regions. > > cdrtestGZ <http://192.168.250.106:60010/table.jsp?name=cdrtestGZ> {NAME => > 'cdrtestGZ', FAMILIES => [{NAME => 'cf', COMPRESSION => 'GZ', MIN_VERSIONS > => '0'}]} > cdrtestsnap<http://192.168.250.106:60010/table.jsp?name=cdrtestsnap> > {NAME > => 'cdrtestsnap', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', > MIN_VERSIONS => '0'}]} > cdrtestsnappy<http://192.168.250.106:60010/table.jsp?name=cdrtestsnappy> > {NAME > => 'cdrtestsnappy', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', > MIN_VERSIONS => '0'}]} > > region information of table 'cdrtestsnap' show below: > Table Attributes Attribute Name Value Description Enabled true Is > the table enabled Compaction > > ------------------------------ > > Actions: > > Region Key (optional): This action will force a compaction of all > regions of the table, or, if a key is supplied, only the region containing > the given key. Region Key (optional): This action will force a split of > all eligible regions of the table, or, if a key is supplied, only the > region containing the given key. An eligible region is one that does not > contain any references to other regions. Split requests for noneligible > regions will be ignored. > > > *below is excerption hbase hbck:* > Summary: > -ROOT- is okay. > Number of regions: 1 > Deployed on: hadoop2,60020,1358418770574 > .META. is okay. > Number of regions: 1 > Deployed on: hadoop2,60020,1358418770574 > cdrtest is okay. > Number of regions: 122 > Deployed on: hadoop3,60020,1358418770520 > cdrtest1 is okay. > Number of regions: 1 > Deployed on: hadoop3,60020,1358418770520 > cdrtestGZ is okay. > Number of regions: 1 > Deployed on: hadoop2,60020,1358418770574 > filelog is okay. > Number of regions: 1 > Deployed on: hadoop3,60020,1358418770520 > merge_bigtable is okay. > Number of regions: 1 > Deployed on: hadoop1,60020,1358418784993 > zlytest is okay. > Number of regions: 1 > Deployed on: hadoop1,60020,1358418784993 > zlytest1 is okay. > Number of regions: 1 > Deployed on: hadoop3,60020,1358418770520 > 2 inconsistencies detected. > Status: INCONSISTENT > [hadoop@hadoop2 ~]$ d > > * these two table are in the transition state.* > Regions in Transition Region State > 89d3b8af7181ad8b857ef7f55c3abe46 > cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. > state=PENDING_OPEN, ts=Thu Jan 17 20:19:13 CST 2013 (945s ago), > server=hadoop3,60020,1358418770520 c56109758acea3619fb9c656b8b45aa3 > cdrtestsnap,,1358321463618.c56109758acea3619fb9c656b8b45aa3. > state=PENDING_OPEN, ts=Thu Jan 17 20:15:59 CST 2013 (1138s ago), > server=null > > masterlog: > 2013-01-17 20:17:13,630 DEBUG > org.apache.hadoop.hbase.master.AssignmentManager: Handling > transition=RS_ZK_REGION_FAILED_OPEN, server=hadoop3,60020,1358418770520, > region=89d3b8af7181ad8b857ef7f55c3abe46 > 2013-01-17 20:17:13,630 DEBUG > org.apache.hadoop.hbase.master.handler.ClosedRegionHandler: Handling CLOSED > event for 89d3b8af7181ad8b857ef7f55c3abe46 > 2013-01-17 20:17:13,630 DEBUG > org.apache.hadoop.hbase.master.AssignmentManager: Forcing OFFLINE; > was=cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46. > state=CLOSED, ts=1358425018648, server=hadoop3,60020,1358418770520 > 2013-01-17 20:17:13,630 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign:
-
Re: how to drop a table forcefully?hua beatls 2013-01-17, 14:42
Hi JM,
sorry, the table name is 'cdrtestsnappy' and 'cdrtestsnap'. i can see them from 'list'. hbase(main):001:0> list TABLE SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/app/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. cdrtest cdrtest1 cdrtestGZ cdrtestsnap cdrtestsnappy filelog merge_bigtable zlytest zlytest1 9 row(s) in 0.6050 seconds hbase(main):002:0> Many Thanks! beatls On Thu, Jan 17, 2013 at 9:40 PM, Jean-Marc Spaggiari < [EMAIL PROTECTED]> wrote: > Ok. > > So. You HBase system is inconsistent. And I can't see you table " > t111" anywhere. On the shell, if you do a "list", which tables are you > getting? I guess t111 will not be there. First thing to do is to fix > that. > > Can you provide more logs from the hbase check? It might tell you what > the issues are. You can past it on pastebin.com > > JM > > 2013/1/17, hua beatls <[EMAIL PROTECTED]>: > > On Thu, Jan 17, 2013 at 8:21 PM, Jean-Marc Spaggiari < > > [EMAIL PROTECTED]> wrote: > > > >> Hi, > >> > > *below is snapshot of webui,* tabel 'cdrtestsnap' and > > 'cdrtestsnappy' is on the list , as well as their regions. > > > > cdrtestGZ <http://192.168.250.106:60010/table.jsp?name=cdrtestGZ> > {NAME => > > 'cdrtestGZ', FAMILIES => [{NAME => 'cf', COMPRESSION => 'GZ', > MIN_VERSIONS > > => '0'}]} > > cdrtestsnap<http://192.168.250.106:60010/table.jsp?name=cdrtestsnap> > > {NAME > > => 'cdrtestsnap', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', > > MIN_VERSIONS => '0'}]} > > cdrtestsnappy<http://192.168.250.106:60010/table.jsp?name=cdrtestsnappy> > > {NAME > > => 'cdrtestsnappy', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', > > MIN_VERSIONS => '0'}]} > > > > region information of table 'cdrtestsnap' show below: > > Table Attributes Attribute Name Value Description Enabled true Is > > the table enabled Compaction > > > > ------------------------------ > > > > Actions: > > > > Region Key (optional): This action will force a compaction of all > > regions of the table, or, if a key is supplied, only the region > containing > > the given key. Region Key (optional): This action will force a split > of > > all eligible regions of the table, or, if a key is supplied, only the > > region containing the given key. An eligible region is one that does not > > contain any references to other regions. Split requests for noneligible > > regions will be ignored. > > > > > > *below is excerption hbase hbck:* > > Summary: > > -ROOT- is okay. > > Number of regions: 1 > > Deployed on: hadoop2,60020,1358418770574 > > .META. is okay. > > Number of regions: 1 > > Deployed on: hadoop2,60020,1358418770574 > > cdrtest is okay. > > Number of regions: 122 > > Deployed on: hadoop3,60020,1358418770520 > > cdrtest1 is okay. > > Number of regions: 1 > > Deployed on: hadoop3,60020,1358418770520 > > cdrtestGZ is okay. > > Number of regions: 1 > > Deployed on: hadoop2,60020,1358418770574 > > filelog is okay. > > Number of regions: 1 > > Deployed on: hadoop3,60020,1358418770520 > > merge_bigtable is okay. > > Number of regions: 1 > > Deployed on: hadoop1,60020,1358418784993 > > zlytest is okay. > > Number of regions: 1 > > Deployed on: hadoop1,60020,1358418784993 > > zlytest1 is okay. > > Number of regions: 1 > > Deployed on: hadoop3,60020,1358418770520 > > 2 inconsistencies detected. > > Status: INCONSISTENT > > [hadoop@hadoop2 ~]$ d > > > > * these two table are in the transition state.* > > Regions in Transition Region State > > 89d3b8af7181ad8b857ef7f55c3abe46 > > cdrtestsnappy,,1358316641849.89d3b8af7181ad8b857ef7f55c3abe46.
-
Re: how to drop a table forcefully?Jean-Marc Spaggiari 2013-01-17, 14:45
OK, sorry. From the example you sent I tought it cas t111.
Did you get a chance to past on pastebin the entire output for the hbase check? Not just the summary, but everything, to see what issue it's reporting. JM 2013/1/17, hua beatls <[EMAIL PROTECTED]>: > Hi JM, > sorry, the table name is 'cdrtestsnappy' and 'cdrtestsnap'. > i can see them from 'list'. > hbase(main):001:0> list > TABLE > > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/app/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > cdrtest > > cdrtest1 > > cdrtestGZ > > cdrtestsnap > > cdrtestsnappy > > filelog > > merge_bigtable > > zlytest > > zlytest1 > > 9 row(s) in 0.6050 seconds > hbase(main):002:0> > > Many Thanks! > > > beatls > > > On Thu, Jan 17, 2013 at 9:40 PM, Jean-Marc Spaggiari < > [EMAIL PROTECTED]> wrote: > >> Ok. >> >> So. You HBase system is inconsistent. And I can't see you table " >> t111" anywhere. On the shell, if you do a "list", which tables are you >> getting? I guess t111 will not be there. First thing to do is to fix >> that. >> >> Can you provide more logs from the hbase check? It might tell you what >> the issues are. You can past it on pastebin.com >> >> JM >> >> 2013/1/17, hua beatls <[EMAIL PROTECTED]>: >> > On Thu, Jan 17, 2013 at 8:21 PM, Jean-Marc Spaggiari < >> > [EMAIL PROTECTED]> wrote: >> > >> >> Hi, >> >> >> > *below is snapshot of webui,* tabel 'cdrtestsnap' and >> > 'cdrtestsnappy' is on the list , as well as their regions. >> > >> > cdrtestGZ <http://192.168.250.106:60010/table.jsp?name=cdrtestGZ> >> {NAME => >> > 'cdrtestGZ', FAMILIES => [{NAME => 'cf', COMPRESSION => 'GZ', >> MIN_VERSIONS >> > => '0'}]} >> > cdrtestsnap<http://192.168.250.106:60010/table.jsp?name=cdrtestsnap> >> > {NAME >> > => 'cdrtestsnap', FAMILIES => [{NAME => 'cf', COMPRESSION => 'SNAPPY', >> > MIN_VERSIONS => '0'}]} >> > cdrtestsnappy<http://192.168.250.106:60010/table.jsp?name=cdrtestsnappy> >> > {NAME >> > => 'cdrtestsnappy', FAMILIES => [{NAME => 'cf', COMPRESSION => >> > 'SNAPPY', >> > MIN_VERSIONS => '0'}]} >> > >> > region information of table 'cdrtestsnap' show below: >> > Table Attributes Attribute Name Value Description Enabled true >> > Is >> > the table enabled Compaction >> > >> > ------------------------------ >> > >> > Actions: >> > >> > Region Key (optional): This action will force a compaction of all >> > regions of the table, or, if a key is supplied, only the region >> containing >> > the given key. Region Key (optional): This action will force a >> > split >> of >> > all eligible regions of the table, or, if a key is supplied, only the >> > region containing the given key. An eligible region is one that does >> > not >> > contain any references to other regions. Split requests for noneligible >> > regions will be ignored. >> > >> > >> > *below is excerption hbase hbck:* >> > Summary: >> > -ROOT- is okay. >> > Number of regions: 1 >> > Deployed on: hadoop2,60020,1358418770574 >> > .META. is okay. >> > Number of regions: 1 >> > Deployed on: hadoop2,60020,1358418770574 >> > cdrtest is okay. >> > Number of regions: 122 >> > Deployed on: hadoop3,60020,1358418770520 >> > cdrtest1 is okay. >> > Number of regions: 1 >> > Deployed on: hadoop3,60020,1358418770520 >> > cdrtestGZ is okay. >> > Number of regions: 1 >> > Deployed on: hadoop2,60020,1358418770574 >> > filelog is okay. >> > Number of regions: 1 >> > Deployed on: hadoop3,60020,1358418770520 >> > merge_bigtable is okay. >> > Number of regions: 1 >> > Deployed on: hadoop1,60020,1358418784993 >> > zlytest is okay. >> > Number of regions: 1 >> > Deployed on: hadoop1,60020,1358418784993 |