tktk
Last active
November 18, 2021 18:08
-
-
Save farski/b3c6f7c4ed4b5bf952bf43ca3e1e8669 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 __DATABASE_NAME__.__TABLE_NAME__ ( | |
bucketowner string, | |
bucket_name string, | |
requestdatetime string, | |
remoteip string, | |
requester string, | |
requestid string, | |
operation string, | |
key string, | |
request_uri string, | |
httpstatus string, | |
errorcode string, | |
bytessent bigint, | |
objectsize bigint, | |
totaltime string, | |
turnaroundtime string, | |
referrer string, | |
useragent string, | |
versionid string, | |
hostid string, | |
sigv string, | |
ciphersuite string, | |
authtype string, | |
endpoint string, | |
tlsversion string | |
) | |
COMMENT "TKTKTK A description of the table" | |
ROW FORMAT SERDE "org.apache.hadoop.hive.serde2.RegexSerDe" | |
WITH SERDEPROPERTIES ( | |
"input.regex" = '([^ ]*) ([^ ]*) \\[(.*?)\\] ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) (\"[^\"]*\"|-) (-|[0-9]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) (\"[^\"]*\"|-) ([^ ]*)(?: ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*))?.*$' | |
) | |
STORED AS | |
INPUTFORMAT "org.apache.hadoop.mapred.TextInputFormat" | |
OUTPUTFORMAT "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat" | |
LOCATION 's3://__BUCKET_AND_PREFIX__/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment