Ambari Metrics Collector启动失败

近期给Ambari Metrics Collector配置了数据分布式存储,改动的配置如下:

hbase.cluster.distributed=true
Metrics Service operation mode = distributed
// 下面这个配置,已经在HDFS建了路径并配置了权限给ams用户,这里的${name}是集群部署的HDFS名字。
hbase.rootdir=hdfs://${name}/user/ams/hbase

启动后,就会挂掉,检查/ambari-metrics-collector.log日志发现:
2018-09-03 22:00:50,900 INFO org.apache.hadoop.hbase.client.ZooKeeperRegistry: ClusterId read in ZooKeeper is null
2018-09-03 22:05:50,762 WARN org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.query.DefaultPhoenixDataSource: Unable to connect to HBase store using Phoenix.
java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations
...

打开DEBUG级别日志,发现启动过程中,长时间刷的信息是:
2018-09-26 17:02:11,127 DEBUG org.apache.hadoop.hbase.zookeeper.ZKUtil: hconnection-0x2462cb01-0x264921b18e6b284, quorum=dfs1a1.ecld.com:2181,dfs1m2.ecld.com:2181,dfs1m1.ecld.com:2181, baseZNode=/ams-hbase-secure Unable to get data of znode /ams-hbase-secure/meta-region-server because node does not exist (not an error)

检查后发现Phoenix组件没有安装,安装后,错误依旧。
登录ZooKeeper,发现在/ams-hbase-secure下只有一个/tokenauth节点,没有hbase的信息。
按照网上的做法,清理tmp,重设ZNode等,都尝试过了,并无效果。每次ZK上面配置的ams-hbase节点下,都只有一个/tokenauth,缺少其他的信息。

请教各位大神,求指点,谢谢!

阅读 6k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进