<?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: Adding Hive SerDe jar on SparkSQL Thrift Server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/38505#M11498</link>
    <description>&lt;P&gt;So you must call&amp;nbsp;add&amp;nbsp;jar /opt/cloudera/parcels/CDH/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core.jar before executing the DDL.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 16:18:58 GMT</pubDate>
    <dc:creator>WilliamQuby</dc:creator>
    <dc:date>2016-03-09T16:18:58Z</dc:date>
    <item>
      <title>Adding Hive SerDe jar on SparkSQL Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/34849#M11495</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;I have Hive tables that point to JSON files as contents and these tables need JSON SerDe jar (from &lt;A href="https://github.com/rcongiu/Hive-JSON-Serde" target="_blank" rel="nofollow"&gt;here&lt;/A&gt;) in order to query the tables. In Cloudera VM (Quickstart CDH 5.4.0), I can simply execute in Hive or Beeline CLI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pln"&gt;ADD JAR &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;/&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;local&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;path&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;gt;/&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;json&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;serde&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1.0&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;jar&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;and then I am able to perform SELECT queries on my Hive tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use these Hive tables as data sources for my Tableau (installed in Windows, my host machine), so I start the Thrift server in Spark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Hive tables that does not contain JSON (and does not require the SerDe), Tableau can connect and read the tables easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it comes to the Hive tables that contain JSON data, however, it looks like Tableau cannot find the Hive JSON SerDe jar, and I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="str"&gt;'java.lang.RuntimeException: MetaException(message:java.lang.ClassNotFoundException Class org.openx.data.jsonserde.JsonSerDe not found)'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;How do I add the Hive JSON SerDe jar so that Tableau can read the Hive JSON tables?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:51:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/34849#M11495</guid>
      <dc:creator>jdb</dc:creator>
      <dc:date>2022-09-16T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Hive SerDe jar on SparkSQL Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/35425#M11496</link>
      <description>CDH5 Hive includes a JSON SerDe from the HCatalog component. Please use that instead:&lt;BR /&gt;&lt;BR /&gt;Jar path: /opt/cloudera/parcels/CDH/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core.jar&lt;BR /&gt;DDL line snippet: ROW FORMAT SERDE "org.apache.hive.hcatalog.data.JsonSerDe"</description>
      <pubDate>Sat, 19 Dec 2015 18:18:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/35425#M11496</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-12-19T18:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Hive SerDe jar on SparkSQL Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/38504#M11497</link>
      <description>&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the library installed by default on the Hive process classpath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE TABLE jsontest(a string, b string)&lt;BR /&gt;ROW FORMAT SERDE "org.apache.hive.hcatalog.data.JsonSerDe"&lt;BR /&gt;STORED AS TEXTFILE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Cannot validate serde: org.apache.hive.hcatalog.data.JsonSerDe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:13:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/38504#M11497</guid>
      <dc:creator>WilliamQuby</dc:creator>
      <dc:date>2016-03-09T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Hive SerDe jar on SparkSQL Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/38505#M11498</link>
      <description>&lt;P&gt;So you must call&amp;nbsp;add&amp;nbsp;jar /opt/cloudera/parcels/CDH/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core.jar before executing the DDL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:18:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/38505#M11498</guid>
      <dc:creator>WilliamQuby</dc:creator>
      <dc:date>2016-03-09T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Hive SerDe jar on SparkSQL Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/54181#M11499</link>
      <description>&lt;P&gt;I am currently using the following hive version&lt;/P&gt;&lt;P&gt;hive-1.1.0-cdh5.8.0, however when i tried searching the hive-hcatalog-core.jar, I could not find any directory named&lt;/P&gt;&lt;P&gt;/opt/cloudera/parcels/CDH/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core.jar. Any idea where can I download it from? &lt;EM&gt;need it to run a json data &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 03:22:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/54181#M11499</guid>
      <dc:creator>Abhijeet87</dc:creator>
      <dc:date>2017-04-27T03:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Hive SerDe jar on SparkSQL Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/61120#M11500</link>
      <description>&lt;P&gt;You can search it from the console using command&lt;/P&gt;&lt;P&gt;$ locate *hive-hcatalog-core*.jar&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 08:15:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-Hive-SerDe-jar-on-SparkSQL-Thrift-Server/m-p/61120#M11500</guid>
      <dc:creator>iraz098</dc:creator>
      <dc:date>2017-10-20T08:15:33Z</dc:date>
    </item>
  </channel>
</rss>

