@Override public void destroy() { try { hcatClient.close(); } catch (Exception ignore) { XLog.getLog(HCatContext.class).warn("Error closing hcat client", ignore); } }
private void closeQuietly(HCatClient client, boolean close) { if (close && client != null) { try { client.close(); } catch (Exception ignore) { XLog.getLog(HCatURIHandler.class).warn("Error closing hcat client", ignore); } } }