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
252 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
• 33,670 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Why we use 'help' command in Hadoop Sqoop?

Hi, The command sqoop help lists the tools ...READ MORE

answered Feb 4 in Big Data Hadoop by MD
• 41,900 points
92 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
• 33,670 points
101 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
• 33,670 points
75 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
• 33,670 points
164 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
637 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,920 points
5,499 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,920 points
809 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
34,056 views
0 votes
2 answers

Why we use --split by command in Sqoop?

In simple explanation, When specify SPLIT_BY only ...READ MORE

answered Feb 6 in Big Data Hadoop by Ramji Sridaran
4,198 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
• 33,670 points
47 views