问题描述
我已经使用以下服务设置了Ambari-2.7.5:
I have setup Ambari-2.7.5 with below services:
- HDFS
- 纱线
- MAPREDUCE2
- HBASE
- ZOOKEEPER
- INFRA SOLR
- AMBARI指标
- ATLAS
- 卡夫卡
- 诺克斯
- LOGSEARCH
- HDFS
- YARN
- MAPREDUCE2
- HBASE
- ZOOKEEPER
- INFRA SOLR
- AMBARI METRICS
- ATLAS
- KAFKA
- KNOX
- LOGSEARCH
除Ambari Metrics之外,所有服务均处于绿色状态.我已经使用 github.com/apache/ambari-metrics 构建ambari-metrics-collector rpm.启动ambari-metrics时,过程陷入困境,给出以下错误
All the services are in green state except Ambari Metrics. I have build ambari-metrics-collector rpm using github.com/apache/ambari-metrics. while starting ambari-metrics the process get stuck giving below error
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/AMBARI_METRICS/package/scripts/metrics_collector.py", line 90, in <module>
AmsCollector().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 355, in execute
self.execute_prefix_function(self.command_name, 'post', env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 386, in execute_prefix_function
method(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 428, in post_start
raise Fail("Pid file {0} doesn't exist after starting of the component.".format(pid_file))
resource_management.core.exceptions.Fail: Pid file /var/run/ambari-metrics-collector//hbase-ams-master.pid doesn't exist after starting of the component.
推荐答案
@RohitSharma您应该能够在ambari 2.7.5构建过程中构建正确的Ambari Metric RPMS.
@RohitSharma You should be able to build the correct Ambari Metric RPMS during your ambari 2.7.5 build.
在 Ambari 2.7安装指南.5 是以下步骤:
pushd ambari-metrics
mvn versions:set -DnewVersion=2.7.5.0.0
popd
接下来在 Ambari开发页面上,您应该找到以下详细信息:
Next on the Ambari Development page, you should find the following details:
您需要的rpm是:
ambari-metrics-2.7.5.0-0.noarch.rpm
ambari-metrics-collector-2.7.5.0-0.x86_64.rpm
ambari-metrics-grafana-2.7.5.0-0.x86_64.rpm
ambari-metrics-hadoop-sink-2.7.5.0-0.x86_64.rpm
ambari-metrics-monitor-2.7.5.0-0.x86_64.rpm
这篇关于Ambari-metrics-collector服务未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!