2015-01-26 23 views

回答

14

你有几种选择:

1通过HTTP:http://[your_hbase_master]:60010/table.jsp?name=[your_table]

2命令行:

$ hadoop fs -ls /hbase/[your_table] 

Found 8 items 
-rw-r--r-- 3 hbase hbase  1893 2013-05-25 18:03 /hbase/[your_table]/.tableinfo.0000000001 
drwxr-xr-x - hbase hbase   0 2013-05-25 18:03 /hbase/[your_table]/.tmp 
drwxr-xr-x - hbase hbase   0 2014-11-04 06:34 /hbase/[your_table]/045ab87f468ba9e967a0987ca98b7db4 
drwxr-xr-x - hbase hbase   0 2014-11-04 06:34 /hbase/[your_table]/062bc3ef65b9db80a1eeb2c1f4229fdb 
drwxr-xr-x - hbase hbase   0 2014-11-04 06:34 /hbase/[your_table]/0a921049a908dbc929b160210a397632 
drwxr-xr-x - hbase hbase   0 2014-11-04 06:34 /hbase/[your_table]/43a9576bad8845f7d7baacc97882eec6 
drwxr-xr-x - hbase hbase   0 2014-11-04 06:34 /hbase/[your_table]/f492c709d17c4ded150014543f21e362 
drwxr-xr-x - hbase hbase   0 2014-11-04 06:34 /hbase/[your_table]/fa465c6a27023d49893de3c1004efd29 

你会得到每一个区域的目录(不含.TMPÿ .tableinfo):

3在JAVA中,您可以使用HBaseAdmin.getTableRegions(byte[])

+0

someh没有2命令行没有为我工作。我使用cdh5.3.0(hbase.0.98.6)我没有看到/ hbase文件夹下的表名,但没有1对我来说是完美的。谢谢! – 2015-01-27 20:57:24

+0

“检查”标记在哪里?我想选择这个答案.. – 2015-01-27 21:01:45

+0

看来,在CDH5 +中他们已经移动了HDFS目录,使用'hadoop fs -ls /'来查找新目录,或者,找到hdfs-site.xml文件并查找hbase.rootdir属性。 – 2015-01-28 06:04:48

相关问题