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 ====================
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.
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
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
# yum install ambari-metrics-collector
Add the service using Ambari
Start the ambari-metrics-collector using Ambari
Please let me know
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)??
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
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?