Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Getting all rows from .META. for a specific table.


Copy link to this message
-
Re: Getting all rows from .META. for a specific table.
Hi David,

Here is quick bash script that will extract encoded region name.

#!/bin/bash
table="$1"
echo "scan '.META.', {FILTER=>\"PrefixFilter('$table')\"}" > cmd_file
hbase shell < cmd_file | grep $table  |awk '{print $1}' | cut -d "," -f3 |
cut -d "." -f2 |tail -n+2 | uniq

Regards
On Fri, Apr 25, 2014 at 3:21 PM, Ted Yu <[EMAIL PROTECTED]> wrote:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB