<?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: when we start spark2 thrift server , its start for ashort time - 30 sec and then fail back. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242059#M203862</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive-exec-1.21.2.2.6.5.0-292.jar is present at the specified location.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;could you please suggest the next step ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;lhdcsi02v spark2]# locate hive-exec | grep jar&lt;/P&gt;&lt;P&gt;/u01/tmp/hadoop-unjar9078871880138055540/META-INF/maven/org.apache.hive/hive-exec&lt;/P&gt;&lt;P&gt;/u01/tmp/hadoop-unjar9078871880138055540/META-INF/maven/org.apache.hive/hive-exec/pom.properties&lt;/P&gt;&lt;P&gt;/u01/tmp/hadoop-unjar9078871880138055540/META-INF/maven/org.apache.hive/hive-exec/pom.xml&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive/lib/hive-exec-1.2.1000.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive/lib/hive-exec.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive2/lib/hive-exec-2.1.0.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive2/lib/hive-exec.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/oozie/oozie-server/webapps/oozie/WEB-INF/lib/hive-exec-1.2.1000.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/pig/lib/hive-exec-1.2.1000.2.6.5.0-292-core.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-exec-1.2.1000.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/usr/hdp/2.6.5.0-292/spark2/jars/hive-exec-1.21.2.2.6.5.0-292.jar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 17:50:01 GMT</pubDate>
    <dc:creator>vishal_bohra</dc:creator>
    <dc:date>2019-06-10T17:50:01Z</dc:date>
    <item>
      <title>when we start spark2 thrift server , its start for ashort time - 30 sec and then fail back.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242057#M203860</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;when we start spark2 thrift server , its start for ashort time - 30 sec and then fail back.&lt;/P&gt;&lt;P&gt;I have attched the spark2 logs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;
19/06/07 11:22:16 INFO HiveThriftServer2: HiveThriftServer2 started

19/06/07 11:22:16 INFO UserGroupInformation: Login successful for user hive/lhdcsi02v.production.local@production.local using keytab file /etc/security/keytabs/hive.service.keytab

19/06/07 11:22:16 ERROR ThriftCLIService: Error starting HiveServer2: could not start ThriftBinaryCLIService

java.lang.NoSuchMethodError: org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server.startDelegationTokenSecretManager(Lorg/apache/hadoop/conf/Configuration;Ljava/lang/Object;Lorg/apache/hadoop/hive/thrift/HadoopThriftAuthBridge$Server$ServerMode;)V

at org.apache.hive.service.auth.HiveAuthFactory.&amp;lt;init&amp;gt;(HiveAuthFactory.java:125)

at org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:57)

at java.lang.Thread.run(Thread.java:748)

19/06/07 11:22:16 INFO HiveServer2: Shutting down HiveServer2

19/06/07 11:22:16 INFO AbstractService: Service:ThriftBinaryCLIService is stopped.

19/06/07 11:22:16 INFO AbstractService: Service:OperationManager is stopped.

19/06/07 11:22:16 INFO AbstractService: Service:SessionManager is stopped.

19/06/07 11:22:16 INFO SparkUI: Stopped Spark web UI at &lt;A href="http://lhdcsi02v.production.local:4041" target="_blank"&gt;http://lhdcsi02v.production.local:4041&lt;/A&gt;

19/06/07 11:22:26 WARN ShutdownHookManager: ShutdownHook '$anon$2' timeout, java.util.concurrent.TimeoutException

java.util.concurrent.TimeoutException

at java.util.concurrent.FutureTask.get(FutureTask.java:205)

at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:67)

19/06/07 11:22:26 ERROR Utils: Uncaught exception in thread pool-1-thread-1

java.lang.InterruptedException

at java.lang.Object.wait(Native Method)

at java.lang.Thread.join(Thread.java:1252)

at java.lang.Thread.join(Thread.java:1326)

at org.apache.spark.scheduler.AsyncEventQueue.stop(AsyncEventQueue.scala:133)

