Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Problem in case of creation of the table manually

$
0
0

Hello! Help me, please!

I use the hCatalog 1.2.1 version,Hadoop 2.7.1, of Sandbox 2.3.2.
I try to make the table manually to store in it Glassfish application server log.
I fill necessary fields according to requirements:
I select SerDe (Enter a specialized serialization implementation.). Further
1) SerDe Name – org.apache.hadoop.hive.contrib.serde2.RegexSerDe,
2) Serde properties – “input.regex” = “(.+)(\|)(.+)(\|)(.+)(\|)(.*)(\|)(.*)(\|)(.*)(\|)(.*)(\|)(.*)”,”output.format.string” = “%1$s %2$s %3$s %4$s %5$s %6$s %7$s %8$s %9$s %10$s %11$s %12$s %13$s %14$s %15$s”
3) The file format – Text File
4) I create columns with the string type;
Check of the regular expression works correctly, see a screenshot
https://gyazo.com/6bbf3492c0c742f90dde43ccb15203f0
But on the last step in case of creation of the table there is an error – HCatClient error on create table: { “error”: “Unrecognized character escape’ |’ (code 124\n at [Source: org .eclipse.jetty.server.HttpInput@7c73de7d; line: 9, column: 25]” } (error 500).

How it is correct to me to create the table with such regular expression?


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>