vvysotskyi commented on issue #1446: DRILL-6349: Drill JDBC driver fails on Java 1.9+ with NoClassDefFoundError: sun/misc/VM URL: https://github.com/apache/drill/pull/1446#issuecomment-436982612 @oleg-zinovev, Drill fails to start on Windows. There are two syntax errors in scripts: - `rem` should be used for comment, but you have specified `#`: `# Check that java is newer than 1.8`. - wrong quotes usage in `set DRILL_SHELL_JAVA_OPTS="%DRILL_SHELL_JAVA_OPTS% --add-opens java.base/java.lang=ALL-UNNAMED"`. It should be without quotes. But even when these problems are fixed, Drill fails to start with error: ``` Error: Failure in starting embedded Drillbit: java.lang.RuntimeException: ExitCodeException exitCode=-1073741515: (state=,code=0) java.sql.SQLException: Failure in starting embedded Drillbit: java.lang.RuntimeException: ExitCodeException exitCode=-1073741515: at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:139) at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:67) at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:68) at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:138) at org.apache.drill.jdbc.Driver.connect(Driver.java:72) at sqlline.DatabaseConnection.connect(DatabaseConnection.java:154) at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:202) at sqlline.Commands.connect(Commands.java:1165) at sqlline.Commands.connect(Commands.java:1055) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38) at sqlline.SqlLine.dispatch(SqlLine.java:643) at sqlline.SqlLine.initArgs(SqlLine.java:385) at sqlline.SqlLine.begin(SqlLine.java:485) at sqlline.SqlLine.start(SqlLine.java:233) at sqlline.SqlLine.main(SqlLine.java:175) Caused by: java.lang.RuntimeException: ExitCodeException exitCode=-1073741515: at org.apache.drill.exec.store.sys.store.LocalPersistentStore.put(LocalPersistentStore.java:186) at org.apache.drill.exec.store.sys.CaseInsensitivePersistentStore.put(CaseInsensitivePersistentStore.java:47) at org.apache.drill.exec.store.StoragePluginsHandlerService.lambda$loadPlugins$1(StoragePluginsHandlerService.java:93) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.apache.drill.exec.store.StoragePluginsHandlerService.lambda$loadPlugins$2(StoragePluginsHandlerService.java:93) at java.base/java.util.Optional.ifPresent(Optional.java:183) at org.apache.drill.exec.store.StoragePluginsHandlerService.loadPlugins(StoragePluginsHandlerService.java:93) at org.apache.drill.exec.store.StoragePluginRegistryImpl.init(StoragePluginRegistryImpl.java:111) at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:200) at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:130) ... 18 more Caused by: ExitCodeException exitCode=-1073741515: at org.apache.hadoop.util.Shell.runCommand(Shell.java:585) at org.apache.hadoop.util.Shell.run(Shell.java:482) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:776) at org.apache.hadoop.util.Shell.execCommand(Shell.java:869) at org.apache.hadoop.util.Shell.execCommand(Shell.java:852) at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:733) at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileOutputStream.<init>(RawLocalFileSystem.java:225) at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileOutputStream.<init>(RawLocalFileSystem.java:209) at org.apache.hadoop.fs.RawLocalFileSystem.createOutputStreamWithMode(RawLocalFileSystem.java:307) at org.apache.hadoop.fs.RawLocalFileSystem.create(RawLocalFileSystem.java:296) at org.apache.hadoop.fs.RawLocalFileSystem.create(RawLocalFileSystem.java:328) at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSOutputSummer.<init>(ChecksumFileSystem.java:398) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:461) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:440) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:911) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:892) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:789) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:778) at org.apache.drill.exec.store.dfs.DrillFileSystem.create(DrillFileSystem.java:180) at org.apache.drill.exec.store.sys.store.LocalPersistentStore.put(LocalPersistentStore.java:183) ... 27 more ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
