启动嵌入式Drillbit(windows)时,Apache Drill 1.6.0失败

时间:2016-05-03 08:21:18

标签: windows apache-drill

我无法在Windows机器上启动嵌入式钻取并出现以下错误。我已经检查了存在Jackson-databind-2.7.1.jar的第三方文件夹中的罐子,但仍然说它没有找到类别例外。你能帮帮我吗?

  

错误:启动嵌入式Drillbit失败:UNSUPPORTED_OPERATION错误:尝试加载路径drill.exec.storage.registry中请求的类型为org.apache.drill.exec.store.StoragePluginRegistry类的实例时失败。

     

[错误ID:4e654256-f63d-434f-8f41-981892a776b5](state =,code = 0)   java.sql.SQLException:启动嵌入式Drillbit失败:UNSUPPORTED_OPERATION错误:尝试加载路径drill.exec.storage.registry中请求的类型为org.apache.drill.exec.store.StoragePluginRegistry的类的实例时失败。

     

[错误ID:4e654256-f63d-434f-8f41-981892a776b5]           在org.apache.drill.jdbc.impl.DrillConnectionImpl。(DrillConnectionImpl.java:120)           在org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:64)           在org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69)           at net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126)           在org.apache.drill.jdbc.Driver.connect(Driver.java:72)           at sqlline.DatabaseConnection.connect(DatabaseConnection.java:167)           at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:213)           at sqlline.Commands.connect(Commands.java:1083)           at sqlline.Commands.connect(Commands.java:1015)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)           at java.lang.reflect.Method.invoke(Method.java:606)           at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36)           at sqlline.SqlLine.dispatch(SqlLine.java:742)           at sqlline.SqlLine.initArgs(SqlLine.java:528)           at sqlline.SqlLine.begin(SqlLine.java:596)           at sqlline.SqlLine.start(SqlLine.java:375)           at sqlline.SqlLine.main(SqlLine.java:268)   引起:org.apache.drill.common.exceptions.UserException:UNSUPPORTED_OPERATION错误:尝试加载路径drill.exec.storage.registry中请求的org.apache.drill.exec.store.StoragePluginRegistry类型的实例时失败

     

[错误ID:4e654256-f63d-434f-8f41-981892a776b5]           at org.apache.drill.common.exceptions.UserException $ Builder.build(UserException.java:543)           在org.apache.drill.common.config.DrillConfig.getInstance(DrillConfig.java:88)           在org.apache.drill.exec.server.DrillbitContext。(DrillbitContext.java:85)           在org.apache.drill.exec.work.WorkManager.start(WorkManager.java:105)           在org.apache.drill.exec.server.Drillbit.run(Drillbit.java:110)           在org.apache.drill.jdbc.impl.DrillConnectionImpl。(DrillConnectionImpl.java:118)           ......还有18个   引起:java.lang.reflect.InvocationTargetException           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)           at java.lang.reflect.Constructor.newInstance(Constructor.java:526)           在org.apache.drill.common.config.DrillConfig.getInstance(DrillConfig.java:86)           ......还有22个   引起:java.lang.NoSuchMethodError:com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava / lang / Class;)Lcom / fasterxml / jackson / databind / ObjectReader;           在org.apache.drill.exec.serialization.JacksonSerializer。(JacksonSerializer.java:32)           在org.apache.drill.exec.store.sys.PersistentStoreConfig.newJacksonBuilder(PersistentStoreConfig.java:81)           在org.apache.drill.exec.store.StoragePluginRegistryImpl。(StoragePluginRegistryImpl.java:90)           ......还有27个   apache drill 1.6.0   "这不是你爷爷的s#"

1 个答案:

答案 0 :(得分:1)

该问题与HADOOP_HOME环境变量有关 如果已设置,则嵌入式钻取功能无法正常启动 设置了我的HADOOP_HOME,因为我的机器上有时使用Spark或Hadoop MapReduce。

所以,有了 设置HADOOP_HOME = 然后 sqlline.bat -u" jdbc:drill:zk = local"

初始化完成,Drillbit启动