Thank your for your information, Yerui! On Fri, Jul 31, 2015 at 6:25 PM, Yerui Sun <[email protected]> wrote:
> Hi,liam > I just met your same problem a few days ago and fixed it. The difference > is hive-0.13.1 in our enviroment, but I think the reason is same. > The reason is that org.apache.hadoop.mapreduce.JobContext is class in > hadoop-1 but changed to interface in hadoop-2, and your > hive-hcatalog-core.jar must be complied on hadoop-1. > As I know, hive-hcatalog-core-0.13.1.jar in maven.apache.org is > complied on hadoop-1, but not clear about hive 1.0.1. I think you should > have a try, to re-complie your hive-hcatalog-core jar on hadoop-2. > > Good luck and looking forward your good news -:) > > > Best Regards, > Yerui Sun > [email protected] > > > > > 在 2015年7月31日,16:40,liam <[email protected]> 写道: > > > > Hi, > > Can anyone help this? > > Thx! > > > > 2015-07-30 18:11 GMT+08:00 liam <[email protected]>: > > > >> Hi,all > >> I failed in building the sample cube “kylin_sales_cube”,I found the > error > >> message from the logs(showed bellow). > >> Did anyone get the same issue before? Any help would be highly > >> appreciated. > >> I use : hadoop(2.6.0) , hive(1.0.1) , kylin(0.7.2) , hbase(1.0.1.1) > >> > >> - > >> - > >> > >> ——Here :ERROR Message----- > >> > >> - [pool-7-thread-2]:[2015-07-30 > >> > 17:48:20,435][ERROR][org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:137)] > >> - ExecuteException job:2da67e50-02f7-4a11-aa67-2a6a5dff5f36 > >> - org.apache.kylin.job.exception.ExecuteException: > >> org.apache.kylin.job.exception.ExecuteException: > >> java.lang.IncompatibleClassChangeError: Found interface > >> org.apache.hadoop.mapreduce.JobContext, but class was expected > >> - at > >> > org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:110) > >> - at > >> > org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:133) > >> - 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) > >> - Caused by: org.apache.kylin.job.exception.ExecuteException: > >> java.lang.IncompatibleClassChangeError: Found interface > >> org.apache.hadoop.mapreduce.JobContext, but class was expected > >> - at > >> > org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:110) > >> - at > >> > org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:50) > >> - at > >> > org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:106) > >> - ... 4 more > >> - Caused by: java.lang.IncompatibleClassChangeError: Found interface > >> org.apache.hadoop.mapreduce.JobContext, but class was expected > >> - at > >> > org.apache.hive.hcatalog.mapreduce.HCatBaseInputFormat.getSplits(HCatBaseInputFormat.java:102) > >> - at > >> > org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:493) > >> - at > >> > org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:510) > >> - at > >> > org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:394) > >> - at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285) > >> - at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282) > >> - 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:1614) > >> - at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282) > >> - at > >> > org.apache.kylin.job.hadoop.AbstractHadoopJob.waitForCompletion(AbstractHadoopJob.java:123) > >> - at > >> > org.apache.kylin.job.hadoop.cube.FactDistinctColumnsJob.run(FactDistinctColumnsJob.java:80) > >> - at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > >> - at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) > >> - at > >> > org.apache.kylin.job.common.MapReduceExecutable.doWork(MapReduceExecutable.java:112) > >> - at > >> > org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:106) > >> - ... 6 more > >> > >> > >> > > -- Regards, *Bin Mahone | 马洪宾* Apache Kylin: http://kylin.io Github: https://github.com/binmahone
