Skip to main content
mike_bronson7
Gold ⭐️⭐️⭐️
Jan 28, 2020 5:45 PM UTC
Solved

HDFS + how to verify the version of HDFS clients on hadoop cluster

we can verify the HDFS version on hadoop cluster

 

as the following:

 

su hdfs

hdfs version

 

 

but since hdfs client also installed on all data-nodes machines

 

we need to verify also the hdfs client version

 

any cli / command / binaries files , that can captured the hdfs client version ?

jsensharma
Platinum ⭐️⭐️
Jan 28, 2020 8:11 PM UTC

@mike_bronson7 

There are couple of other options we can explore like:

Using HDFS command line is one of the best way to get the detailed version.

# hdfs version



Using HDP Select command on the host where you want to check the version.

# hdp-select | grep hdfs-client


Using Ambari API also we can get some idea about the hdfs client version shipped and installed as part of the HDP.

# curl -s -u admin:admin -H "X-Requested-By: ambari" -X GET http://${AMBARI_SERVER_FQDN}:8080/api/v1/clusters/${CLUSTER_NAME}/hosts/${HOST_TO_CHECK}/host_components/HDFS_CLIENT | grep -i version



.

.

 

2 replies

jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
Jan 28, 2020 8:11 PM UTC

@mike_bronson7 

There are couple of other options we can explore like:

Using HDFS command line is one of the best way to get the detailed version.

# hdfs version



Using HDP Select command on the host where you want to check the version.

# hdp-select | grep hdfs-client


Using Ambari API also we can get some idea about the hdfs client version shipped and installed as part of the HDP.

# curl -s -u admin:admin -H "X-Requested-By: ambari" -X GET http://${AMBARI_SERVER_FQDN}:8080/api/v1/clusters/${CLUSTER_NAME}/hosts/${HOST_TO_CHECK}/host_components/HDFS_CLIENT | grep -i version



.

.

 

Translate
mike_bronson7
Gold ⭐️⭐️⭐️
Jan 28, 2020 10:00 PM UTC