Apache镜头:启动服务器时出错

时间:2016-05-23 19:42:10

标签: java apache hadoop pom.xml

我正在尝试在我的服务器上启动Apache Lens。我得到了JDK和叉子HIVE,就像它需要的那样。 当我运行Apache Lens Server(bin / lens-ctl start)时,我在日志中收到此错误:

> 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)

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

谢谢!

1 个答案:

答案 0 :(得分:0)

如果您选择了hive 2.1.x,镜头 版本2.5.0-bin还没有用。请选择hive 0.13.x 你继续。

有关详细信息,请参阅电子邮件主题: https://www.mail-archive.com/user@lens.apache.org/msg00102.html