throw new SQLNonTransientConnectionException("Failure creating root allocator", e); } catch (InvalidConnectionInfoException e) { throw new SQLNonTransientConnectionException("Invalid parameter in connection string: " + e.getMessage(), e); } catch (RpcException e) {
throw new InvalidConnectionInfoException("No drillbit information specified in the connection string"); throw new InvalidConnectionInfoException("Malformed connection string with drillbit hostname or " + "hostaddress missing for an entry: " + drillbit); throw new InvalidConnectionInfoException("Malformed connection string with more than one port in a " + "drillbit entry: " + drillbit); throw new InvalidConnectionInfoException("Malformed port value in entry: " + ipAddress + ":" + port + " " + "passed in connection string"); throw new InvalidConnectionInfoException("No valid drillbit information specified in the connection string");
connectTriesVal = Math.min(endpoints.size(), Integer.parseInt(connectTriesConf)); } catch (NumberFormatException e) { throw new InvalidConnectionInfoException("Invalid tries value: " + connectTriesConf + " specified in " + "connection string");
public UserClient(String clientName, DrillConfig config, Properties properties, boolean supportComplexTypes, BufferAllocator allocator, EventLoopGroup eventLoopGroup, Executor eventExecutor, DrillbitEndpoint endpoint) throws NonTransientRpcException { super(UserRpcConfig.getMapping(config, eventExecutor), allocator.getAsByteBufAllocator(), eventLoopGroup, RpcType.HANDSHAKE, BitToUserHandshake.class, BitToUserHandshake.PARSER); this.endpoint = endpoint; // save the endpoint; it might be needed by SSL init. this.clientName = clientName; this.allocator = allocator; this.supportComplexTypes = supportComplexTypes; try { this.sslConfig = new SSLConfigBuilder().properties(properties).mode(SSLConfig.Mode.CLIENT) .initializeSSLContext(true).validateKeyStore(false).build(); } catch (DrillException e) { throw new InvalidConnectionInfoException(e.getMessage()); } // Keep a copy of properties in UserClient this.properties = DrillProperties.createFromProperties(properties); }
throw new SQLNonTransientConnectionException("Failure creating root allocator", e); } catch (InvalidConnectionInfoException e) { throw new SQLNonTransientConnectionException("Invalid parameter in connection string: " + e.getMessage(), e); } catch (RpcException e) {