Copy Hbase Table Schema

2013-11-09 Thread Geovanie Marquez
I have to rebuild a test database elsewhere in production and I have about 50 columns in one column family. I would rather not define the schema manually. Could I somehow build the tables in another node without manually typing each column? Thanks, Geo

Re: Copy Hbase Table Schema

2013-11-09 Thread Ted Yu
Please take a look at http://hbase.apache.org/book.html#table_variables for usage of 'describe' command. On Sat, Nov 9, 2013 at 7:22 AM, Geovanie Marquez wrote: > I have to rebuild a test database elsewhere in production and I have about > 50 columns in one column family. I would rather not def

Re: Copy Hbase Table Schema

2013-11-09 Thread Geovanie Marquez
I error out when creating the table off of the describe statement. I tried other variations of the same and get the same error. hbase(main):015:0> create {NAME => 'table', SPLIT_POLICY => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy', FAMILIES => [{NAME => 'd', DATA_BLOCK_EN

Re: Copy Hbase Table Schema

2013-11-09 Thread Geovanie Marquez
Had to modify the shell syntax so that: 1. 'table' is declared after create 2. Treated NAMES separately 3. Got rid of 'FAMILIES' hbase(main):003:0> create 'table', {NAME => 'table', SPLIT_POLICY => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}, {NAME => 'd', DATA_

Starting 0.96.0?

2013-11-09 Thread Jean-Marc Spaggiari
Hi, when we start 0.96 using bin/start-hbase.sh the following code is executed distMode=`$bin/hbase --config "$HBASE_CONF_DIR" org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed | head -n 1` if [ "$distMode" == 'false' ] then "$bin"/hbase-daemon.sh $commandToRun master $@ el

Re: Starting 0.96.0?

2013-11-09 Thread Ted Yu
bin/zookeepers.sh is called for zookeeper where there is the following check: if [ "$HBASE_MANAGES_ZK" = "true" ]; then When zookeeper isn't managed by HBase, zookeeper server won't be started. On Sat, Nov 9, 2013 at 2:56 PM, Jean-Marc Spaggiari wrote: > Hi, > > when we start 0.96 using bin/s