[英]how to store hbase tables permanently on VM
I am doing some simple stuff in HBASE on VM by using bulk load . 我通过使用批量加载在VM上的HBASE中做一些简单的事情。 Would like to how how to persist the tables permanently in HBASE.
想了解如何在HBASE中永久保存表。 If i restart the VM tables are gone so, do we have any command to store it permanently .
如果我重新启动了VM表,那么我们是否有任何命令将其永久存储。
If you start HBase in local mode (ie, using the file system and not HDFS), then all of the data is by default saved in /tmp. 如果以本地模式启动HBase(即,使用文件系统而不是HDFS),则默认情况下,所有数据都保存在/ tmp中。 Some linux systems will wipe /tmp on reboot (ie turning the VM on and off).
某些Linux系统会在重新引导时擦除/ tmp(即打开和关闭VM)。
There are three ways of dealing with this 有三种处理方法
The correct property to set, quoting from the HBase book : 引用HBase的书 ,设置正确的属性:
<property>
<name>hbase.rootdir</name>
<value>file:///DIRECTORY/hbase</value>
</property>
where DIRECTORY is replaced with whereever you want to store data DIRECTORY替换为您要存储数据的位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.