Created 08-30-2017 02:02 PM
I want to know is there a native way of querying what service components are installed and running on a given cluster without using Ambari Web UI or Ambari Shell? I do not have credentials for this cluster but I do have CLI access.
Created 08-30-2017 03:02 PM
Login to the host which has Ambari.
This will list all components in all versions of HDP that are there in your system.
yum list installed | grep @HDP-
You can filter using a specific version, ex for HDP 2.6.1.0
yum list installed | grep @HDP-2.6.1.0
Created 08-30-2017 03:02 PM
Login to the host which has Ambari.
This will list all components in all versions of HDP that are there in your system.
yum list installed | grep @HDP-
You can filter using a specific version, ex for HDP 2.6.1.0
yum list installed | grep @HDP-2.6.1.0
Created 08-30-2017 04:02 PM
Thanks Dinesh! I had no idea you could query the service components via yum.
Created 08-30-2017 03:19 PM
You can also use the hdp-select status command as root in cli.
It will list the services installed on the cluster.
example:- ( None- means it is available in HDP.repo for install but not installed)
[root@micprod ~]# hdp-select status accumulo-client - None accumulo-gc - None accumulo-master - None accumulo-monitor - None accumulo-tablet - None accumulo-tracer - None atlas-client - 2.5.3.51-3 atlas-server - 2.5.3.51-3 falcon-client - 2.5.3.51-3 falcon-server - 2.5.3.51-3 flume-server - 2.5.3.51-3 hadoop-client - 2.5.3.51-3 hadoop-hdfs-datanode - 2.5.3.51-3 hadoop-hdfs-journalnode - 2.5.3.51-3 hadoop-hdfs-namenode - 2.5.3.51-3 hadoop-hdfs-nfs3 - 2.5.3.51-3 hadoop-hdfs-portmap - 2.5.3.51-3 hadoop-hdfs-secondarynamenode - 2.5.3.51-3 hadoop-hdfs-zkfc - 2.5.3.51-3 hadoop-httpfs - None hadoop-mapreduce-historyserver - 2.5.3.51-3 hadoop-yarn-nodemanager - 2.5.3.51-3 hadoop-yarn-resourcemanager - 2.5.3.51-3 hadoop-yarn-timelineserver - 2.5.3.51-3 hbase-client - 2.5.3.51-3 hbase-master - 2.5.3.51-3 hbase-regionserver - 2.5.3.51-3 hive-metastore - 2.5.3.51-3 hive-server2 - 2.5.3.51-3 hive-server2-hive2 - 2.5.3.51-3 hive-webhcat - 2.5.3.51-3 kafka-broker - 2.5.3.51-3 knox-server - 2.5.3.51-3 livy-server - 2.5.3.51-3 mahout-client - None oozie-client - 2.5.3.51-3 oozie-server - 2.5.3.51-3 phoenix-client - 2.5.3.51-3 phoenix-server - 2.5.3.51-3 ranger-admin - 2.5.3.51-3 ranger-kms - None ranger-tagsync - None ranger-usersync - 2.5.3.51-3 slider-client - 2.5.3.51-3 spark-client - 2.5.3.51-3 spark-historyserver - 2.5.3.51-3 spark-thriftserver - 2.5.3.51-3 spark2-client - 2.5.3.51-3 spark2-historyserver - 2.5.3.51-3 spark2-thriftserver - 2.5.3.51-3 sqoop-client - 2.5.3.51-3 sqoop-server - 2.5.3.51-3 storm-client - None storm-nimbus - None storm-slider-client - 2.5.3.51-3 storm-supervisor - None zeppelin-server - 2.5.3.51-3 zookeeper-client - 2.5.3.51-3 zookeeper-server - 2.5.3.51-3
Created 08-30-2017 04:37 PM
Thank you! This actually much cleaner and simpler than the yum query and I was able to run this without root or sudo. I wish I could give your answer a check as well. I appreciate it.