- 修改hbase配置文件
通过修改hbase配置文件hbase-site.xml,hbase.rootdir改成了hbase.root.dir。如下配置文件
vim /usr/local/hbase/conf/hbase-site.xml
<configuration>
<property>
<name>hbase.root.dir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
</configuration>
2.同步时间
输入命令行:
ntpdate 1.cn.pool.ntp.org
sudo apt install ntpdate
3.打开hbase-env.sh的命令
vim /usr/local/hbase/conf/hbase-env.sh
并在hbase-env.sh文件顶部加入下面的命令
export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP=true
4.重启: