Created
January 8, 2017 12:34
-
-
Save goduncan/627c595bccb13f5505ccf83b80b40931 to your computer and use it in GitHub Desktop.
Create New Flow Logs table
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 goduncan.flow_logs ( | |
src string, | |
spt int, | |
dst string, | |
dpt int, | |
proto int, | |
start_time bigint, | |
end_time bigint, | |
out_bytes bigint | |
) | |
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | |
WITH SERDEPROPERTIES ( | |
'serialization.format' = ',', | |
'field.delim' = ',', | |
'collection.delim' = 'undefined', | |
'mapkey.delim' = 'undefined' | |
) LOCATION 'your.s3.bucket.com' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment