Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to I find the version of HDP installed on CentOS

avatar
Expert Contributor

I know HDP is installed in one of the machine and I need to what release is currently installed in that machine.

I can get the version of individual componets, but not the entire HDP

1 ACCEPTED SOLUTION

avatar
Guru

List the contents of the following folder:

# /usr/hdp/current

You will see the version number of HDP (plus the version of every component). For example, I have HPD 2.3.0.0-2557 on the machine below:

[root@namenode ~]# ls -la /usr/hdp/current/
total 8
drwxr-xr-x 2 root root 4096 Jul 26  2015 .
drwxr-xr-x 4 root root 4096 Jul 26  2015 ..
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-client -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-gc -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-master -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-monitor -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-tablet -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-tracer -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   27 Jul 26  2015 atlas-server -> /usr/hdp/2.3.0.0-2557/atlas
lrwxrwxrwx 1 root root   28 Jul 26  2015 falcon-client -> /usr/hdp/2.3.0.0-2557/falcon
lrwxrwxrwx 1 root root   28 Jul 26  2015 falcon-server -> /usr/hdp/2.3.0.0-2557/falcon
lrwxrwxrwx 1 root root   27 Jul 26  2015 flume-server -> /usr/hdp/2.3.0.0-2557/flume
lrwxrwxrwx 1 root root   28 Jul 26  2015 hadoop-client -> /usr/hdp/2.3.0.0-2557/hadoop
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-client -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-datanode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-journalnode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-namenode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-nfs3 -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-portmap -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-secondarynamenode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   35 Jul 26  2015 hadoop-httpfs -> /usr/hdp/2.3.0.0-2557/hadoop-httpfs
lrwxrwxrwx 1 root root   38 Jul 26  2015 hadoop-mapreduce-client -> /usr/hdp/2.3.0.0-2557/hadoop-mapreduce
lrwxrwxrwx 1 root root   38 Jul 26  2015 hadoop-mapreduce-historyserver -> /usr/hdp/2.3.0.0-2557/hadoop-mapreduce
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-client -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-nodemanager -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-resourcemanager -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-timelineserver -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   27 Jul 26  2015 hbase-client -> /usr/hdp/2.3.0.0-2557/hbase
lrwxrwxrwx 1 root root   27 Jul 26  2015 hbase-master -> /usr/hdp/2.3.0.0-2557/hbase
lrwxrwxrwx 1 root root   27 Jul 26  2015 hbase-regionserver -> /usr/hdp/2.3.0.0-2557/hbase
lrwxrwxrwx 1 root root   26 Jul 26  2015 hive-client -> /usr/hdp/2.3.0.0-2557/hive
lrwxrwxrwx 1 root root   26 Jul 26  2015 hive-metastore -> /usr/hdp/2.3.0.0-2557/hive
lrwxrwxrwx 1 root root   26 Jul 26  2015 hive-server2 -> /usr/hdp/2.3.0.0-2557/hive
lrwxrwxrwx 1 root root   35 Jul 26  2015 hive-webhcat -> /usr/hdp/2.3.0.0-2557/hive-hcatalog
lrwxrwxrwx 1 root root   27 Jul 26  2015 kafka-broker -> /usr/hdp/2.3.0.0-2557/kafka
lrwxrwxrwx 1 root root   26 Jul 26  2015 knox-server -> /usr/hdp/2.3.0.0-2557/knox
lrwxrwxrwx 1 root root   28 Jul 26  2015 mahout-client -> /usr/hdp/2.3.0.0-2557/mahout
lrwxrwxrwx 1 root root   27 Jul 26  2015 oozie-client -> /usr/hdp/2.3.0.0-2557/oozie
lrwxrwxrwx 1 root root   27 Jul 26  2015 oozie-server -> /usr/hdp/2.3.0.0-2557/oozie
lrwxrwxrwx 1 root root   29 Jul 26  2015 phoenix-client -> /usr/hdp/2.3.0.0-2557/phoenix
lrwxrwxrwx 1 root root   29 Jul 26  2015 phoenix-server -> /usr/hdp/2.3.0.0-2557/phoenix
lrwxrwxrwx 1 root root   25 Jul 26  2015 pig-client -> /usr/hdp/2.3.0.0-2557/pig
lrwxrwxrwx 1 root root   34 Jul 26  2015 ranger-admin -> /usr/hdp/2.3.0.0-2557/ranger-admin
lrwxrwxrwx 1 root root   32 Jul 26  2015 ranger-kms -> /usr/hdp/2.3.0.0-2557/ranger-kms
lrwxrwxrwx 1 root root   37 Jul 26  2015 ranger-usersync -> /usr/hdp/2.3.0.0-2557/ranger-usersync
lrwxrwxrwx 1 root root   28 Jul 26  2015 slider-client -> /usr/hdp/2.3.0.0-2557/slider
lrwxrwxrwx 1 root root   27 Jul 26  2015 spark-client -> /usr/hdp/2.3.0.0-2557/spark
lrwxrwxrwx 1 root root   27 Jul 26  2015 spark-historyserver -> /usr/hdp/2.3.0.0-2557/spark
lrwxrwxrwx 1 root root   27 Jul 26  2015 sqoop-client -> /usr/hdp/2.3.0.0-2557/sqoop
lrwxrwxrwx 1 root root   27 Jul 26  2015 sqoop-server -> /usr/hdp/2.3.0.0-2557/sqoop
lrwxrwxrwx 1 root root   27 Jul 26  2015 storm-client -> /usr/hdp/2.3.0.0-2557/storm
lrwxrwxrwx 1 root root   27 Jul 26  2015 storm-nimbus -> /usr/hdp/2.3.0.0-2557/storm
lrwxrwxrwx 1 root root   41 Jul 26  2015 storm-slider-client -> /usr/hdp/2.3.0.0-2557/storm-slider-client
lrwxrwxrwx 1 root root   27 Jul 26  2015 storm-supervisor -> /usr/hdp/2.3.0.0-2557/storm
lrwxrwxrwx 1 root root   25 Jul 26  2015 tez-client -> /usr/hdp/2.3.0.0-2557/tez
lrwxrwxrwx 1 root root   31 Jul 26  2015 zookeeper-client -> /usr/hdp/2.3.0.0-2557/zookeeper
lrwxrwxrwx 1 root root   31 Jul 26  2015 zookeeper-server -> /usr/hdp/2.3.0.0-2557/zookeeper

