我想在hbase(独立模式)中测试数据的恢复,我该怎么做?恢复是否在独立模式下工作?
在执行shell中的put命令而不关闭hbase之后,我切换了我的vm并重新启动,它不会显示新添加的数据。即使我试过从日 eclipse 也没有显示。如何在hbase中测试恢复?我可以看到hfiles,但不能看到hlog我需要为此设置任何路径吗?
这是我写的代码。。
Put p=new Put(Bytes.toBytes("name10"));
p.setWriteAheadLog(true);
p.add(Bytes.toBytes("cf"), Bytes.toBytes("name"),Bytes.toBytes("Some Value 10"));
table.setAutoFlush(true);
table.put(p);
提前支付
1条答案
按热度按时间oogrdqng1#
hlog文件存储在.logs文件夹(rootdir)中,在独立模式下,写入wal需要时间,在伪分布式或分布式模式下,它将立即更新