Support Questions

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

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

avatar

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 ?

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@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



.

.

 

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@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



.

.

 

avatar