Dear Technocrats,
In this post, I am explaining the procedure of pig installation on your hadoop cluster ( we have hadoop 2.6.0 configured cluster in our lab).
Pig configuration:
1. download pig-0.x.x
2. Set java path in .bashrc file.
3. pig-0.x.x/bin directory.
4. run the command $ ./pig -x local
5. It will bring you up to grunt shell as shown in the screen-shot below:
grunt is the pig shell. So enjoy scripting using pig on your cluster.
(Note: Pig installation needs java 7 or higher. So if you are using any lower version, then switch to higher version)
Working on grunt shell:
Let you have two files each having two columns. You wish to join those tables corresponding to one common column. It is as simple as 4 lines of code in pig terminal as shown in program screen shot below:
Analysis of Sample healthcare dataset:
This is the analysis of sample dataset of healthcare record having entries of patient name, disease, gender, age etc. Here is the procedure to find the number of male candidates suffering from Swine Flu.
For more frequent updates visit our page
In this post, I am explaining the procedure of pig installation on your hadoop cluster ( we have hadoop 2.6.0 configured cluster in our lab).
Pig configuration:
1. download pig-0.x.x
2. Set java path in .bashrc file.
3. pig-0.x.x/bin directory.
4. run the command $ ./pig -x local
5. It will bring you up to grunt shell as shown in the screen-shot below:
grunt is the pig shell. So enjoy scripting using pig on your cluster.
(Note: Pig installation needs java 7 or higher. So if you are using any lower version, then switch to higher version)
Working on grunt shell:
Let you have two files each having two columns. You wish to join those tables corresponding to one common column. It is as simple as 4 lines of code in pig terminal as shown in program screen shot below:
Analysis of Sample healthcare dataset:
This is the analysis of sample dataset of healthcare record having entries of patient name, disease, gender, age etc. Here is the procedure to find the number of male candidates suffering from Swine Flu.
For more frequent updates visit our page
It is really a great work and the way in which you are sharing the knowledge is excellent.
ReplyDeletebig data analytics company in chennai