我一直尝试通过Spark控制器2.0将Vora 1.4连接到HANA 1.0 SPS12。远程源可以添加到HANA工作室,但Vora表是不可见的。尝试刷新远程源时,Spark控制器错误日志中会出现类未找到错误。以下是错误消息:
*
17/05/23 10:11:46错误HanaSQLContext:无法设置Exended Store java.lang.ClassNotFoundException:at java.lang.Class.forName0(Native 方法)在java.lang.Class.forName(Class.java:264)at org.apache.spark.sql.hana.hdfs.store.HDFSStore $$ anonfun $ $申请2.适用(HDFSSt> ore.scala:212) 在 org.apache.spark.sql.hana.hdfs.store.HDFSStore $$ anonfun $ $申请2.适用(HDFSSt> ore.scala:187) 在scala.Option.getOrElse(Option.scala:120)at org.apache.spark.sql.hana.hdfs.store.HDFSStore $。适用(HDFSStore.scala:186) 在 org.apache.spark.sql.hana.HanaSQLContext.getExtendedStore(HanaSQLContext.sca> LA:104) 在 。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 $。适用(SessionManager.scala:136) 在 com.sap.hana.spark.core.session.SessionManager $ .startNewSession(SessionManag> er.scala:72) 在 com.sap.hana.spark.network.CommandHandler $$ anonfun $ $接收3.applyOrElse(COM> mandRouter.scala:549) at akka.actor.Actor $ class.aroundReceive(Actor.scala:467)at 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) 在 scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) 在 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)
*
任何人都有任何想法?
谢谢!
答案 0 :(得分: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)。
答案 1 :(得分: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