Created
February 27, 2018 10:36
-
-
Save mustafaakin/78badf109b8f090fbd9bde548ecf958b 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 `flows`( | |
`version` int, | |
`account` string, | |
`interfaceid` string, | |
`sourceaddress` string, | |
`destinationaddress` string, | |
`sourceport` int, | |
`destinationport` int, | |
`protocol` int, | |
`packets` int, | |
`bytes` int, | |
`starttime` timestamp, | |
`endtime` timestamp, | |
`action` string, | |
`logstatus` string) | |
STORED AS PARQUET | |
LOCATION 's3://mybucket/myflowlogs' | |
tblproperties ("parquet.compress"="SNAPPY"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment