Created
June 17, 2012 02:50
-
-
Save bwmcadams/2943236 to your computer and use it in GitHub Desktop.
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
CREATE EXTERNAL TABLE scores ( student int, name string, score int ) | |
ROW FORMAT SERDE "com.mongodb.hadoop.hive.BSONSerde" | |
STORED AS INPUTFORMAT "com.mongodb.hadoop.hive.input.BSONFileInputFormat" | |
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | |
LOCATION "/Users/brendan/code/mongodb/mongo-hadoop/hive/test"; | |
LOAD DATA LOCAL INPATH "scores.bson" INTO TABLE scores; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment