pinpoint初始化hbase脚本报错

时间:2023-03-09 00:35:44
pinpoint初始化hbase脚本报错

今天在部署pinpoint的时候,执行创建表语句的脚本,报表已经存在的错误,但是那个hbase数据目录是刚创建的,表肯定是不存在的
<property>
<name>hbase.rootdir</name>
<value>file:///home/yeemiao/hbase-1.2.11/data/hbase</value>
<!-- <value>hdfs://10.26.212.253:8020/pinpoint</value> -->
</property>
<property>

后来百度找到解决的办法,原因是表信息还保留在zookeeper中,登陆zk删除掉相应的表即可,解决办法如下:

[yeemiao@pp-monitor bin]$ ./hbase zkcli
[zk: localhost:2181(CONNECTED) 14] ls /hbase/table

rmr /hbase/table/ApplicationTraceIndex
rmr /hbase/table/ApplicationMapStatisticsCaller_Ver2
rmr /hbase/table/ApplicationMapStatisticsSelf_Ver2
rmr /hbase/table/ApplicationMapStatisticsCallee_Ver2
rmr /hbase/table/AgentStatV2
rmr /hbase/table/AgentLifeCycle
rmr /hbase/table/ApiMetaData
rmr /hbase/table/SqlMetaData_Ver2
rmr /hbase/table/ApplicationIndex
rmr /hbase/table/TraceV2
rmr /hbase/table/AgentEvent

然后重新初始化建表脚本:
./hbase shell /home/yeemiao/hbase/hbase-create.hbase