Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

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