详细信息:
Apache Drill 1.17.0
Windows 10 64位
Java JDK1.8.0_241
新安装。无法使Apache Drill成功加载。
命令行:c:\ Users \ floodb \ Software \ Drill \ apache-drill-1.17.0 \ bin>已嵌入钻头
接收到错误:错误:启动嵌入式Drillbit失败:UNSUPPORTED_OPERATION错误:尝试加载路径rill.exec请求的类型为org.apache.drill.exec.store.StoragePluginRegistry的类的实例时失败.storage.registry。
[错误ID:7c1b33eb-7a27-4e39-af06-5ba22e5ffae6](状态=,代码= 0)java.sql.SQLException:启动嵌入式Drillbit失败:UNSUPPORTED_OPERATION错误:尝试加载路径rill.exec.storage.registry请求的类型为org.apache.drill.exec.store.StoragePluginRegistry的类的实例时失败。
没有设置'hadoop_home'环境变量(如StackOverflow上其他文章所建议)。
部分日志:
2020-02-19 15:55:42,315 [main]信息o.drill.common.util.GuavaPatcher-为Google的秒表打补丁旧的HBase Guava版本。 2020-02-19 15:55:42,319 [main]信息o.a.drill.common.util.GuavaPatcher-为Google的Closeables打补丁旧的HBase Guava版本。 2020-02-19 15:55:42,333 [main]信息o.a.drill.common.util.GuavaPatcher-Google的前提条件是修补以容纳新方法。 2020-02-19 15:55:42,693 [main]信息o.a.drill.common.config.DrillConfig-配置和插件文件在32ms内确定。基本配置:-jar:文件:/ C:/Users/floodb/Software/Drill/apache-drill-1.17.0/jars/drill-common-1.17.0.jar!/drill-default.conf
(删除了日志行)
2020-02-19 15:55:45,134 [main] INFO o.a.d.c.s.persistence.ScanResult-为org.apache.drill.common.logical.data.LogicalOperator加载22个类花费了4毫秒2020-02-19 15:55:45,138 [main] INFO o.a.d.c.s.persistence.ScanResult-加载org.apache.drill.common.logical.StoragePluginConfig的12个类花费了3ms2020-02-19 15:55:45,146 [main] INFO o.a.d.c.s.persistence.ScanResult-加载org.apache.drill.common.logical.FormatPluginConfig的15个类花费了7ms 2020-02-1915:55:45,179 [main] INFO o.a.drill.common.config.DrillConfig-用户发生错误:尝试加载类实例时失败请求的类型为org.apache.drill.exec.store.StoragePluginRegistry的类型路径drill.exec.storage.registry。 (空值)org.apache.drill.common.exceptions.UserException:UNSUPPORTED_OPERATION错误:尝试加载实例时失败org.apache.drill.exec.store.StoragePluginRegistry类型的类在路径rill.exec.storage.registry中请求。
[错误ID:7c1b33eb-7a27-4e39-af06-5ba22e5ffae6]org.apache.drill.common.exceptions.UserException $ Builder.build(UserException.java:637)在org.apache.drill.common.config.DrillConfig.getInstance(DrillConfig.java:92)在org.apache.drill.exec.server.DrillbitContext。(DrillbitContext.java:113)在org.apache.drill.exec.work.WorkManager.start(WorkManager.java:116)在org.apache.drill.exec.server.Drillbit.run(Drillbit.java:221)处org.apache.drill.jdbc.impl.DrillConnectionImpl。(DrillConnectionImpl.java:134)在org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:67)在org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:67)在org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:138)在org.apache.drill.jdbc.Driver.connect(Driver.java:75)处sqlline.DatabaseConnection.connect(DatabaseConnection.java:135)在sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)在sqlline.Commands.connect(Commands.java:1364)在sqlline.Commands.connect(Commands.java:1244)位于sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.invoke(Method.java:498)在sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)在sqlline.SqlLine.dispatch(SqlLine.java:730)处sqlline.SqlLine.initArgs(SqlLine.java:410)在sqlline.SqlLine.begin(SqlLine.java:515)在sqlline.SqlLine.start(SqlLine.java:267)在sqlline.SqlLine.main(SqlLine.java:206)由以下原因引起:java.lang.reflect.InvocationTargetException:为nullsun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)在java.lang.reflect.Constructor.newInstance(Constructor.java:423)在org.apache.drill.common.config.DrillConfig.getInstance(DrillConfig.java:88)...省略了22个共同的框架java.lang.UnsatisfiedLinkError:org.apache.hadoop.io.nativeio.NativeIO $ Windows.access0(Ljava / lang / String; I)Z在org.apache.hadoop.io.nativeio.NativeIO $ Windows.access0(Native方法)org.apache.hadoop.io.nativeio.NativeIO $ Windows.access(NativeIO.java:645)在org.apache.hadoop.fs.FileUtil.canRead(FileUtil.java:1230)在org.apache.hadoop.fs.FileUtil.list(FileUtil.java:1435)在org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:493)在org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1868)在org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1910)在org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:678)在org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1868)在org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1910)在org.apache.drill.exec.store.dfs.DrillFileSystem.listStatus(DrillFileSystem.java:563)在org.apache.drill.exec.util.FileSystemUtil.listNonRecursive(FileSystemUtil.java:224)在org.apache.drill.exec.util.FileSystemUtil.list(FileSystemUtil.java:209)在org.apache.drill.exec.util.FileSystemUtil.listFiles(FileSystemUtil.java:104)在org.apache.drill.exec.util.DrillFileSystemUtil.listFiles(DrillFileSystemUtil.java:86)在org.apache.drill.exec.store.sys.store.LocalPersistentStore.getRange(LocalPersistentStore.java:121)在org.apache.drill.exec.store.sys.BasePersistentStore.getAll(BasePersistentStore.java:27)在org.apache.drill.exec.store.StoragePluginRegistryImpl.initPluginsSystemTable(StoragePluginRegistryImpl.java:277)在org.apache.drill.exec.store.StoragePluginRegistryImpl。(StoragePluginRegistryImpl.java:90)...省略了27个常见框架2020-02-19 15:55:46,199 [main] INFOo.apache.drill.exec.server.Drillbit-关闭已完成(1018毫秒)。
详细信息:Apache Drill 1.17.0 Windows 10 64位Java JDK1.8.0_241全新安装。无法使Apache Drill成功加载。命令行:c:\ Users \ floodb \ Software \ Drill \ apache-drill-1 ....
问题是已安装32位版本的Java JDK。如果遇到此问题,请检查以确保安装了64位版本的Java。