View solution in original post

2 REPLIES 2

avatar
Guru

List the contents of the following folder:

# /usr/hdp/current

You will see the version number of HDP (plus the version of every component). For example, I have HPD 2.3.0.0-2557 on the machine below:

[root@namenode ~]# ls -la /usr/hdp/current/
total 8
drwxr-xr-x 2 root root 4096 Jul 26  2015 .
drwxr-xr-x 4 root root 4096 Jul 26  2015 ..
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-client -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-gc -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-master -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-monitor -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-tablet -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   30 Jul 26  2015 accumulo-tracer -> /usr/hdp/2.3.0.0-2557/accumulo
lrwxrwxrwx 1 root root   27 Jul 26  2015 atlas-server -> /usr/hdp/2.3.0.0-2557/atlas
lrwxrwxrwx 1 root root   28 Jul 26  2015 falcon-client -> /usr/hdp/2.3.0.0-2557/falcon
lrwxrwxrwx 1 root root   28 Jul 26  2015 falcon-server -> /usr/hdp/2.3.0.0-2557/falcon
lrwxrwxrwx 1 root root   27 Jul 26  2015 flume-server -> /usr/hdp/2.3.0.0-2557/flume
lrwxrwxrwx 1 root root   28 Jul 26  2015 hadoop-client -> /usr/hdp/2.3.0.0-2557/hadoop
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-client -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-datanode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-journalnode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-namenode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-nfs3 -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-portmap -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-hdfs-secondarynamenode -> /usr/hdp/2.3.0.0-2557/hadoop-hdfs
lrwxrwxrwx 1 root root   35 Jul 26  2015 hadoop-httpfs -> /usr/hdp/2.3.0.0-2557/hadoop-httpfs
lrwxrwxrwx 1 root root   38 Jul 26  2015 hadoop-mapreduce-client -> /usr/hdp/2.3.0.0-2557/hadoop-mapreduce
lrwxrwxrwx 1 root root   38 Jul 26  2015 hadoop-mapreduce-historyserver -> /usr/hdp/2.3.0.0-2557/hadoop-mapreduce
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-client -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-nodemanager -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-resourcemanager -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   33 Jul 26  2015 hadoop-yarn-timelineserver -> /usr/hdp/2.3.0.0-2557/hadoop-yarn
lrwxrwxrwx 1 root root   27 Jul 26  2015 hbase-client -> /usr/hdp/2.3.0.0-2557/hbase
lrwxrwxrwx 1 root root   27 Jul 26  2015 hbase-master -> /usr/hdp/2.3.0.0-2557/hbase
lrwxrwxrwx 1 root root   27 Jul 26  2015 hbase-regionserver -> /usr/hdp/2.3.0.0-2557/hbase
lrwxrwxrwx 1 root root   26 Jul 26  2015 hive-client -> /usr/hdp/2.3.0.0-2557/hive
lrwxrwxrwx 1 root root   26 Jul 26  2015 hive-metastore -> /usr/hdp/2.3.0.0-2557/hive
lrwxrwxrwx 1 root root   26 Jul 26  2015 hive-server2 -> /usr/hdp/2.3.0.0-2557/hive
lrwxrwxrwx 1 root root   35 Jul 26  2015 hive-webhcat -> /usr/hdp/2.3.0.0-2557/hive-hcatalog
lrwxrwxrwx 1 root root   27 Jul 26  2015 kafka-broker -> /usr/hdp/2.3.0.0-2557/kafka
lrwxrwxrwx 1 root root   26 Jul 26  2015 knox-server -> /usr/hdp/2.3.0.0-2557/knox
lrwxrwxrwx 1 root root   28 Jul 26  2015 mahout-client -> /usr/hdp/2.3.0.0-2557/mahout
lrwxrwxrwx 1 root root   27 Jul 26  2015 oozie-client -> /usr/hdp/2.3.0.0-2557/oozie
lrwxrwxrwx 1 root root   27 Jul 26  2015 oozie-server -> /usr/hdp/2.3.0.0-2557/oozie
lrwxrwxrwx 1 root root   29 Jul 26  2015 phoenix-client -> /usr/hdp/2.3.0.0-2557/phoenix
lrwxrwxrwx 1 root root   29 Jul 26  2015 phoenix-server -> /usr/hdp/2.3.0.0-2557/phoenix
lrwxrwxrwx 1 root root   25 Jul 26  2015 pig-client -> /usr/hdp/2.3.0.0-2557/pig
lrwxrwxrwx 1 root root   34 Jul 26  2015 ranger-admin -> /usr/hdp/2.3.0.0-2557/ranger-admin
lrwxrwxrwx 1 root root   32 Jul 26  2015 ranger-kms -> /usr/hdp/2.3.0.0-2557/ranger-kms
lrwxrwxrwx 1 root root   37 Jul 26  2015 ranger-usersync -> /usr/hdp/2.3.0.0-2557/ranger-usersync
lrwxrwxrwx 1 root root   28 Jul 26  2015 slider-client -> /usr/hdp/2.3.0.0-2557/slider
lrwxrwxrwx 1 root root   27 Jul 26  2015 spark-client -> /usr/hdp/2.3.0.0-2557/spark
lrwxrwxrwx 1 root root   27 Jul 26  2015 spark-historyserver -> /usr/hdp/2.3.0.0-2557/spark
lrwxrwxrwx 1 root root   27 Jul 26  2015 sqoop-client -> /usr/hdp/2.3.0.0-2557/sqoop
lrwxrwxrwx 1 root root   27 Jul 26  2015 sqoop-server -> /usr/hdp/2.3.0.0-2557/sqoop
lrwxrwxrwx 1 root root   27 Jul 26  2015 storm-client -> /usr/hdp/2.3.0.0-2557/storm
lrwxrwxrwx 1 root root   27 Jul 26  2015 storm-nimbus -> /usr/hdp/2.3.0.0-2557/storm
lrwxrwxrwx 1 root root   41 Jul 26  2015 storm-slider-client -> /usr/hdp/2.3.0.0-2557/storm-slider-client
lrwxrwxrwx 1 root root   27 Jul 26  2015 storm-supervisor -> /usr/hdp/2.3.0.0-2557/storm
lrwxrwxrwx 1 root root   25 Jul 26  2015 tez-client -> /usr/hdp/2.3.0.0-2557/tez
lrwxrwxrwx 1 root root   31 Jul 26  2015 zookeeper-client -> /usr/hdp/2.3.0.0-2557/zookeeper
lrwxrwxrwx 1 root root   31 Jul 26  2015 zookeeper-server -> /usr/hdp/2.3.0.0-2557/zookeeper

avatar
Master Guru

You can use hdp-select:

hdp-select versions      # will show all installed HDP versions, possibly more than one
hdp-select status       #  will show version of each installed package