Created
January 22, 2015 18:57
-
-
Save woodrad/a9975828ad46c5960114 to your computer and use it in GitHub Desktop.
test.hive
This file contains hidden or 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
ADD JAR ~/csv-serde/target/csv-serde-1.1.2-0.11.0-all.jar; | |
CREATE EXTERNAL TABLE IF NOT EXISTS test (test1 STRING, test2 STRING, test3 STRING, test4 STRING) | |
ROW FORMAT SERDE 'com.bizo.hive.serde.csv.CSVSerde' | |
STORED AS TEXTFILE | |
LOCATION ‘~/csv-serde/blah'; | |
SELECT * FROM test; | |
DROP TABLE test; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment