How to install Pig in Hadoop
To install pig in Hadoop distributed mode where each Hadoop using pig for data manipulation operations
Procedure:
Step 1: Downloading the Apache Pig software.
https://pig.apache.org/
Step 2: Extract
the downloaded tar file.
$ tar zxvf pig-0.15.0.tar.gz
Step 3: Move the content of pig-0.15.0-src.tar.gz file to the Pig directory.$ mv pig-0.15.0 pig
Step 4: After move the pig file ,we need to configure the .bashrc fileexport PIG_HOME = /home/Hadoop/Pig
export PATH = PATH:/home/Hadoop/pig/bin export PIG_CLASSPATH = $HADOOP_HOME/conf Step 5: Verifying the installation. $ pig –version Step 6: Invoke the Grunt shell in a desired mode (local/MapReduce). Local mode : $ ./pig –x local MapReduce mode: $ ./pig -x mapreduce
Comments
Post a Comment