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, 2019 in Big Data Hadoop by Dona
76 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, 2019 by Gitika
• 25,460 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, 2019 in Big Data Hadoop by amrita
48 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, 2019 in Big Data Hadoop by Gitika
• 25,460 points
50 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, 2019 in Big Data Hadoop by Gitika
• 25,460 points
35 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, 2019 in Big Data Hadoop by Gitika
• 25,460 points
82 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
308 views
+1 vote
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,840 points
3,914 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,840 points
538 views
+1 vote
11 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
20,816 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, 2019 in Big Data Hadoop by Gitika
• 25,460 points
1,572 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, 2019 in Big Data Hadoop by Gitika
• 25,460 points
36 views