Explore Courses Blog Tutorials Interview Questions
+1 vote
in R Programming by (47.6k points)

If I want to execute pig script from grunt shell what all do I need to have? I have copied the .pig file and source file into the hdfs. what else do I need to copy? Can you please share the execution command or statement along with step by step process how to execute the pig script in grunt shell?

1 Answer

0 votes
by (106k points)

Actually, you don't need to keep the script.pig file in HDFS, the script file will be in local only.

You will need to use the exec command or run command for executing the script file in the Grunt shell. Below is the command that you can use.

1. exec <location of the file in local>/script.pig

2. run <location of the file in local>/script.pig

You can also refer to the below-given link for details :

Related questions

+7 votes
1 answer
0 votes
4 answers
0 votes
1 answer
asked Jan 24, 2021 in Linux by dev_sk2311 (45k points)
0 votes
1 answer

Browse Categories