at org.apache.spark.scheduler.LiveListenerBus$$anonfun$stop$1.apply(LiveListenerBus.scala:219)

at org.apache.spark.scheduler.LiveListenerBus$$anonfun$stop$1.apply(LiveListenerBus.scala:219)

at scala.collection.Iterator$class.foreach(Iterator.scala:893)

at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)

at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)

at scala.collection.AbstractIterable.foreach(Iterable.scala:54)

at org.apache.spark.scheduler.LiveListenerBus.stop(LiveListenerBus.scala:219)

at org.apache.spark.SparkContext$$anonfun$stop$6.apply$mcV$sp(SparkContext.scala:1922)

at org.apache.spark.util.Utils$.tryLogNonFatalError(Utils.scala:1357)

at org.apache.spark.SparkContext.stop(SparkContext.scala:1921)

at org.apache.spark.sql.hive.thriftserver.SparkSQLEnv$.stop(SparkSQLEnv.scala:66)

at org.apache.spark.sql.hive.thriftserver.HiveThriftServer2$$anonfun$main$1.apply$mcV$sp(HiveThriftServer2.scala:82)

at org.apache.spark.util.SparkShutdownHook.run(ShutdownHookManager.scala:216)

at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ShutdownHookManager.scala:188)

at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1$$anonfun$apply$mcV$sp$1.apply(ShutdownHookManager.scala:188)

at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1$$anonfun$apply$mcV$sp$1.apply(ShutdownHookManager.scala:188)

at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1988)

at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1.apply$mcV$sp(ShutdownHookManager.scala:188)

at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1.apply(ShutdownHookManager.scala:188)

at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1.apply(ShutdownHookManager.scala:188)

at scala.util.Try$.apply(Try.scala:192)

at org.apache.spark.util.SparkShutdownHookManager.runAll(ShutdownHookManager.scala:188)

at org.apache.spark.util.SparkShutdownHookManager$$anon$2.run(ShutdownHookManager.scala:178)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

19/06/07 11:22:26 INFO AbstractService: Service:CLIService is stopped.

19/06/07 11:22:26 INFO AbstractService: Service:HiveServer2 is stopped.&lt;/PRE&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt;,&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html"&gt;@Geoffrey Shelton Okot&lt;/A&gt;,&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html"&gt;@Neeraj Sabharwal&lt;/A&gt;,&lt;A rel="user" href="https://community.cloudera.com/users/18735/asnaik.html"&gt;@Akhil S Naik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Plaese help.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/109259-yarn-sitexml.txt"&gt;yarn-site.xml.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishal Bohra&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/109200-spark2-logs.txt"&gt;spark2_logs.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 21:00:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242057#M203860</guid>
      <dc:creator>vishal_bohra</dc:creator>
      <dc:date>2019-06-08T21:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: when we start spark2 thrift server , its start for ashort time - 30 sec and then fail back.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242058#M203861</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/103153/vishalbohra.html"&gt;@Vishal Bohra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you recently placed any new hive-exec jar in your file system? Or Upgraded HDP by any chance?&lt;/P&gt;&lt;P&gt;What is your HDP version ?   Can you please share the output of the following command from the spark2 thrift server host?&lt;/P&gt;&lt;PRE&gt;# hdp-select | grep -e "hive\|spark"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We see the following error:&lt;/P&gt;&lt;PRE&gt;java.lang.NoSuchMethodError: org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server.startDelegationTokenSecretManager(Lorg/apache/hadoop/conf/Configuration;Ljava/lang/Object;Lorg/apache/hadoop/hive/thrift/HadoopThriftAuthBridge$Server$ServerMode;)V&lt;/PRE&gt;&lt;P&gt;Above error indicates that you might have an incorrect verioon of JARs in the classpath (which might have happened when some of your JARs might not be upgraded or mistakenly some jars of incorrect version are copied to the spark2 thrift server jars lib)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Based on the error it looks like you might have a slightly &lt;STRONG&gt;conflicting version of "hive-exec*.jar" &lt;/STRONG&gt;JAR inside the host where you are running the "spark2 thrift server"&lt;/P&gt;&lt;P&gt;Can you please check scan your file system and find out which all places you have this JAR and what is the version? You can use the following approach to locate/find the "hive-exec" jars?&lt;/P&gt;&lt;PRE&gt;# yum install mlocate -y
