我正在尝试在服务器上启动Apache Lens。我安装了JDK,并安装了所需的前叉HIVE。
当我运行Apache Lens服务器(bin / lens-ctl启动)时,我在日志中收到此错误:

> SLF4Jption in thread "main" java.lang.NoSuchMethodError:
> org.apache.hive.service.cli.CLIService: method <init>()V not found
> path contains multiple SLF4J bindings. SLF4J: Found binding in
> [jar:file:/home/apps/apache-lens-2.5.0-beta-bin/server/webapp/lens-server/WEB-INF/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/home/apps/forked-hive/apache-hive-2.1.1-inm-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation. SLF4J: Actual binding is of type
> [ch.qos.logback.classic.util.ContextSelectorStaticBinder] Exception in
> thread "main" java.lang.NoSuchMethodError:
> org.apache.hive.service.cli.CLIService: method <init>()V not found
>         at org.apache.lens.server.LensServices.init(LensServices.java:186)
>         at org.apache.lens.server.LensServer.startServices(LensServer.java:134)
>         at org.apache.lens.server.LensServer.<init>(LensServer.java:85)
>         at org.apache.lens.server.LensServer.createLensServer(LensServer.java:74)
>         at org.apache.lens.server.LensServer.main(LensServer.java:190)

有人遇到过此错误吗?关于如何解决这个问题的任何想法?

谢谢!

最佳答案

如果选择了 hive 2.1.x,请选择镜头
版本2.5.0-bin目前还不能使用。请选择 hive 0.13.x
您继续。

有关详细信息,请参见电子邮件线程:
https://www.mail-archive.com/[email protected]/msg00102.html

10-06 14:08