How to store datasets from Pig to HDFS?

Big Data Hadoop

Hi Team,

I have done some operations in Pig. I want to store the outputs in HDFS. How can I do that?


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.

1
Answers

Replies

The datasets can be stored from Pig to HDFS using the store operator. The Store operator will help you in storing the loaded data in the file system. Let us say that you want to store the relation in the HDFS directory which is represented below:


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

 
 

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.
WhatsApp
To Top