kylin 启动问题

发布于 2021-12-01 17:50:41 字数 10944 浏览 884 评论 3

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沦落红尘 2021-12-04 12:08:53

您好,我的hbase 版本是 hbase 1.1 ,下载的kylin版本是apache-kylin-1.5.3-bin.tar.gz 为什么还会报这个问题? 谢谢

反话 2021-12-04 06:27:28

你看看你下载的kylin是对应hbase1.x还是。0.9X的

终遇你 2021-12-01 22:09:51

638行:
 Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HBaseAdmin.<init>(Lorg/apache/hadoop/hbase/client/HConnection;)V    你用的kylin和hbase版本不对:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文