我正在尝试检查我的hadoop上安装的PIG版本。我们怎样才能看到Hadoop上安装的猪版本?有什么命令可以看到吗?
使用pig --version
获取已安装的猪版本
输出将是这样的:
Apache Pig version 0.12.0-cdh5.1.3 (rexported)
compiled Sep 16 2014, 20:39:45
你可以从pig -version
做pig --version
或pig -i
或PIG-13。
获得猪版的另一种方法:(在CDH上)
猪-i
样本输出:
$ pig -i
log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Apache Pig version 0.12.0-cdh5.13.0 (rexported)
compiled Oct 04 2017, 11:09:03