<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: regex pattern for hive regex serde in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160794#M123179</link>
    <description>&lt;P&gt;Thanks for the response &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I Tried below two ways, but that did not work...  &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"input.regex" = "\\^\^\\^\\^\\^\\^\\^\\^\\^\\^"&lt;/LI&gt;&lt;LI&gt;"input.regex" = "(\\^\^\\^\\^\\^\\^\\^\\^\\^\\^)"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any other thoughts i can try of ?&lt;/P&gt;&lt;P&gt;

&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 01:52:32 GMT</pubDate>
    <dc:creator>raja_aravapalli</dc:creator>
    <dc:date>2016-08-02T01:52:32Z</dc:date>
    <item>
      <title>regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160792#M123177</link>
      <description>&lt;P&gt;Can someone pls help me creating regex pattern to use for creating a hive table with RegEx Serde.... &lt;/P&gt;&lt;PRE&gt;I want hive regex table to be created with the pattern ^^^^^^^^^^ [10 anchor characters]  as a delimiter! I am not sure what would be the regex pattern of hive table for this!!&lt;/PRE&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 00:35:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160792#M123177</guid>
      <dc:creator>raja_aravapalli</dc:creator>
      <dc:date>2016-08-02T00:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160793#M123178</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3901/rajaaravapalli.html" nodeid="3901"&gt;@Raja A&lt;/A&gt;&lt;P&gt;I will try \\^ for each character. so basically&lt;/P&gt;&lt;P&gt;\\^\\^\\^\\^\\^\\^\\^\\^\\^\\^&lt;/P&gt;&lt;P&gt;Can you try this?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 00:43:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160793#M123178</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-08-02T00:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160794#M123179</link>
      <description>&lt;P&gt;Thanks for the response &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I Tried below two ways, but that did not work...  &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"input.regex" = "\\^\^\\^\\^\\^\\^\\^\\^\\^\\^"&lt;/LI&gt;&lt;LI&gt;"input.regex" = "(\\^\^\\^\\^\\^\\^\\^\\^\\^\\^)"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any other thoughts i can try of ?&lt;/P&gt;&lt;P&gt;

&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 01:52:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160794#M123179</guid>
      <dc:creator>raja_aravapalli</dc:creator>
      <dc:date>2016-08-02T01:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160795#M123180</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3901/rajaaravapalli.html" nodeid="3901"&gt;@Raja A&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In both cases the second one has only single slash. Can you try it with two slashes.  I think the first one should work if you just add two slashes. Also, why not try to make it work with only "^^" first. Figure out how to make ^^ work and then you can simply extend that to ^^^^^^^^^^.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 02:12:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160795#M123180</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-08-02T02:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160796#M123181</link>
      <description>&lt;P&gt;Thanks for your response and time &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried for ^^... its still not working...!! And, sorry, my above comment had a typo !!&lt;/P&gt;&lt;P&gt;Below is what i am trying !!&lt;/P&gt;&lt;PRE&gt;create external table &amp;lt;table_name&amp;gt; ( col1 string, col2 string )
ROW FORMAT SERDE "org.apache.hadoop.hive.contrib.serde2.RegexSerDe"
WITH SERDEPROPERTIES (
"input.regex" = "^^"
)
STORED AS TEXTFILE
LOCATION "&amp;lt;hdfs_path&amp;gt;";&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:05:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160796#M123181</guid>
      <dc:creator>raja_aravapalli</dc:creator>
      <dc:date>2016-08-02T04:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160797#M123182</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3901/rajaaravapalli.html" nodeid="3901"&gt;@Raja A&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I will try this on my machine when I get a chance, hopefully later today but I think it should&lt;/P&gt;&lt;PRE&gt;"input.regex"="^\\^\\^"&lt;/PRE&gt;&lt;P&gt;The first one signifies the beginning of a string and other two are for your matching pattern.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:10:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160797#M123182</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-08-02T04:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160798#M123183</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3901/rajaaravapalli.html" nodeid="3901"&gt;@Raja A&lt;/A&gt;, can you try &lt;/P&gt;&lt;PRE&gt;"input.regex"="(.*)\\^\\^\\^\\^\\^\\^\\^\\^\\^\\^(.*)"
&lt;/PRE&gt;&lt;P&gt;You need groups to map to your table fields.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:36:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160798#M123183</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-08-05T08:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160799#M123184</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the response. this works!!&lt;/P&gt;&lt;P&gt;However, this is working only when i am having 2 columns in the input... but not working when there are more columns !! 
&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:50:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160799#M123184</guid>
      <dc:creator>raja_aravapalli</dc:creator>
      <dc:date>2016-09-29T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: regex pattern for hive regex serde</title>
      <link>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160800#M123185</link>
      <description>&lt;P&gt;Well, you said you had only 2 columns &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; For more columns you can either change the regex, or try &lt;A href="https://cwiki.apache.org/confluence/display/Hive/MultiDelimitSerDe"&gt;MultiDelimitSerDe&lt;/A&gt; if you are on Hive-0.14 or newer. By the way, inspired by your question I wrote &lt;A href="https://community.hortonworks.com/articles/58591/using-regular-expressions-to-extract-fields-for-hi.html"&gt;an article about RegexSerDe&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:21:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/regex-pattern-for-hive-regex-serde/m-p/160800#M123185</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-09-29T17:21:46Z</dc:date>
    </item>
  </channel>
</rss>

