Slide 27
Slide 27 text
26
データ変換方法
データ変換にはAthenaを使用
AthenaでS3上のデータをクエリするには
Glueデータカタログが必要
必要に応じて、パーティション分割する
パーティションを作成する場合にはパーティ
ション射影の機能が便利
CREATE EXTERNAL TABLE `alb_logs_partition_projection`(
…
TBLPROPERTIES (
'has_encrypted_data
'='false',
'projection.enabled
'='true',
'projection.day.digits
'='2',
'projection.day.interval
'='1',
'projection.day.range
'='1,31',
'projection.day.type
'='integer',
'projection.month.digits
'='2',
'projection.month.interval
'='1',
'projection.month.range
'='1,12',
'projection.month.type
'='integer',
'projection.year.digits
'='4',
'projection.year.interval
'='1',
'projection.year.range
'='2020,2025',
'projection.year.type
'='integer',
'storage.location.template
'='s3://your-alb-logs-director
y/AWSLogs//elasticloadbalancing/ap-northeast
-1/${year}/${month}/${day}
'
)
ALBのアクセスログ向けパーティション射影設定例