Skip to content

Instantly share code, notes, and snippets.

@criccomini
Created September 23, 2012 22:58
Show Gist options
  • Save criccomini/3773353 to your computer and use it in GitHub Desktop.
Save criccomini/3773353 to your computer and use it in GitHub Desktop.
Hadoop, Pig, and SQL (TABLES)
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