[ 
https://issues.apache.org/jira/browse/KYLIN-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shaofeng SHI resolved KYLIN-1195.
---------------------------------
    Resolution: Not A Problem

This is concluded as a maven version issue; Vic was using ubuntu's default 
maven, which is v3.0; After upgrade to a newer version, the binary package 
doesn't have those jars; 

On my mac, the maven version is 3.2.3.


> Conflict of Jersey-core.jar caused ClassCastException when building a cube
> --------------------------------------------------------------------------
>
>                 Key: KYLIN-1195
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1195
>             Project: Kylin
>          Issue Type: Bug
>          Components: Job Engine
>    Affects Versions: v2.0
>         Environment: Os: Ubuntu 12.04.4 LTS
> Java: java version "1.7.0_67"
> Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
> HDP: 2.2.9.0-3393
>            Reporter: Vic Wang
>            Assignee: Shaofeng SHI
>
> java.lang.LinkageError: ClassCastException: attempting to 
> castjar:file:/usr/local/kylin/tomcat/webapps/kylin/WEB-INF/lib/jersey-core-1.9.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/usr/hdp/2.2.9.0-3393/hbase/lib/jersey-core-1.8.jar!/javax/ws/rs/ext/RuntimeDelegate.class
>       at 
> javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:116)
>       at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
>       at javax.ws.rs.core.MediaType.<clinit>(MediaType.java:44)
>       at com.sun.jersey.core.header.MediaTypes.<clinit>(MediaTypes.java:64)
>       at 
> com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:182)
>       at 
> com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:175)
>       at 
> com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
>       at com.sun.jersey.api.client.Client.init(Client.java:342)
>       at com.sun.jersey.api.client.Client.access$000(Client.java:118)
>       at com.sun.jersey.api.client.Client$1.f(Client.java:191)
>       at com.sun.jersey.api.client.Client$1.f(Client.java:187)
>       at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
>       at com.sun.jersey.api.client.Client.<init>(Client.java:187)
>       at com.sun.jersey.api.client.Client.<init>(Client.java:170)
>       at 
> org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.serviceInit(TimelineClientImpl.java:340)
>       at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>       at 
> org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceInit(YarnClientImpl.java:164)
>       at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>       at 
> org.apache.hadoop.mapred.ResourceMgrDelegate.serviceInit(ResourceMgrDelegate.java:102)
>       at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>       at 
> org.apache.hadoop.mapred.ResourceMgrDelegate.<init>(ResourceMgrDelegate.java:96)
>       at org.apache.hadoop.mapred.YARNRunner.<init>(YARNRunner.java:112)
>       at 
> org.apache.hadoop.mapred.YarnClientProtocolProvider.create(YarnClientProtocolProvider.java:34)
>       at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:95)
>       at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82)
>       at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75)
>       at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1267)
>       at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1263)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:415)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)
>       at org.apache.hadoop.mapreduce.Job.connect(Job.java:1262)
>       at org.apache.hadoop.mapreduce.Job.submit(Job.java:1291)
>       at 
> org.apache.kylin.engine.mr.common.AbstractHadoopJob.waitForCompletion(AbstractHadoopJob.java:129)
>       at 
> org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.run(FactDistinctColumnsJob.java:92)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
>       at 
> org.apache.kylin.engine.mr.common.MapReduceExecutable.doWork(MapReduceExecutable.java:119)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107)
>       at 
> org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:50)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107)
>       at 
> org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:124)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to