change outPath, compatible with Hive ext. table
add the resolver for scalaz
and change outputPath as date_id=$date_id/ts=$ts
for create external table as
CREATE EXTERNAL TABLE wal(
log_ts bigint,
o string,
lt string,
f string, -- from or id
t string, -- to or service
l string, -- label or column
p string, -- props, if service is null, this values is the service and the props is null
s string -- service, can be null, then the props is the service
)
PARTITIONED BY (
date_id string,
ts string
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'
LOCATION "/path/to/wal";
then add partitions as
ALTER TABLE wal ADD PARTITION(date_id='2015-09-08', ts='1441699800000');