本文共 1570 字,大约阅读时间需要 5 分钟。
四台虚拟机要免密钥
先启动zookeeper 启动hadoop;hbase要四台虚拟机所有的文件都放到hdfs上node7-1node7-3node7-4
node7-1node7-3
hbase.rootdir hdfs://node7-1:8020/data/hbase hbase.unsafe.stream.capability.enforce false 检查兼容性,如果设置为false,数据有可能丢失(这是一个警告) Controls whether HBase will check for stream capabilities (hflush/hsync). Disable this if you intend to run on LocalFileSystem, denoted by a rootdir with the 'file://' scheme, but be mindful of the NOTE below. WARNING: Setting this to false blinds you to potential data loss and inconsistent system state in the event of process and/or node failures. If HBase is complaining of an inability to use hsync or hflush it's most likely not a false positive. hbase.zookeeper.quorum node7-1:2181,node7-2:2181,node7-3:2181 hbase.zookeeper.property.dataDir /data/hbase/zookeeper_data hbase.cluster.distributed true
配置jdk路径,将hbase自带的zookeeper关掉
bin/start-hbase.sh
bin/stop-hbase.sh
http://node7-2:16010/
注:1.因为Hbase连接hadoop是通过hdfs协议的,所有hadoop的配置文件是无法读取的; 我们要把hadoop所有的配置文件拷贝过来;就可以生效; 2.如果想清空hbase的所有数据重新来一遍 清空hdfs 清空zookeeper
转载地址:http://sgrzi.baihongyu.com/