You are on page 1of 5

LAB ASSIGNMENT – 5

NAME: WILBIN T VARUGHESE


USN: 4SO19CS183

Install Pig on Windows:


Step 1: Downloading Apache Pig
Use the link https://downloads.apache.org/pig/latest/ to download the file and extract using
command “tar -xf pig-0.17.0.tar.gz (in cmd prompt) in pig folder
Step 2: Edit the Environmental Varaibles
Add new variables
PIG_HOME – D:\pig\pig-0.17.0

And following paths


%PIG_HOME%\bin
Step 3: Start Hadoop

Step 4: Start Apache Pig


pig -version (in cmd prompt admin)
To fix this error we should edit pig.cmd file located in the “pig-0.17.0\bin” directory by
changing the HADOOP_BIN_PATH value from “%HADOOP_HOME%\bin” to
“%HADOOP_HOME%\libexec”

Now run “pig -version” again (in cmd prompt again)


Step 5: Starting Grunt Shell in Local Mode

You might also like