Why do we use STORE command in pig?

+1 vote

Hi.

Can anyone explain why store command is been used in pig, while I am new to Hadoop and using pig it is not clear to me.

May 7 in Big Data Hadoop by Dona
36 views

1 answer to this question.

+1 vote

Hey,

We use store command to store the data in HDFS. Will explain how to store the data in Apache pig using store command.

Syntax for store statement:-

grunt> STORE Relation_name INTO ' required_directory_path ' [USING function];

Example,

grunt> STORE student INTO ' hdfs://localhost:9000/pig_Output/ ' USING PigStorage (',');

After executing the pig statement you will get the output.

answered May 7 by Gitika
• 25,340 points

Related Questions In Big Data Hadoop

0 votes
0 answers

Why we use 'help' command in Hadoop Sqoop?

Use of help command in Hadoop sqoop. READ MORE

Apr 11 in Big Data Hadoop by amrita
36 views
0 votes
1 answer

Why should we use "distinct" keyword in pig script?

Hey, The "distinct" statement is very simple. It ...READ MORE

answered May 3 in Big Data Hadoop by Gitika
• 25,340 points
30 views
0 votes
1 answer

Why we use Relation keyword in pig?

Hey, In pig, Relation represents a complete database. ...READ MORE

answered May 7 in Big Data Hadoop by Gitika
• 25,340 points
26 views
0 votes
1 answer

Which code do we use to open the connection in HBase?

Hey, To open a connection, following code: Configuartion myconf ...READ MORE

answered May 22 in Big Data Hadoop by Gitika
• 25,340 points
46 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
211 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,690 points
3,082 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,690 points
347 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
15,150 views
0 votes
1 answer

Why we use --split by command in Sqoop?

The command --split-by is used to specify the ...READ MORE

answered Apr 11 in Big Data Hadoop by Gitika
• 25,340 points
805 views
0 votes
1 answer

Why do we need the FOR EACH operation in Pig Scripts?

The operation FOREACH in Apache Pig is ...READ MORE

answered Apr 30 in Big Data Hadoop by Gitika
• 25,340 points
29 views