1.
对于已安装好CDH的集群,可以通过CDH管理界面查看
http://hadoop01:7180/cmf/hardware/hosts/1/components
admin/admin
2.选择主节点的组件
3.其他组件的版本
4.命令佐证
hadoop
[root@hadoop01 ~]# hadoop version
Hadoop 3.0.0-cdh6.2.1
Source code repository http://github.com/cloudera/hadoop -r 7ce7dcdb76fd7f700cd7749bbc6390f76ff2abae
Compiled by jenkins on 2019-09-11T08:04Z
Compiled with protoc 2.5.0
From source with checksum b6cc25ff15ff575f159489abbee34c5
This command was run using /opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/hadoop-common-3.0.0-cdh6.2.1.jar
[root@hadoop01 ~]#
Hive
[root@hadoop01 ~]# hive --version
WARNING: Use "yarn jar" to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Hive 2.1.1-cdh6.2.1
Subversion file:///container.redhat7/build/cdh/hive/2.1.1-cdh6.2.1/rpm/BUILD/hive-2.1.1-cdh6.2.1 -r fc0582dc4d2e2342d1eef8cb702bad68e1e2cdd2
Compiled by jenkins on Wed Sep 11 01:31:00 PDT 2019
From source with checksum 6bf22b68335469e1b010bcfecc8ea570
[root@hadoop01 ~]#