@Override public RecordWriter<NodePath, MarkLogicNode> getRecordWriter( TaskAttemptContext context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); TextArrayWritable hosts = getHosts(conf); String host = InternalUtilities.getHost(hosts); return new NodeWriter(conf, host); }
LOG.debug(query); Session session = getSession(); try { AdhocQuery request = session.newAdhocQuery(query); commitIfNecessary(); } catch (RequestException e) { LOG.error(e);