Is it possible by using Pig latin, can we load/store data into HDFS?



0
Can you please provide some examples regarding this. It will be good if we get examples in both Hadoop 1.x and 2.x.

1 Answer(s)


0

Hi Ranjit,

You can use the copyFromLocal command in Pig:
grunt > copyFromLocal path/to/source path/to/destination

This support both Hadoop-1 and Hadoop-2

Hope this helps.
Thanks

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password