<?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: java.sql.SQLException Error while processing statement : Failed Execution Error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-sql-SQLException-Error-while-processing-statement/m-p/156563#M57057</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16585/deepthi2897.html" nodeid="16585"&gt;@Sai Deepthi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you pelase check if you have done the following before executing the job?&lt;/P&gt;&lt;PRE&gt;ADD JAR /usr/hdp/2.5.0.0-1245/hive2/lib/json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also make sure that the JAR exist and has correct read permission.&lt;/P&gt;&lt;PRE&gt;ls  -lart   /usr/hdp/2.5.0.0-1245/hive2/lib/json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Also
 i noticed that you are using "org.openx.data.jsonserde.JsonSerDe" , may
 be you can try using the "org.apache.hive.hcatalog.data.JsonSerDe" just incase you would like to use it.&lt;/P&gt;&lt;PRE&gt;java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 00:16:12 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-03-15T00:16:12Z</dc:date>
    <item>
      <title>java.sql.SQLException Error while processing statement : Failed Execution Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-sql-SQLException-Error-while-processing-statement/m-p/156562#M57056</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13615-capture2.png" style="width: 1072px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20896i2D42581F165AA699/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13615-capture2.png" alt="13615-capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am trying to follow &lt;A href="https://hortonworks.com/hadoop-tutorial/how-to-refine-and-visualize-sentiment-data/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hortonworks.com/hadoop-tutorial/how-to-refine-and-visualize-sentiment-data/&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;When I am running the query SELECT * FROM tweets_clean LIMIT 100; I am getting this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_1489508279233_0005_1_01, diagnostics=[Task failed, taskId=task_1489508279233_0005_1_01_000000, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.RuntimeException: Map operator initialization failed at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:173) at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:139) at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:347) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:194) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:185) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:185) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:181) at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: Map operator initialization failed at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.init(MapRecordProcessor.java:262) at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:149) ... 14 more Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:350) at org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:385) at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.init(MapRecordProcessor.java:224) ... 15 more Caused by: java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2114) at org.apache.hadoop.hive.ql.plan.PartitionDesc.getDeserializer(PartitionDesc.java:143) at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:316) ... 17 more ], TaskAttempt 1 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.RuntimeException: Map operator initialization failed at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:173) at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:139) at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:347) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:194) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:185) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:185) at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:181) at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: Map operator initialization failed at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.init(MapRecordProcessor.java:262) at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:149) ... 14 more Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:350) at org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:385) at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.init(MapRecordProcessor.java:224) ... 15 more Caused by: java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2114) at org.apache.hadoop.hive.ql.plan.PartitionDesc.getDeserializer(PartitionDesc.java:143) at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:316) ... 17 more ], TaskAttempt 2 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.RuntimeException: Map operator initialization failed at &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could anyone help me where I am going Wrong?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deepthi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:15:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-sql-SQLException-Error-while-processing-statement/m-p/156562#M57056</guid>
      <dc:creator>deepthi2897</dc:creator>
      <dc:date>2022-09-16T11:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException Error while processing statement : Failed Execution Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-sql-SQLException-Error-while-processing-statement/m-p/156563#M57057</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16585/deepthi2897.html" nodeid="16585"&gt;@Sai Deepthi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you pelase check if you have done the following before executing the job?&lt;/P&gt;&lt;PRE&gt;ADD JAR /usr/hdp/2.5.0.0-1245/hive2/lib/json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also make sure that the JAR exist and has correct read permission.&lt;/P&gt;&lt;PRE&gt;ls  -lart   /usr/hdp/2.5.0.0-1245/hive2/lib/json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Also
 i noticed that you are using "org.openx.data.jsonserde.JsonSerDe" , may
 be you can try using the "org.apache.hive.hcatalog.data.JsonSerDe" just incase you would like to use it.&lt;/P&gt;&lt;PRE&gt;java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 00:16:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-sql-SQLException-Error-while-processing-statement/m-p/156563#M57057</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-15T00:16:12Z</dc:date>
    </item>
  </channel>
</rss>

