Created
September 23, 2012 22:58
-
-
Save criccomini/3773353 to your computer and use it in GitHub Desktop.
Hadoop, Pig, and SQL (TABLES)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE newtable AS SELECT * FROM mytable; | |
STORE mytable INTO '/some_hdfs_folder/newtable' USING PigStorage(','); | |
DROP TABLE newtable; | |
RMF /some_hdfs_folder/newtable; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment