我试图在Windows 7上运行Apache Drill,我有文档中提供的要求但是当我在终端中运行它时出现此错误:
Error: Failure in starting embedded Drillbit: java.lang.RuntimeException: Unable to deserialize "/tmp/drill/sys.storage_plugins/dfs.sys.drill" (state=,code=0)
java.sql.SQLException: Failure in starting embedded Drillbit: java.lang.RuntimeException: Unable to deserialize "/tmp/drill/sys.storage_plugins/dfs.sys.drill"
at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:109)
at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:66)
at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69)
at net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126)
at org.apache.drill.jdbc.Driver.connect(Driver.java:78)
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:734)
at sqlline.SqlLine.initArgs(SqlLine.java:519)
at sqlline.SqlLine.begin(SqlLine.java:587)
at sqlline.SqlLine.start(SqlLine.java:366)
at sqlline.SqlLine.main(SqlLine.java:259)
Caused by: java.lang.RuntimeException: Unable to deserialize "/tmp/drill/sys.storage_plugins/dfs.sys.drill"
at org.apache.drill.exec.store.sys.local.FilePStore.get(FilePStore.java:140)
at org.apache.drill.exec.store.sys.local.FilePStore$Iter$DeferredEntry.getValue(FilePStore.java:219)
at org.apache.drill.exec.store.StoragePluginRegistry.createPlugins(StoragePluginRegistry.java:168)
at org.apache.drill.exec.store.StoragePluginRegistry.init(StoragePluginRegistry.java:132)
at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:244)
at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:100)
... 18 more
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
at [Source: [B@6c8d3583; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:1351)
at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1252)
at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:912)
at org.apache.drill.exec.store.sys.serialize.JacksonSerializer.deserialize(JacksonSerializer.java:44)
at org.apache.drill.exec.store.sys.local.FilePStore.get(FilePStore.java:138)
... 23 more
当我去tmp文件夹时,我只找到一个文件
有谁知道如何解决这个问题? 谢谢
答案 0 :(得分:2)
删除/移动文件夹/tmp/drill/sys.storage_plugins
&amp;重启演习。它会在启动钻取时创建文件夹。现在通过比较旧的&amp; amp;新。
它对我有用。
答案 1 :(得分:1)
谢谢你们, 当我用其他计算机在同一位置创建的文件替换/tmp/drill/sys.storage_plugins时,它仍然有用,我仍然不知道为什么这个不能创建所有这些文件,但至少现在它可以工作了!
答案 2 :(得分:-2)
这是2018年03 02,这个错误仍然出现在人们(像我一样)试图安装&amp;在Windows 10上以嵌入式模式运行Apache Drill ...
这里为我工作的东西:安装只钻到
C:\阿帕奇钻-1.12.0 *
请注意,这会创建一个
C:\ tmp \ sys.storage_plugins \目录比删除这个目录更重要,我只是将这个目录暂时移到我的笔记本电脑的桌面上;
然后我重新启动了Drill Shell,如下所示......
启动一个常见的Windows 10 cmd控制台
cd到C:\ apache-drill-1.12.0 \ bin \ EXECUTE这个命令: sqlline sqlline.bat -u“jdbc:drill:zk = local; schema = dfs”
结果:我得到以下(WONDERFUL)初始化输出:
DRILL_ARGS - “sqlline.bat -u jdbc:drill:zk = local; schema = dfs”计算HADOOP_CLASSPATH ...未检测到HBASE_HOME ...计算钻取类路径...拾取_JAVA_OPTIONS:-Xmx512M -Xms512M Mar 02,20188 8:36:33 PM org.glassfish.jersey.server.ApplicationHandler initialize INFO:Initiating Jersey application,version Jersey:2.8 2014-04-29 01:25:26 ...属性“url”是需要apache drill 1.12.0“人们可以设想并相信什么,钻可以查询”
0:jdbc:drill:zk = local&gt;
从这里我发布了“SHOW DATABASES”;命令......它工作了!
0:jdbc:drill:zk = local&gt;显示数据库; + --------------------- + | SCHEMA_NAME | + --------------------- + | INFORMATION_SCHEMA | | cp.default | | dfs.default | | dfs.root | | dfs.tmp | | sys | + ---------------------选择+ 6行(5.797秒) 0:jdbc:drill:zk = local&gt;