Member since
02-27-2018
4
Posts
0
Kudos Received
0
Solutions
03-13-2018
08:54 AM
@Guilherme Braccialli I have a log file in which i have last field as key value pair. for example: 2017-11-29 16:19:39,217 DEBUG [pool-4-thread-4] OutBound Msg From Engine -> |9=76|35=p|a=b|c=hg| 2017-11-29 16:20:29,217 DEBUG [pool-4-thread-4] OutBound Msg From Engine -> |3=6|35=w|a=b| how to analyse this? Can we use your custom serde for this? Because Regex serde is not supporting complex data types.
... View more
02-27-2018
03:39 AM
I have the same situation in log file. My data set looks like this 2017-11-29 16:19:39,217 DEBUG Conn -> 8=FIXT.1.1|9=76|35=A 2017-11-29 16:19:43,618 DEBUG Conn -> 8=FIXT.1.1|9=52|35=0|49=1151|56=BSEEQ|34=2 How to handle this Regex serde.
my create table query is: CREATE TABLE capital_log1 ( date STRING, filed2 STRING, filed3 STRING, filed4 STRING,filed7 map<bigint,string>)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe' WITH SERDEPROPERTIES
( "input.regex" = "([^ ]*) ([^,]*)([^ ]*) (.*\->) (.*\|)", "output.format.string" = "%1$s %2$s %3$s %4$s %5$s" )
STORED AS TEXTFILE;
It throws me an exception.
... View more