[resolved] Error while Creating Hive table with Serde using thiverow

Highlighted
One Star

[resolved] Error while Creating Hive table with Serde using thiverow

Hi, I want to run the below query using thiverow, 
Talend Open Studio for Big Data 6.3.1 & CDH 5.8
CREATE EXTERNAL TABLE intermediate_access_logs (
ip STRING,
date STRING,
method STRING,
url STRING,
http_version STRING,
code1 STRING,
code2 STRING,
dash STRING,
user_agent STRING)
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
WITH SERDEPROPERTIES (
'input.regex' = '([^ ]*) - - \\[([^\\]]*)\\] "([^\ ]*) ([^\ ]*) ([^\ ]*)" (\\d*) (\\d*) "([^"]*)" "([^"]*)"',
'output.format.string' = "%1$$s %2$$s %3$$s %4$$s %5$$s %6$$s %7$$s %8$$s %9$$s")
LOCATION '/user/hive/warehouse/original_access_logs';

Iam getting an error when I run this.

Am I missing something ? should I add any jar ?


Accepted Solutions
One Star

Re: [resolved] Error while Creating Hive table with Serde using thiverow

Fixed the issue by escaping double quotes ('"' to '\"') and back slashes ("\" to "\\" and "\\" to "\\\\")

All Replies
One Star

Re: [resolved] Error while Creating Hive table with Serde using thiverow

Fixed the issue by escaping double quotes ('"' to '\"') and back slashes ("\" to "\\" and "\\" to "\\\\")

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now