Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Enable to start Metrics Collector

Explorer

I got this error:

ERROR: ambari-metrics-collector start failed. For more details, see /var/log/ambari-metrics-collector/ambari-metrics-collector.out:
====================
Erreur : impossible de trouver ou charger la classe principale org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer
====================
8 REPLIES 8

Cloudera Employee

Could you share the full stacktrace? Maybe it's in ambari-metrics-collector.log. Also if you have non localized exception messages that would be helpful.

Explorer

What I have posted is the only message I got:

resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/sbin/ambari-metrics-collector --config /etc/ambari-metrics-collector/conf start' returned 255. ? ??? 14 18:19:50 WET 2017 Starting HBase. starting master, logging to /var/log/ambari-metrics-collector/hbase-ams-master-datanode1.henceforth.out Verifying ambari-metrics-collector process status... ERROR: ambari-metrics-collector start failed. For more details, see /var/log/ambari-metrics-collector/ambari-metrics-collector.out: ==================== Erreur : impossible de trouver ou charger la classe principale org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer ==================== Collector out at: /var/log/ambari-metrics-collector/ambari-metrics-collector.out

Mentor

@Maryem Mary

The error "impossible de trouver ou charger la classe principale org.apache.hadoop.yarn.server .applicationhistoryservice. ApplicationHistoryServe" show the installation didn't go well could you simply remove the Service Ambari Metrics--->Service Actions---> delete service then confirm "delete"

Remove ambari-metrics-collector package

# yum remove ambari-metrics-collector

Reinstall ambari-metrics-collector

# yum install ambari-metrics-collector  

Add the service using Ambari

Start the ambari-metrics-collector using Ambari

Please let me know

Explorer

I'm using ubuntu 14, and the name of the package ambari-metrics-collector not known by ubuntu (Impossible to find ambari-metrics-collector package)??

Mentor

@Maryem Mary

It's important to always describe your environment, this gives members a clearer picture. Having said that if you deleted the service as I had earlier indicated above.

You should be able to add the Ambari Metrics using Ambari UI--->Admin--->Stack and Versions--->Ambari Metrics add service. Make sure you have hbase installed as AMS uses it as for backend storage.

For Ubuntu you could check the availability of the packages as suite

# apt-cache showpkg ambari-server
# apt-cache showpkg ambari-agent
# apt-cache showpkg ambari-metrics-assembly

Please revert

Explorer

I removed the ambari metrics using Ambari UI, and I add that service but I still get the same error !!

Explorer

I have this alert concerning the ambari metrics:

Connection failed: [Errno 111] Connection refused to datanode1.xxxx:6188

Mentor

@Maryem Mary

AMS collector is not starting please could you check the following logs for any detailed error or warnings:

# less /var/log/ambari-metrics-collector/ambari-metrics-collector.log 
# less /var/log/ambari-metrics-collector/ambari-metrics-collector.out 

Is it possible to share these logs?