Reputation: 5367
When connecting to Hadoop cluster, how can I know which version of Hadoop this cluster is running? In particular this is important for proper configuration of libraries when compiling and packaging Hadoop Java jobs with Maven.
Upvotes: 21
Views: 34670
Reputation: 199
In cdh, in the cluster I am using, there is not any cdh_version.properties (or I couldn't find it)
If your cluster uses "Parcels", you could check which version of cdh is used by doing:
/opt/cloudera/parcels
And you could see the version as the name of the folder:
CDH-5.5.1-1.cdh5.5.1.p0.11
Note: I know that this is a not a general rule for getting which cdh version is used. I am trying to show an alternative way that it worked to me.
Upvotes: 5
Reputation: 41
We can check the installed version with the help of following command:
cat /usr/lib/hadoop/cloudera/cdh_version.properties
Hope this may help you.
Upvotes: 3
Reputation: 11944
If you are looking for CDH version then check /usr/lib/hadoop/cloudera/cdh_version.properties
Upvotes: 16
Reputation: 5367
The simplest way if you have ssh access to hadoop node is by running command
$ hadoop version
Upvotes: 33