SAP HANA Vora:无法启动SparkController

时间:2016-04-21 11:06:12

标签: apache-spark vora

最近,我开始在AWS上使用SAP HANA Vora 1.0。我配置了hanaes-site.xml文件来读取Vora表,但是当尝试使用./hanaes start命令启动Controller时,我收到此错误:

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/usr/sap/spark/controller/lib/spark-sap-datasources-1.0.0-assembly.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

16/04/21 10:29:31 INFO HanaESConfig: Loaded HANA Extended Store Configuration
Spark assembly is not available in class path. Creating Custom class loader from HDFS
Binding with hive-site.xml foind at /usr/sap/spark/controller/conf

16/04/21 10:29:34 INFO Server: Starting Spark Controller

16/04/21 10:29:34 INFO HanaESConfig: Loaded HANA Extended Store Configuration

16/04/21 10:29:51 ERROR LiveListenerBus: SparkListenerBus has already stopped! Dropping event SparkListenerBlockManagerAdded(1461234591659,BlockManagerId(2, master.cluster, 41198),1111511531)

你能帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

“类路径中没有Spark程序集”

您应该将spark程序集文件放在/ usr / sap / spark / controller / lib / external中,并确保hanaes.xml具有属性:

<property>
 <name>sap.hana.es.spark.yarn.jar</name>
 <value>file:///usr/sap/spark/controller/lib/external/spark-assembly-<spark version>-hadoop<hadoop version>.jar</value>
 <final>true</final>
</property>

如果已在群集上安装了Spark,则可以在$ SPARK_HOME / lib中找到spark程序集文件。 如果您的群集上未安装Spark,则可以从http://spark.apache.org/downloads.html

下载

由于

============更新=================

在hanaes-site.xml中,“sap.hana.es.lib.location”应指向“hdfs:/// sap / hana / spark / libs / thirdparty /”。

它应该如下所示:

<property>
 <name>sap.hana.es.spark.yarn.jar</name>
 <value>file:///usr/sap/spark/controller/lib/external/spark-assembly-1.4.1-hadoop2.6.0.jar</value>
 <final>true</final>
</property>
<property>
 <name>sap.hana.es.server.port</name>
 <value>7860</value>
 <final>true</final>
</property>
<property>
 <name>sap.hana.es.lib.location</name>
 <value>hdfs:///sap/hana/spark/libs/thirdparty/</value>
 <final>true</final>
</property>

此外,我还建议您使用Vora 1.2 AWS developer edition