kylin:web页面登录404: ERROR [localhost-startStop-1] context.ContextLoader : Context initialization faile

kylin安装后进行启动,然后登录kylin的web页面,出现了404问题,查看kylin的日志后发现报错:

2021-02-13 08:22:21,791 ERROR [localhost-startStop-1] context.ContextLoader:350 : Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.ClassCastException: com.fasterxml.jackson.datatype.jsr310.JavaTimeModule cannot be cast to com.fasterxml.jackson.databind.Module
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.ClassCastException: com.fasterxml.jackson.datatype.jsr310.JavaTimeModule cannot be cast to com.fasterxml.jackson.databind.Module

问题原因:

出现这个问题的主要原因就是jar包的兼容性问题

在spark依赖包中已经存在hive-metastore-2.3.7.jar,但其版本为2.3.7,与我们安装的hive版本3.1.2不一样,因此存在jar包冲突的原因

image-20210214165016112

解决办法:

修改/opt/module/kylin/bin/find-spark-dependency.sh,排除冲突的jar包

需要增加的内容:! -name '*jackson*' ! -name '*metastore*'

注意前后保留空格

image-20210214165402157

如果之前启动过,且报错了,则要删除之前的缓存文件

在bin目录下:

rm cached-*

image-20210214165559586

然后查看hbase当中是否有kylin的元数据表,相应的删除掉

image-20210214165739393

此时重启kylin,解决问题

注意:

每一次kylin的配置修改最好都删除上述文件,不然可能报错

猜你喜欢

转载自blog.csdn.net/zmzdmx/article/details/113809180