<?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: XML and Hive parsing error with Serde. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186549#M83258</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/44207/tito765.html" nodeid="44207"&gt;@Marshal Tito&lt;/A&gt;!&lt;BR /&gt;I'm glad you made it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;So, regarding the aux jar, did you set this through ambari? If so, you should be able to use the jar without add.&lt;/P&gt;&lt;P&gt;Otherwise, try to take these steps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/48734/how-to-permanently-add-custom-jar-files-to-hive-in.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/48734/how-to-permanently-add-custom-jar-files-to-hive-in.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 05:11:13 GMT</pubDate>
    <dc:creator>vmurakami</dc:creator>
    <dc:date>2018-09-12T05:11:13Z</dc:date>
    <item>
      <title>XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186542#M83251</link>
      <description>&lt;P&gt;I am trying to ingest a simple xml to hive table. Table is created but when executing select query  on that table getting below error:&lt;/P&gt;&lt;P&gt;org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: RuntimeException java.lang.ClassNotFoundException: com.ibm.spss.hive.serde2.xml.XmlInputFormat&lt;/P&gt;&lt;P&gt;I followed this article: &lt;A href="https://community.hortonworks.com/content/kbentry/972/hive-and-xml-pasring.html"&gt;https://community.hortonworks.com/content/kbentry/972/hive-and-xml-pasring.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also modified the value :&lt;/P&gt;&lt;P&gt;hive.tez.input.format= org.apache.hadoop.hive.ql.io.CombineHiveInputFormat which was before&lt;/P&gt;&lt;P&gt;hive.tez.input.format= org.apache.hadoop.hive.ql.io.HiveInputFormat&lt;/P&gt;&lt;P&gt;Any help to resolve this issue greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;PRE&gt;&lt;SMALL&gt; org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: RuntimeException java.lang.ClassNotFoundException: com.ibm.spss.hive.serde2.xml.XmlInputFormat&lt;/SMALL&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Sep 2018 22:47:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186542#M83251</guid>
      <dc:creator>tito765</dc:creator>
      <dc:date>2018-09-06T22:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186543#M83252</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/140/nsabharwal.html"&gt;Neeraj Sabharwal&lt;/A&gt; would you please look into this? i am getting error while following your article "xml and HIVE parsing". &lt;/P&gt;&lt;P&gt;To check jar i got this: &lt;/P&gt;&lt;P&gt;hive&amp;gt; list jars; &lt;/P&gt;&lt;P&gt;/tmp/hivexmlserde-1.0.5.3.jar &lt;/P&gt;&lt;P&gt;also executed command to see the specific class:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[root@sandbox-hdp tmp]# jar -tf hivexmlserde-1.0.5.3.jar | grep -icom.ibm.spss.hive.serde2.xml.XmlInputFormat
com/ibm/spss/hive/serde2/xml/XmlInputFormat$XmlRecordReader.class
com/ibm/spss/hive/serde2/xml/XmlInputFormat.class&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:52:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186543#M83252</guid>
      <dc:creator>tito765</dc:creator>
      <dc:date>2018-09-07T19:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186544#M83253</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/44207/tito765.html" nodeid="44207"&gt;@Marshal Tito&lt;/A&gt;!&lt;BR /&gt;Could you check the following? &lt;BR /&gt;1 - Hive user has permission to read the jar? Try to chmod 777 to the jar.&lt;BR /&gt;2 - Every time that you run a query that needs the jar, did you add the jar first in the same session?&lt;BR /&gt;(cause using add jar command, you will need to add the jar for every query that hit the table with the specific jar) &lt;BR /&gt;3 - One test that you can give it a shot is to add the jar in the hive.aux.jars.path (to take effect you will need to restart hive afterwards).&lt;BR /&gt;&lt;BR /&gt;Lastly, If nothing works, I'd try to enable the debug for HiveCLI and take the same steps and watch if something shows up on the logs in the console:&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;hive --hiveconf hive.root.logger=DEBUG,console&lt;/PRE&gt;&lt;P&gt;ps: I've also followed the article and was working fine for me.&lt;BR /&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 12:47:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186544#M83253</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-09-08T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186545#M83254</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/79158/vmurakami.html"&gt;Vinicius Higa Murakami&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you so much for your detailed reply. I tried all the first 3 steps except the 4th one. Now when i am executing any Select statement,  getting below error:&lt;/P&gt;&lt;PRE&gt;Failed to fetch next batch for the Resultset&lt;/PRE&gt;&lt;PRE&gt;org.apache.hive.service.cli.HiveSQLException: java.io.IOException: java.lang.NullPointerException&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Sep 2018 00:21:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186545#M83254</guid>
      <dc:creator>tito765</dc:creator>
      <dc:date>2018-09-11T00:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186546#M83255</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/44207/tito765.html" nodeid="44207"&gt;@Marshal Tito&lt;/A&gt;! &lt;BR /&gt;Which message do you face if you enable the DEBUG? &lt;BR /&gt;And also, just to confirm, do you see your jar added in the aux libs?&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;hive -e "set hive.aux.jars.path;"&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:40:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186546#M83255</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-09-11T20:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186547#M83256</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/79158/vmurakami.html"&gt;Vinicius Higa Murakami&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks a lot. Finally it worked. The last problem was due to ” instead of " in the xml file, which was preventing Serde to read the xml file. Thank you and i do appreciate your kind help.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:51:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186547#M83256</guid>
      <dc:creator>tito765</dc:creator>
      <dc:date>2018-09-11T20:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186548#M83257</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/79158/vmurakami.html"&gt;Vinicius Higa Murakami&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I have included the jar in hive-site.xml with property name &amp;lt;hive.aux.jars.path&amp;gt;. my property is like below:But still from Ambari every time i need to add the jar file to execute any query. I want to write query without "add jar" each time. how can i do that?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.aux.jars.path&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;/tmp/hivexmlserde-1.0.5.3.jar&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 02:33:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186548#M83257</guid>
      <dc:creator>tito765</dc:creator>
      <dc:date>2018-09-12T02:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186549#M83258</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/44207/tito765.html" nodeid="44207"&gt;@Marshal Tito&lt;/A&gt;!&lt;BR /&gt;I'm glad you made it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;So, regarding the aux jar, did you set this through ambari? If so, you should be able to use the jar without add.&lt;/P&gt;&lt;P&gt;Otherwise, try to take these steps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/48734/how-to-permanently-add-custom-jar-files-to-hive-in.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/48734/how-to-permanently-add-custom-jar-files-to-hive-in.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 05:11:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186549#M83258</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-09-12T05:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: XML and Hive parsing error with Serde.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186550#M83259</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/79158/vmurakami.html"&gt;Vinicius Higa Murakami&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your response. It worked just executing the below query in Hive View @ Ambari.&lt;/P&gt;&lt;P&gt;add jar hdfs:///tmp/hivexmlserde-1.0.5.3.jar;&lt;/P&gt;&lt;P&gt;Thank you so much.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:30:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/XML-and-Hive-parsing-error-with-Serde/m-p/186550#M83259</guid>
      <dc:creator>tito765</dc:creator>
      <dc:date>2018-09-12T21:30:18Z</dc:date>
    </item>
  </channel>
</rss>

