hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guilherme Germoglio <germog...@gmail.com>
Subject Re: Lost the data after reboot
Date Thu, 06 May 2010 17:39:41 GMT
Some distros delete /tmp contents during reboot. Is this your case?

On Thu, May 6, 2010 at 2:35 PM, SingoWong <singochina@gmail.com> wrote:

> Hi,
>
> I try to put some data to hbase, then i following the sample code in API
> below:
>
> public static void insertData(String rowid, String data) throws Exception {
>        if(table==null) {
> table = new HTable(conf, tablename);
> }
>  System.out.println("adding new data");
>  Put p = new Put(Bytes.toBytes(rowid));
> p.add(Bytes.toBytes("ip"), Bytes.toBytes("demoqualifier"),
> Bytes.toBytes(data));
> table.put(p);
> }
>
> But after i reboot my computer, cannot found the table and data in hbase
> shell.
> I had checked befor i reboot, exist the files under the
> folder /tmp/hbase-root/hbase/, so i think the cache was flush, but all the
> files' size was 200M, so i wanna to know when and how to store the data to
> file system?
>
> Is it that my coding issue or configuration issue? pls help.
>
> Thanks & Regards,
> Singo
>



-- 
Guilherme

msn: guigermoglio@hotmail.com
homepage: http://sites.google.com/site/germoglio/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message