public static Cassandra.Client getClientFromOutputAddressList(Configuration conf) throws IOException { return getClientFromAddressList(conf, ConfigHelper.getOutputInitialAddress(conf).split(","), ConfigHelper.getOutputRpcPort(conf)); }
public static Cassandra.Client getClientFromOutputAddressList(Configuration conf) throws IOException { return getClientFromAddressList(conf, ConfigHelper.getOutputInitialAddress(conf).split(","), ConfigHelper.getOutputRpcPort(conf)); }
public static Cassandra.Client getClientFromOutputAddressList(Configuration conf) throws IOException { return getClientFromAddressList(conf, ConfigHelper.getOutputInitialAddress(conf).split(","), ConfigHelper.getOutputRpcPort(conf)); }
public static Cassandra.Client getClientFromOutputAddressList(Configuration conf) throws IOException { return getClientFromAddressList(conf, ConfigHelper.getOutputInitialAddress(conf).split(","), ConfigHelper.getOutputRpcPort(conf)); }
int port = ConfigHelper.getOutputRpcPort(conf); client = ColumnFamilyOutputFormat.createAuthenticatedClient(host, port, conf);
public ExternalClient(Configuration conf) { super(); this.conf = conf; this.hostlist = ConfigHelper.getOutputInitialAddress(conf); this.rpcPort = ConfigHelper.getOutputRpcPort(conf); this.username = ConfigHelper.getOutputKeyspaceUserName(conf); this.password = ConfigHelper.getOutputKeyspacePassword(conf); }
int port = ConfigHelper.getOutputRpcPort(conf); client = CqlOutputFormat.createAuthenticatedClient(host, port, conf);
private BulkLoader.ExternalClient getExternalClient(Configuration conf) { Set<InetAddress> hosts = new HashSet<InetAddress>(); String outputAddress = ConfigHelper.getOutputInitialAddress(conf); if (outputAddress == null) outputAddress = "localhost"; String[] nodes = outputAddress.split(","); for (String node : nodes) { try { hosts.add(InetAddress.getByName(node)); } catch (UnknownHostException e) { throw new RuntimeException(e); } } int rpcPort = ConfigHelper.getOutputRpcPort(conf); String username = ConfigHelper.getOutputKeyspaceUserName(conf); String password = ConfigHelper.getOutputKeyspacePassword(conf); ITransportFactory transportFactory = ConfigHelper.getClientTransportFactory(conf); return new BulkLoader.ExternalClient(hosts, rpcPort, username, password, transportFactory, CqlBulkOutputFormat.getStoragePort(conf), CqlBulkOutputFormat.getSSLStoragePort(conf), getServerEncryptOpt(conf)); }
setConnectionInformation(); if (ConfigHelper.getOutputRpcPort(conf) == 0) throw new IOException("PIG_OUTPUT_RPC_PORT or PIG_RPC_PORT environment variable not set"); if (ConfigHelper.getOutputInitialAddress(conf) == null)
if (ConfigHelper.getOutputRpcPort(conf) == 0) throw new IOException("PIG_OUTPUT_RPC_PORT or PIG_RPC_PORT environment variable not set"); if (ConfigHelper.getOutputInitialAddress(conf) == null)