public static void webhcatSmokeTest(ViewContext context) {
    try {
      TempletonApiFactory templetonApiFactory = new TempletonApiFactory(context);
      TempletonApi api = templetonApiFactory.connectToTempletonApi();
      api.status();
    } catch (WebApplicationException ex) {
      throw ex;
    } catch (Exception ex) {
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }
  }
Checks connection to WebHCat
@param context View Context
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/jobs/JobResourceManager.java