How to find cdh version hadoop

cloudera, hadoop

Solution

The simplest way if you have ssh access to hadoop node is by running command

$ hadoop version

Problem

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.

Original source