<?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 Tez error: org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event: org.apache.tez.runtime.api.Event in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198302#M68451</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to connect to hive using jdbc connection string and modified the execution engine to tez. &lt;/P&gt;&lt;P&gt;I get below error:&lt;/P&gt;&lt;P&gt;org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event:&lt;BR /&gt;org.apache.tez.runtime.api.Event&lt;/P&gt;&lt;P&gt;Connection string is:&lt;/P&gt;&lt;P&gt;jdbc:hive2://XXX.XX.XXX.XX:10001/dbname;transportMode=http;httpPath=cliservice?hive.execution.engine=tez;tez.queue.name=q1;&lt;/P&gt;&lt;P&gt;Can you help me how I can solve this error? Also please let me know if I need additional jar files for this to work?&lt;/P&gt;&lt;P&gt;This works fine when execution engine is map reduce. However, I have to make it working with Tez for better performance. &lt;/P&gt;&lt;P&gt;Thanks in advance for your advise.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Tushar&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 06:20:52 GMT</pubDate>
    <dc:creator>tusharnp</dc:creator>
    <dc:date>2017-09-22T06:20:52Z</dc:date>
    <item>
      <title>Tez error: org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event: org.apache.tez.runtime.api.Event</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198302#M68451</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to connect to hive using jdbc connection string and modified the execution engine to tez. &lt;/P&gt;&lt;P&gt;I get below error:&lt;/P&gt;&lt;P&gt;org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event:&lt;BR /&gt;org.apache.tez.runtime.api.Event&lt;/P&gt;&lt;P&gt;Connection string is:&lt;/P&gt;&lt;P&gt;jdbc:hive2://XXX.XX.XXX.XX:10001/dbname;transportMode=http;httpPath=cliservice?hive.execution.engine=tez;tez.queue.name=q1;&lt;/P&gt;&lt;P&gt;Can you help me how I can solve this error? Also please let me know if I need additional jar files for this to work?&lt;/P&gt;&lt;P&gt;This works fine when execution engine is map reduce. However, I have to make it working with Tez for better performance. &lt;/P&gt;&lt;P&gt;Thanks in advance for your advise.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Tushar&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:20:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198302#M68451</guid>
      <dc:creator>tusharnp</dc:creator>
      <dc:date>2017-09-22T06:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tez error: org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event: org.apache.tez.runtime.api.Event</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198303#M68452</link>
      <description>&lt;P&gt;We managed to resolve this issue by installing Tez client on hive server2 and setting up HADOOP_CLASSPATH accordingly. Hive server needs to be restarted after making all the changes and then we are able to run queries using Tez.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:24:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198303#M68452</guid>
      <dc:creator>tusharnp</dc:creator>
      <dc:date>2017-10-06T13:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tez error: org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event: org.apache.tez.runtime.api.Event</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198304#M68453</link>
      <description>&lt;P&gt;Can you elaborate about setting up the HADOOP_CLASSPATH?  What needs to be added to the classpath?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 05:56:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198304#M68453</guid>
      <dc:creator>anthony_valenti</dc:creator>
      <dc:date>2018-01-23T05:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tez error: org.apache.hive.service.cli.HiveSQLException: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event: org.apache.tez.runtime.api.Event</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198305#M68454</link>
      <description>&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;We have HADOOP_CLASSPATH setup in Ambari. Mainly you need tez client on Hive server and Tez libraries should be setup in HADOOP_CLASSPATH. This is what we have:&lt;BR /&gt;========================&lt;BR /&gt;export HADOOP_CLASSPATH=${HADOOP_CLASSPATH}${JAVA_JDBC_LIBS}:${MAPREDUCE_LIBS} &lt;/P&gt;&lt;P&gt;if [ -d "/usr/lib/tez" ]; &lt;BR /&gt;then
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/lib/tez/*:/usr/lib/tez/lib/*:/etc/tez/conf &lt;BR /&gt;fi&lt;BR /&gt;========================&lt;/P&gt;&lt;P&gt;Please let me know if this helps you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:09:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-org-apache-hive-service-cli-HiveSQLException-java/m-p/198305#M68454</guid>
      <dc:creator>tusharnp</dc:creator>
      <dc:date>2018-01-23T09:09:05Z</dc:date>
    </item>
  </channel>
</rss>

