Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Need help with Hive RegEx

Highlighted

Need help with Hive RegEx

New Contributor

Hi,

 

I need some help to create regex for log files to be stored in Hive tables. I have seen examples but could not really get how to create regex for a new log format.

Is there any guide which can help to create regex for Hive ? Also, if any link is available which can be used to test regex before using in Hive, it will be helpful.

Note : I am using RegexSerDe clas for processing.

 

Thanx in advance.

 

Praveen

1 REPLY 1

Re: Need help with Hive RegEx

Contributor
RegexSerDe uses java regex. You may take a look at the javadoc:
http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html

Don't have an account?
Coming from Hortonworks? Activate your account here