系统重启后hbase数据丢失

来源:互联网 发布:康佳lc40gs60dc端口 编辑:程序博客网 时间:2024/05/21 11:17

一 配置问题

官方文档中写到

By default, hbase.rootdir is set to /tmp/hbase-${user.name} and similarly so for the default ZooKeeper data location which means you'll lose all your data whenever your server reboots unless you change it (Most operating systems clear /tmp on restart).


二 关闭hbase

用stop-hbase.sh关闭hbase后再关闭系统
0 0
原创粉丝点击