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.