yarn 2.7.1's source code contains the method in stacktrace. ( https://github.com/apache/hadoop/blob/branch-2.7.1/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java )
so the reason might be polluted yarn lib jar in the classpath, which is likely to happen when your hive and hbase depends on different yarn libs. to check this, open KYLIN_HOME/bin/kylin.sh, and modify #debug if encounter NoClassDefError #hbase classpath to #debug if encounter NoClassDefError hbase classpath this will print the classpath of Kylin, grep "yarn" in it to check what's going on. On Mon, Dec 28, 2015 at 3:21 PM, gudaoxuri <[email protected]> wrote: > Using the sample data to build job has a error(in the second step): > > java.lang.NoSuchMethodError: > > org.apache.hadoop.yarn.conf.YarnConfiguration.getServiceAddressConfKeys(Lorg/apache/hadoop/conf/Configuration;)Ljava/util/List; > at > org.apache.hadoop.yarn.conf.HAUtil.getConfKeyForRMInstance(HAUtil.java:239) > at > > org.apache.hadoop.yarn.conf.HAUtil.getConfValueForRMInstance(HAUtil.java:250) > at > > org.apache.hadoop.yarn.conf.HAUtil.getConfValueForRMInstance(HAUtil.java:262) > at > > org.apache.kylin.job.common.MapReduceExecutable.getRestStatusCheckUrl(MapReduceExecutable.java:191) > at > > org.apache.kylin.job.common.MapReduceExecutable.doWork(MapReduceExecutable.java:135) > at > > org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107) > at > > org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:51) > at > > org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107) > at > > org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:130) > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > Environment: > CentOS 7 by docker > kylin 1.2 > hadoop 2.7.1 > hbase 0.98.16.1 > hive 1.2.1 > > Thanks. > > <http://apache-kylin.74782.x6.nabble.com/file/n2937/%E6%8D%95%E8%8E%B7.png > > > > -- > View this message in context: > http://apache-kylin.74782.x6.nabble.com/NoSuchMethodError-org-apache-hadoop-yarn-conf-YarnConfiguration-getServiceAddressConfKeys-tp2937.html > Sent from the Apache Kylin mailing list archive at Nabble.com. > -- Regards, *Bin Mahone | 马洪宾* Apache Kylin: http://kylin.io Github: https://github.com/binmahone
