Невозможно инициализировать ThriftServer - PullRequest
0 голосов
/ 12 июня 2019

Я пытаюсь начать экономию с дерби, используя start-thriftserver.sh.

У меня есть эта ошибка, и я не могу понять, почему.

starting org.apache.spark.sql.hive.thriftserver.HiveThriftServer2, logging to /path-to-spark/logs/spark--org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-7139db860b38.out
failed to launch: nice -n 0 bash /path-to-spark/bin/spark-submit --class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2 --name Thrift JDBC/ODBC Server
    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:879)
    at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:197)
    at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:227)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:136)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

Другая информация:

Версия Spark: 2.3.0

Версия Hive: 1.1.0

Версия Derby: 10.12.1.1

Hive.site.xml:

<configuration>
   <property>
       <name>javax.jdo.option.ConnectionURL</name>
       <value>jdbc:derby://ip:1527/metastore_db;create=true</value>
       <description>JDBC connect string for a JDBC metastore</description>
   </property>
   <property>
       <name>javax.jdo.option.ConnectionDriverName</name>
       <value>org.apache.derby.jdbc.ClientDriver</value>
       <description>Driver class name for a JDBC metastore</description>
   </property>
   <property>
       <name>hive.metastore.warehouse.dir</name>
       <value>/user/hive/warehouse</value>
   </property>
   <property>
       <name>hive.metastore.uris</name>
       <value>thrift://ip:9083</value>
   </property>
</configuration>

Редактировать:

с spark-submit --class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2 ошибка:

Exception in thread "main" java.lang.IllegalAccessError: tried to access class org.apache.hive.service.server.HiveServer2$ServerOptionsProcessor from class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2$
    at org.apache.spark.sql.hive.thriftserver.HiveThriftServer2$.main(HiveThriftServer2.scala:75)
    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:879)
    at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:197)
    at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:227)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:136)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
2019-06-12 11:14:54 INFO  ShutdownHookManager:54 - Shutdown hook called
2019-06-12 11:14:54 INFO  ShutdownHookManager:54 - Deleting directory /tmp/spark-34e8f225-a326-4bd6-9db9-36322a3a7e43
...