Support Questions

Find answers, ask questions, and share your expertise

How to find Cloudera manger agent or server version from CLI

avatar
Contributor

Hi Team,

 

Is there any command to find CM agent and Server version from the command line? 

I know we can find out using the rpm -qa version but any other way I can get to find the java -version?

 

 

 

4 REPLIES 4

avatar
Master Collaborator

Hi,

 

Can you just cat on the below path to get the version number:

""cat /etc/yum.repos.d/cloudera-manager.repo""

 

avatar
Contributor

Hi @ChethanYM,

 

Thanks for the reply I agree we can find out in the repo file, I was just checking if we can get it through any command? like java -version or something kind of 

avatar
Master Collaborator

Hi,

Looks like there is no such command for it.

avatar
Expert Contributor

Hello @khanarshadazmat ,

 

We do not have a direct method to get the CM Server and Agent version like we have in java -version.

 

However, you can follow some of the below workarounds to get the required result:

1_). using below command

# hdfs version

# hadoop version
2_). version info available at "/opt/cloudera/parcels/<CDH>/lib/hadoop/cloudera/cdh_version.properties"

 

Let me know if this helps!

 

Cheers!

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs up button.