public HCatClient getHCatClient() { if (null == this.hCatClient) { try { this.hCatClient = HCatUtil.getHCatClient(hcatEndpoint, hiveMetaStorePrincipal); } catch (HCatException e) { Assert.fail( "Unable to create hCatClient because of exception:\n" + ExceptionUtils.getStackTrace(e)); } } return this.hCatClient; }