+1 vote
1 view
in R Programming by (47.7k 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 (107k 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 :

http://pig.apache.org/docs/r0.17.0/cmds.html#exec

Related questions

+9 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...