Executing the pig commands

+1 vote

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
594 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,570 points

Related Questions In Data Analytics

0 votes
0 answers
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,570 points
918 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,570 points
941 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,570 points
580 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,570 points
1,833 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,570 points
693 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,660 points
1,441 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, 2019 in Data Analytics by anonymous
1,977 views
0 votes
1 answer

Shut down the VM and restarted

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

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
909 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 18, 2017 in Data Analytics by Sudhir
• 1,570 points
555 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP