java - Apache Lens:启动服务器时出错

标签 java apache hadoop pom.xml

我正在尝试在服务器上启动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/user@lens.apache.org/msg00102.html

关于java - Apache Lens:启动服务器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37399240/

相关文章:

java - 同步多个异步请求

java - 使用仿射变换在条形图上绘制曲线箭头

php - Apache 在运行 Controller 的索引页时崩溃

java - 如何使用 Apache POI 旋转电子表格单元格中的文本?

hadoop - 如何根据 Hive 中的另一个表 b 替换表 a 中的值?

hadoop - "Starting flush of map output"在 hadoop 映射任务中花费很长时间

java - 重绘用作背景的 JPanel 时如何保持其他组件在前面?

c - 以编程方式检测本地 Web 服务器是否已挂起

java - 在Hadoop上运行Java程序

java - 迷宫解算器,仅对角线移动