kylin 启动的时候,后台报错如下:
2016-08-10 10:51:53,405 INFO [localhost-startStop-1] zookeeper.ZooKeeper:100 : Client environment:user.home=/root
478 2016-08-10 10:51:53,406 INFO [localhost-startStop-1] zookeeper.ZooKeeper:100 : Client environment:user.dir=/home/ljin/apache-kylin-1.5.3-bin/bin
483 2016-08-10 10:51:54,452 ERROR [localhost-startStop-1] context.ContextLoader:307 : Context initialization failed
485 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:452)
486 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
487 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
488 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
489 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
490 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
491 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
492 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
493 at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
494 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
495 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
496 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
497 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
498 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
499 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
502 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
503 at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
504 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
510 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
524 at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:278)
526 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:852)
527 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:446)
528 ... 23 more
530 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:452)
531 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
538 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
539 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
540 at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
541 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
542 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
543 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
544 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
545 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
620 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
621 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
622 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
623 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
624 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
625 ... 104 more
626 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclService': Invocation of init method failed; nested exception is ja va.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HBaseAdmin.<init>(Lorg/apache/hadoop/hbase/client/HConnection;)V
627 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.ja va:135)
628 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.j ava:394)
629 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
630 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
631 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
632 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
633 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
634 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
635 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
636 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
637 ... 116 more
638 Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HBaseAdmin.<init>(Lorg/apache/hadoop/hbase/client/HConnection;)V
639 at org.apache.kylin.storage.hbase.HBaseConnection.createHTableIfNeeded(HBaseConnection.java:239)
640 at org.apache.kylin.storage.hbase.HBaseConnection.createHTableIfNeeded(HBaseConnection.java:231)
641 at org.apache.kylin.rest.security.RealAclHBaseStorage.prepareHBaseTable(RealAclHBaseStorage.java:47)
642 at org.apache.kylin.rest.security.MockAclHBaseStorage.prepareHBaseTable(MockAclHBaseStorage.java:52)
643 at org.apache.kylin.rest.service.AclService.init(AclService.java:121)
644 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
645 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
646 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
647 at java.lang.reflect.Method.invoke(Method.java:606)
648 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
649 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcesso r.java:299)
650 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.ja va:132)
651 ... 125 more
检查过了,hbase shell 启动正常;HBASE服务也正常,麻烦看下怎么回事;
我还在环境变量里面配置了环境变量:
export KYLIN_HOME=/home/ljin/apache-kylin-1.5.3-bin
90 export HADOOP_HOME=/usr/hdp/2.3.2.0-2950/hadoop
91 export HBASE_HOME=/usr/hdp/2.3.2.0-2950/hbase
92 export HADOOP_HDFS_HOME=/usr/hdp/2.3.2.0-2950/hadoop-hdfs
93 export HIVE_HOME=/usr/hdp/2.3.2.0-2950/hive
94 export HADOOP_COMMON_HOME=/usr/hdp/2.3.2.0-2950/hadoop
95 export HADOOP_YARN_HOME=/usr/hdp/2.3.2.0-2950/hadoop-yarn
96 export ZOOKEEPER_HOME=/usr/hdp/2.3.2.0-2950/zookeeper
97 export HADOOP_MAPRED_HOME=/usr/hdp/2.3.2.0-2950/hadoop-mapreduce
98 export hive_dependency=/etc/hive/2.3.2.0-2950/0:/usr/hdp/2.3.2.0-2950/hive/lib/*
99 export JAVA_HOME=/usr/jdk64/jdk1.7.0_67
638行:<spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;"> Causedby:java.lang.NoSuchMethodError:org.apache.hadoop.hbase.client.HBaseAdmin.<init>(Lorg/apache/hadoop/hbase/client/HConnection;)V 你用的kylin和hbase版本不对:你看看你下载的kylin是对应hbase1.x还是。0.9X的您好,我的hbase版本是hbase1.1,下载的kylin版本是apache-kylin-1.5.3-bin.tar.gz为什么还会报这个问题?谢谢
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。