[
https://issues.apache.org/jira/browse/DRILL-7107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801211#comment-16801211
]
ASF GitHub Bot commented on DRILL-7107:
---------------------------------------
bitblender commented on pull request #1702: DRILL-7107 Unable to connect to
Drill 1.15 through ZK
URL: https://github.com/apache/drill/pull/1702#discussion_r268885320
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/coord/zk/ZKClusterCoordinator.java
##########
@@ -81,23 +78,20 @@
private ConcurrentHashMap<MultiKey, DrillbitEndpoint> endpointsMap = new
ConcurrentHashMap<MultiKey,DrillbitEndpoint>();
private static final Pattern ZK_COMPLEX_STRING =
Pattern.compile("(^.*?)/(.*)/([^/]*)$");
- public ZKClusterCoordinator(DrillConfig config, String connect)
- throws IOException, DrillbitStartupException {
- this(config, connect, null);
+ public ZKClusterCoordinator(DrillConfig config, String connect) {
+ this(config, connect, new DefaultACLProvider());
}
- public ZKClusterCoordinator(DrillConfig config, BootStrapContext context)
- throws IOException, DrillbitStartupException {
- this(config, null, context);
+ public ZKClusterCoordinator(DrillConfig config, ACLProvider aclProvider) {
+ this(config, null, aclProvider);
Review comment:
I tried writing a test where the Drillbits (inside ClusterFixture) are setup
with ZK_APPLY_SECURE_ACL=false (to avoid the need to setup a secure ZK server
within the unit test) and the ClientFixture is setup with
ZK_APPLY_SECURE_ACL=true (to simulate the failure). Starting a test with
different values for the same property turns out to be quite hard because the
ClusterFixture internally instantiates a ClientFixure. Changing this behavior
might affect other tests.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Unable to connect to Drill 1.15 through ZK
> ------------------------------------------
>
> Key: DRILL-7107
> URL: https://issues.apache.org/jira/browse/DRILL-7107
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Karthikeyan Manivannan
> Assignee: Karthikeyan Manivannan
> Priority: Major
> Fix For: 1.16.0
>
>
> After upgrading to Drill 1.15, users are seeing they are no longer able to
> connect to Drill using ZK quorum. They are getting the following "Unable to
> setup ZK for client" error.
> [~]$ sqlline -u "jdbc:drill:zk=172.16.2.165:5181;auth=maprsasl"
> Error: Failure in connecting to Drill:
> org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for client.
> (state=,code=0)
> java.sql.SQLNonTransientConnectionException: Failure in connecting to Drill:
> org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for client.
> at
> org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:174)
> at
> org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:67)
> at
> org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:67)
> 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:130)
> at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:179)
> at sqlline.Commands.connect(Commands.java:1247)
> at sqlline.Commands.connect(Commands.java:1139)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
> at sqlline.SqlLine.dispatch(SqlLine.java:722)
> at sqlline.SqlLine.initArgs(SqlLine.java:416)
> at sqlline.SqlLine.begin(SqlLine.java:514)
> at sqlline.SqlLine.start(SqlLine.java:264)
> at sqlline.SqlLine.main(SqlLine.java:195)
> Caused by: org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for
> client.
> at org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:340)
> at
> org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:165)
> ... 18 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.drill.exec.coord.zk.ZKACLProviderFactory.findACLProvider(ZKACLProviderFactory.java:68)
> at
> org.apache.drill.exec.coord.zk.ZKACLProviderFactory.getACLProvider(ZKACLProviderFactory.java:47)
> at
> org.apache.drill.exec.coord.zk.ZKClusterCoordinator.<init>(ZKClusterCoordinator.java:114)
> at
> org.apache.drill.exec.coord.zk.ZKClusterCoordinator.<init>(ZKClusterCoordinator.java:86)
> at org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:337)
> ... 19 more
> Apache Drill 1.15.0.0
> "This isn't your grandfather's SQL."
> sqlline>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)