Execute the Pig script in Local mode.

Big Data Hadoop

Hi Guys,

I have one script in Pig. I want to run the script in Local mode. How can I run the script?

1
Answers

Replies

The -x command can be used to execute the pig script. Firstly, you will need to write the Pig Latin script in a file and execute the same in the local mode using the -x command.  Let us consider that we have a pig script within the file named as: test_script.pig, then it will be executed as represented using the below format:


$ pig -x local text_script.pig

 
 

If you want to unleash your potential in this competitive field, please visit the Big Data Hadoop course page for more information, where you can find the Big Data Hadoop tutorials and Big Data Hadoop frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
To Top