Esempio n. 1
0
 @Override
 public void destroy() {
   try {
     hcatClient.close();
   } catch (Exception ignore) {
     XLog.getLog(HCatContext.class).warn("Error closing hcat client", ignore);
   }
 }
Esempio n. 2
0
 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);
     }
   }
 }