Skip to content

Instantly share code, notes, and snippets.

@mustafaakin
Created February 27, 2018 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafaakin/78badf109b8f090fbd9bde548ecf958b to your computer and use it in GitHub Desktop.
Save mustafaakin/78badf109b8f090fbd9bde548ecf958b to your computer and use it in GitHub Desktop.
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