Executing the pig commands

0 votes

Hello Baljinder,

Thanks for your response.

I have a query for you. Everytime I need to hardcode the path (highlighted in red color) while executing manually the pig commands. Do we have any provision or mechanism where the path can be set as a environment variable and call the variable instead of hard coding the path. In case if you have solution can you please send me the step by step process .

grunt> std_dtls = LOAD 'hdfs://localhost:8020/user/edureka/SourceFiles/Pig/student_details.txt' USING PigStorage(',') as (id:int,firstname:chararray,lastname:chararray,age:int,phoneno:long,place:chararray);

grunt> emp_dtls = LOAD 'hdfs://localhost:8020/user/edureka/SourceFiles/Pig/employee_details.txt' USING PigStorage(',') as (id:int,firstname:chararray,age:int,place:chararray);

grunt> std_emp_dtls_cogroup = COGROUP std_dtls by age,emp_dtls by age;

grunt> DUMP std_emp_dtls_cogroup

Dec 18, 2017 in Data Analytics by Narayana
46 views

1 answer to this question.

0 votes
Dear Narayana,

Hope you are doing great.

Yes you are correct here, you have to do this steps only to Run Pig jobs, because this is the location where we have installed PIG.

Please let us know if you have any other issue.
answered Dec 18, 2017 by Sudhir
• 1,610 points

Related Questions In Data Analytics

0 votes
1 answer

How to Share the files from local system Mac Book to Edureka VM

Hey Satya, Hope you're doing great. Would you please ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
48 views
0 votes
1 answer

Pig - Grunt shell

Dear Narayan, Hope you are doing great. You don't ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
68 views
0 votes
1 answer

pig script or normal pig command

Dear Narayan, Please accept our sincere apologies for ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
25 views
0 votes
1 answer

webinar details to join the session

Session it got resolved READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
201 views
0 votes
1 answer

Splunk Cluster instalation document was not uploaded in the cource.

Dear Learner, Greetings ! We would like to inform ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
54 views
0 votes
1 answer

Plotting multiple graphs on the same page in R

If you want to plot 4 graphs ...READ MORE

answered Mar 27, 2018 in Data Analytics by Bharani
• 4,550 points
49 views
+1 vote
2 answers

Custom Function to replace missing values in a vector with the mean of values

Try this. lapply(a,function(x){ifelse(is.na(x),mean(a,na.rm = TRUE) ...READ MORE

answered Aug 14 in Data Analytics by anonymous
74 views
0 votes
1 answer

With the help of tidyverse: how to rename a column to a variable name

With the help of Dplyr: rename function ...READ MORE

answered Apr 3, 2018 in Data Analytics by DeepCoder786
• 1,700 points

edited Apr 3, 2018 by DeepCoder786 41 views
0 votes
1 answer

Shut down the VM and restarted

Dear Raghu, Please let us know are you ...READ MORE

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points
28 views
0 votes
1 answer

?: The only 'Run as' choice 'Run Configurations. Why?

Dear Learner, Greetings ! The issue which you are ...READ MORE

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points
17 views