[
https://issues.apache.org/jira/browse/SPARK-11100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385413#comment-17385413
]
suryansh agnihotri commented on SPARK-11100:
--------------------------------------------
Hello [~wangxiaoyu]
I tried to use this patch in spark 3.0.2 for HA of thrift server.
[https://github.com/apache/spark/pull/9113]
Is the above PR sufficient to make it work , i was getting
java.lang.NoSuchMethodException while starting thrift server.
{code:java}
21/07/22 10:51:30 INFO AbstractService: Service:HiveServer2 is started.
21/07/22 10:51:30 ERROR HiveThriftServer2: Error starting HiveThriftServer2
java.lang.NoSuchMethodException:
org.apache.hive.service.server.HiveServer2.addServerInstanceToZooKeeper(org.apache.hadoop.hive.conf.HiveConf)
at java.lang.Class.getDeclaredMethod(Class.java:2130)
at
org.apache.spark.sql.hive.thriftserver.ReflectionUtils$.invoke(ReflectionUtils.scala:54)
at
org.apache.spark.sql.hive.thriftserver.HiveThriftServer2$.main(HiveThriftServer2.scala:118)
at
org.apache.spark.sql.hive.thriftserver.HiveThriftServer2.main(HiveThriftServer2.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at
org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:928)
at
org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
at
org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1007)
at
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1016){code}
I just changed "SparkSQLEnv.hiveContext.hiveconf" -> "executionHive.conf"
since hiveconf is not a part of SparkSQLEnv now.
you mentioned it was working for you in PR , did i miss anything?
> HiveThriftServer HA issue,HiveThriftServer not registering with Zookeeper
> -------------------------------------------------------------------------
>
> Key: SPARK-11100
> URL: https://issues.apache.org/jira/browse/SPARK-11100
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.5.1
> Environment: Hive-1.2.1
> Hadoop-2.6.0
> Reporter: Xiaoyu Wang
> Priority: Major
>
> hive-site.xml config:
> {code}
> <property>
> <name>hive.server2.support.dynamic.service.discovery</name>
> <value>true</value>
> </property>
> <property>
> <name>hive.server2.zookeeper.namespace</name>
> <value>sparkhiveserver2</value>
> </property>
> <property>
> <name>hive.zookeeper.quorum</name>
> <value>zk1,zk2,zk3</value>
> </property>
> {code}
> then start thrift server
> {code}
> start-thriftserver.sh --master yarn
> {code}
> In zookeeper znode "sparkhiveserver2" not found.
> hiveserver2 is working on this config!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]