Hi Team,
I have installed and setup Kylin on my HDP 2.6 cluster as per the Kylin
documentation. I am able to build the cubes using Map-Red but, not with Spark.
It always fails right after I click the build and gives a popup "Oops
org/apache/spark/api/java/function/Function". I looked at "kylin.log" too and
it says the same in stack trace pasted below. I have a copy of hive-site.xml
under KYLIN_HOME/hadoop-conf where the value of "hive.execution.engine" is set
to "mr". Please help me understand what other things to check for this error.
"020-10-19 09:43:24,998 INFO [FetcherRunner 890157894-46]
threadpool.DefaultFetcherRunner:115 : Job Fetcher: 0 should running, 0 actual
running, 0 stopped, 0 ready, 27 already succeed, 2 error, 7 discarded, 0 others
2020-10-19 09:43:25,717 INFO [http-bio-7070-exec-1] cube.CubeManager:373 :
Updating cube instance 'kylin_sales_cube'
2020-10-19 09:43:25,718 WARN [http-bio-7070-exec-1] model.Segments:463 : NEW
segment start does not fit/connect with other segments:
kylin_sales_cube[20120101000000_20140101000000]
2020-10-19 09:43:25,718 WARN [http-bio-7070-exec-1] model.Segments:465 : NEW
segment end does not fit/connect with other segments:
kylin_sales_cube[20120101000000_20140101000000]
2020-10-19 09:43:25,719 DEBUG [http-bio-7070-exec-1]
cachesync.CachedCrudAssist:223 : Saving CubeInstance at
/cube/kylin_sales_cube.json
2020-10-19 09:43:25,728 DEBUG [pool-6-thread-1] cachesync.Broadcaster:119 :
Servers in the cluster: [localhost:7070]
2020-10-19 09:43:25,728 DEBUG [pool-6-thread-1] cachesync.Broadcaster:129 :
Announcing new broadcast to all: BroadcastEvent{entity=cube, event=update,
cacheKey=kylin_sales_cube}
2020-10-19 09:43:25,731 DEBUG [http-bio-7070-exec-2] cachesync.Broadcaster:267
: Broadcasting UPDATE, cube, kylin_sales_cube
2020-10-19 09:43:25,732 ERROR [http-bio-7070-exec-1]
controller.CubeController:405 : org/apache/spark/api/java/function/Function
java.lang.NoClassDefFoundError: org/apache/spark/api/java/function/Function
at
org.apache.kylin.engine.spark.SparkBatchCubingJobBuilder2.<init>(SparkBatchCubingJobBuilder2.java:55)
at
org.apache.kylin.engine.spark.SparkBatchCubingEngine2.createBatchCubingJob(SparkBatchCubingEngine2.java:44)
at
org.apache.kylin.engine.EngineFactory.createBatchCubingJob(EngineFactory.java:61)
at
org.apache.kylin.rest.service.JobService.submitJobInternal(JobService.java:258)
at
org.apache.kylin.rest.service.JobService.submitJob(JobService.java:226)
at
org.apache.kylin.rest.controller.CubeController.buildInternal(CubeController.java:402)
at
org.apache.kylin.rest.controller.CubeController.rebuild(CubeController.java:362)
at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:209)
at
com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:244)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:165)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1195)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:654)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:319)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException:
org.apache.spark.api.java.function.Function
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1951)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1794)
... 82 more"
This is a confidential email. Tesco may monitor and record all emails. The
views expressed in this email are those of the sender and not Tesco. Tesco
Stores Limited Company Number: 519500 Registered in England Registered Office:
Tesco House, Shire Park, Kestrel Way, Welwyn Garden City, AL7 1GA VAT
Registration Number: GB 220 4302 31