问题
I am using the most recent version of drill on windows machines in embedded mode. However, I always get "no current connection" errors when sending any queries. Also, the web server localhost:8047 does not work either. Here is what I see when I try to start drill.
I have tried both Java JDK 8 and 9, on two separate windows machines and got the same error. I searched about this matter but could not get any workarounds so far.
Any fix to this? Thanks a lot!!
回答1:
Problem solved by setting JAVA_HOME correctly.
回答2:
Here's another clue that might help others!! I had the same problem "No current connection" on Windows 10 and went around in MANY circles trying to solve it by:
- Making sure JAVA_HOME was set properly - ok
- Checking in the cmd window to make sure I could cd %JAVA_HOME% - ok
- Making sure I had added %JAVA_HOME%\bin to the PATH - ok
- Checking in the cmd window to make sure I could cd %JAVA_HOME%\bin - ok
- Trying to find conflicting JARs - there were none anywhere
Finally, I solved the problem: USE JDK VERSION 7 or 8
I blew away my version 9, reinstalled version 8, set JAVA_HOME again, and then started Drill with sqlline.bat -u "jdbc:drill:zk=local"
I tested it and got this!!!
0: jdbc:drill:zk=local> SELECT version FROM sys.version;
+----------+
| version |
+----------+
| 1.12.0 |
+----------+
1 row selected (1.326 seconds)
来源:https://stackoverflow.com/questions/48531242/apache-drill-no-current-connection-error