# updatedb
# locate hive-exec | grep jar&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Once you find the JAR then try checking the version is correct or not ? (It should be matching your HDP version)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example if you are using HDP 2.6.5.0-291 version then the hive-exec jar should look like following "hive-exec-1.21.2.2.6.5.0-292.jar".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can run the following command to find out the Signature of the method which is listed in the above error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Example in HDP 2.6.5 checking the signature of "startDelegationTokenSecretManager" method&lt;/P&gt;&lt;PRE&gt;# /usr/jdk64/jdk1.8.0_112/bin/javap -cp /usr/hdp/current/spark2-thriftserver/jars/hive-exec-1.21.2.2.6.5.0-292.jar "org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge\$Server" | grep startDelegationTokenSecretManager

&amp;nbsp; public void startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration, java.lang.Object, org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$ServerMode) throws java.io.IOException;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Similarly check which "hive-exec-*.jar" JAR has a slightly different signature in your filesystem. Then try to remove the conflicting JAR from the classpath and then try again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2019 07:59:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242058#M203861</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-06-09T07:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: when we start spark2 thrift server , its start for ashort time - 30 sec and then fail back.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242059#M203862</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive-exec-1.21.2.2.6.5.0-292.jar is present at the specified location.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;could you please suggest the next step ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;lhdcsi02v spark2]# locate hive-exec | grep jar&lt;/P&gt;&lt;P&gt;/u01/tmp/hadoop-unjar9078871880138055540/META-INF/maven/org.apache.hive/hive-exec&lt;/P&gt;&lt;P&gt;/u01/tmp/hadoop-unjar9078871880138055540/META-INF/maven/org.apache.hive/hive-exec/pom.properties&lt;/P&gt;&lt;P&gt;/u01/tmp/hadoop-unjar9078871880138055540/META-INF/maven/org.apache.hive/hive-exec/pom.xml&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive/lib/hive-exec-1.2.1000.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive/lib/hive-exec.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive2/lib/hive-exec-2.1.0.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/hive2/lib/hive-exec.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/oozie/oozie-server/webapps/oozie/WEB-INF/lib/hive-exec-1.2.1000.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/pig/lib/hive-exec-1.2.1000.2.6.5.0-292-core.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.6.5.0-292/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-exec-1.2.1000.2.6.5.0-292.jar&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/usr/hdp/2.6.5.0-292/spark2/jars/hive-exec-1.21.2.2.6.5.0-292.jar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 17:50:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242059#M203862</guid>
      <dc:creator>vishal_bohra</dc:creator>
      <dc:date>2019-06-10T17:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: when we start spark2 thrift server , its start for ashort time - 30 sec and then fail back.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242060#M203863</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The spark2 thrift server is started.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But now i am getting the below errors in the spakr2 logs.&lt;/P&gt;&lt;P&gt;Logs attached too.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.lang.RuntimeException: Could not load shims in class org.apache.hadoop.hive.schshim.FairSchedulerShim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.schshim.FairSchedulerShim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If i follow the below link then again i will be in same situation like above.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/150164/errorjavalangruntimeexception-could-not-load-shims.html"&gt;https://community.hortonworks.com/content/supportkb/150164/errorjavalangruntimeexception-could-not-load-shims.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/109322-spark2-logs.txt"&gt;spark2_logs.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 20:33:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/when-we-start-spark2-thrift-server-its-start-for-ashort-time/m-p/242060#M203863</guid>
      <dc:creator>vishal_bohra</dc:creator>
      <dc:date>2019-06-10T20:33:00Z</dc:date>
    </item>
  </channel>
</rss>

