如何查看hadoop的版本

需要在官网查看帮助文档,但不知道安装的hadoop的版本号,可以使用hadoop version查看。

# hadoop version
Hadoop 2.6.0-cdh5.15.1
Subversion http://github.com/cloudera/hadoop -r 2d822203265a2827554b84cbb46c69b86ccca149
Compiled by jenkins on 2018-08-09T16:22Z
Compiled with protoc 2.5.0
From source with checksum 96bc735f7d923171f18968309fa3c477
This command was run using /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/jars/hadoop-common-2.6.0-cdh5.15.1.jar

可以看到hadoop的版本号是: Hadoop 2.6.0-cdh5.15.1

比如现在我想查看相应的hadoop 2.6.0版本里相关hdfs的文档,很容易就获得准确的帮助文档:

http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/HdfsUserGuide.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注