You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the project (WSProgram) create a package (WSPackage)
Create (at least) 3 files for Driver, Mapper and Reducer
If needed create more class
Now you need to Add some external libraries, for that add the jar files in the JAR Files folder
Now it's time to export your project as jar file.
Note: while create the jar files you can mention the class that contains the main method if you
don't mention it then it's compulsory to mention the class name in the command life but if you do
mention it then you can skip writing the name of the java file in the command line.
Steps to Run Pig Assignment
Assignment 1
Create a folder named Output in the folder where you'll be having the script.
Run the script using, pig -x local script_name.pig
If the script run successfully then a folder will be generate in the Output
Assignment 2
Need to rename the text files, make it Map Reduce compatiple and keep them the text files in a folder named txt and keep txt in the folder where your pig scripts are.
Create a folder Output within the folder where you'll be having the scripts
First run the script.pig pig -x local script.pig
You can see inside Output there will be new 3 folders.