Hi Muhammad,

I am new to Hbase myself, but I think I can help.

The default data storage location for Hbase is in your /tmp directory, which is 
emptied by default on every reboot. Examine the conf/hbase-default.xml file for 
the "hbase.rootdir" property syntax, then over-ride the default in your 
hbase-site.xml file. You could, for instance set the following:

<property>
        <name>hbase.rootdir</name>
        <value>file:///var/hbase-data</value>
</property>

This would store your data in a directory that persists reboots.

The command to view all rows in a table from the shell is "scan 'myTable'". 
Obviously, without the double quotes, and replace myTable with your own table 
name.

Travis

-----Original Message-----
From: Muhammad Mudassar [mailto:[email protected]] 
Sent: Wednesday, July 08, 2009 9:34 AM
To: [email protected]
Subject: how safe table permanently in hbase

Hi

I m working on single node hadoop/hbase framework i have created some tables
and added some data  I want to ask how i can save these tables permanently
in hbase as when i restart hbase tables are not present there.
i aslo want to ask how to view data stored in all rows of a table in hbase
shell.


Thanks!

Muhammad Mudassar

Reply via email to