Created
September 17, 2016 08:42
-
-
Save pavlov99/8546456937523f17a071e8d2f5029136 to your computer and use it in GitHub Desktop.
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 EXTERNAL TABLE IF NOT EXISTS lookup_example_nhl_ext( | |
team String, | |
division String, | |
conference String) | |
COMMENT 'NHL teams' | |
ROW FORMAT DELIMITED | |
FIELDS TERMINATED BY ',' | |
LINES TERMINATED BY '\n' | |
STORED AS TEXTFILE | |
LOCATION 'hdfs:///user/<user>/lookup-example/nhl-lookup' | |
TBLPROPERTIES ("skip.header.line.count"="1"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment