0

我一直在尝试通过 Spark 控制器 2.0 将 Vora 1.4 连接到 HANA 1.0 SPS12。可以将远程源添加到 HANA 工作室,但 Vora 表是不可见的。尝试刷新远程源时,Spark 控制器错误日志中出现类未找到错误。以下是错误消息:

*

23 年 5 月 17 日 10:11:46 错误 HanaSQLContext: 无法设置扩展存储 java.lang.ClassNotFoundException: at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java: 264)在 org.apache.spark.sql.hana.hdfs.store 的 org.apache.spark.sql.hana.hdfs.store.HDFSStore$$anonfun$apply$2.apply(HDFSSt>ore.scala:212)。 HDFSStore$$anonfun$apply$2.apply(HDFSSt>ore.scala:187) at scala.Option.getOrElse(Option.scala:120) at org.apache.spark.sql.hana.hdfs.store.HDFSStore$.apply (HDFSStore.scala:186) at org.apache.spark.sql.hana.HanaSQLContext.getExtendedStore(HanaSQLContext.sca>la:104) at com.sap.hana.spark.core.session.Session.(SessionManager.scala: 191) 在 com.sap.hana.spark.core.session.Session.(SessionManager.scala:166) 在 com.sap.hana.spark.core.session.Session$.apply(SessionManager.scala:136) 在 com .sap.hana.spark.core.session.SessionManager$.startNewSession(SessionManag>er.scala:72) at com.sap.hana.spark.network.CommandHandler$$anonfun$receive$3.applyOrElse(Com>mandRouter.scala: 549)在akka.actor.Actor$class.aroundReceive(Actor.scala:467)在com.sap.hana.spark.network.CommandHandler.aroundReceive(CommandRouter.scala:> 432)在akka.actor.ActorCell.receiveMessage( ActorCell.scala:516) at akka.actor.ActorCell.invoke(ActorCell.scala:487) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) at akka.dispatch.Mailbox.run(Mailbox.scala:220 ) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDis>patcher.scala:397) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask( ForkJoinPool.java:1>339) 在 scala。concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) 在 scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java>:107)

*

任何人有任何想法?

谢谢!

4

2 回答 2

0

为了解决这个问题,我卸载了 Spark 控制器 2.0 并安装了 Spark 控制器 1.6。Spark 控制器错误日志中没有更多错误消息。但问题仍然存在,Vora 表在 HANA 工作室的远程源中是不可见的。HANA 端的索引服务器日志也没有错误。似乎 Vora 1.4 与 Spark 控制器存在严重问题,因为 1.4 不在任何版本的 Spark 控制器兼容性矩阵中。我希望有人已经找到了解决此问题的方法。

Spark 控制器 1.6 日志:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.3.0-37/spark/lib/spark-assembly-1.6.2.2.5.3.0-37-hadoop2.7.3.2.5.3.0-37.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.3.0-37/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]
 INFO [main] (HanaESConfig.scala:67) - Loaded HANA Extended Store Configuration
Found Spark Libraries. Proceeding with Current Class Path
17/06/07 13:20:48 INFO Server: Starting Spark Controller
17/06/07 13:21:01 INFO CommandRouterDefault: Connecting to Vora Engine
17/06/07 13:21:01 INFO CommandRouterDefault: Initialized Router!
17/06/07 13:21:01 INFO CommandRouterDefault: Server started
17/06/07 13:21:28 INFO VoraClientFactory: returning a Vora catalog client of this Vora catalog server: bdesxi14.localdomain:20298
17/06/07 13:21:28 INFO CatalogFactory: returning a Vora catalog client of this Vora catalog server: bdesxi14.localdomain:20298
17/06/07 13:21:28 INFO CBinder: searching for compat-sap-c++.so at /opt/rh/SAP/lib64/compat-sap-c++.so
17/06/07 13:21:28 INFO CBinder: loading compat package from /opt/rh/SAP/lib64/compat-sap-c++.so
17/06/07 13:21:28 INFO CBinder: searching for libpam.so.0 at /lib64/libpam.so.0
17/06/07 13:21:28 INFO CBinder: loading libpam.so.0 from /lib64/libpam.so.0
17/06/07 13:21:28 INFO CBinder: loading library libprotobuf.so
17/06/07 13:21:28 INFO CBinder: loading library libprotoc.so
17/06/07 13:21:28 INFO CBinder: loading library libtbbmalloc.so
17/06/07 13:21:28 INFO CBinder: loading library libtbb.so
17/06/07 13:21:28 INFO CBinder: loading library libkrb5support.so
17/06/07 13:21:28 INFO CBinder: loading library libk5crypto.so
17/06/07 13:21:28 INFO CBinder: loading library libcom_err.so
17/06/07 13:21:28 INFO CBinder: loading library libkrb5.so
17/06/07 13:21:28 INFO CBinder: loading library libgsasl.so
17/06/07 13:21:28 INFO CBinder: loading library libgssapi_krb5.so
17/06/07 13:21:28 INFO CBinder: loading library libgssrpc.so
17/06/07 13:21:28 INFO CBinder: loading library libv2runtime.so
17/06/07 13:21:28 INFO CBinder: loading library libv2auth.so
17/06/07 13:21:28 INFO CBinder: loading library libv2net.so
17/06/07 13:21:28 INFO CBinder: loading library libv2catalog_connector.so
于 2017-06-07T17:42:30.207 回答
0

我建议使用新的 VoraODBC 连接(又名 SAP HANA Wire 连接)将 HANA 连接到 Vora 1.4。这样可以轻松访问新的关系引擎和磁盘引擎中的表,而无需额外安装任何东西。

请参阅 Vora 1.4 开发人员指南章节“7.9 从 SAP HANA 访问 SAP Vora”(请参阅​​ https://help.sap.com/viewer/p/SAP_VORA)。

于 2017-06-02T21:02:34.553 回答