How to Get the Version of Apache Pig From Grunt

This article will help you understanding how to get the version number of Apache Pig you are using. Apache Pig version can be get from HDFS terminal as well as from the Pig grunt.

From HDFS Terminal, use the below command:
pig –version

PigVersion_FromTerminal

From the grunt, whenever your job invokes mapreduce, you will be updated with the version of Hadoop along with the version of Apache Pig as shown below during the Map Reduce process.

I am using CDH version 5.10 hence I get the below information.

PigVersion_DuringMRJob

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s