How to run PIG script?

0 votes
Can anyone share me steps to create and run the PIG script?
Jun 20 in Big Data Hadoop by Harry
7 views

1 answer to this question.

0 votes

Please follow the below screenshots for creating pig script:

image

image

press i, for inserting data into the new file created. After which you can either paste or type the below pig commands in the script.

image

Now for saving the pig script, you need to press esc button and then type :wq and then press enter. This will store the pig script to your local file system i.e, on your FTP and not to the hdfs. For executing the pig script, you need to keep the script in local itself.

Now for executing the pig script, follow the below screenshots:

image

imageI hope this helps.

answered Jun 20 by Dinesh

Related Questions In Big Data Hadoop

0 votes
1 answer

how to execute pig script in MapReduce mode?

Hey, To execute pig script we can use ...READ MORE

answered May 7 in Big Data Hadoop by Gitika
• 19,720 points
32 views
0 votes
1 answer

How to execute Pig script from HDFS?

Hey, You can do something like executes a Pig ...READ MORE

answered Jun 26 in Big Data Hadoop by Gitika
• 19,720 points
14 views
0 votes
0 answers

How to run Hadoop in Docker containers?

I want to incorporate Hadoop in Docker ...READ MORE

Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 10,110 points
58 views
0 votes
1 answer

How to run example codes of Hadoop Definitive Guide book?

You will find multiple git repositories where ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by Shubham
• 13,190 points
88 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,110 points
2,056 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,110 points
198 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,519 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
768 views
0 votes
7 answers

How to run a jar file in hadoop?

I used this command to run my ...READ MORE

answered Dec 10, 2018 in Big Data Hadoop by Dasinto
4,026 views
0 votes
1 answer

How to run Map Reduce program using Ubuntu terminal?

 I used the following steps to execute it ...READ MORE

answered Aug 7, 2018 in Big Data Hadoop by Neha
• 6,280 points
77 views