Examples of MisconfigurationFormattedException


Examples of org.apache.ambari.view.pig.utils.MisconfigurationFormattedException

    String defaultFS = context.getProperties().get("dataworker.defaultFs");
    if (defaultFS == null) {
      String message = "dataworker.defaultFs is not configured!";
      LOG.error(message);
      throw new MisconfigurationFormattedException("dataworker.defaultFs");
    }

    try {
      api = new HdfsApi(defaultFS, getHdfsUsername(context));
      LOG.info("HdfsApi connected OK");
View Full Code Here

Examples of org.apache.ambari.view.pig.utils.MisconfigurationFormattedException

  private void createDefaultScriptFile(PigScript object) {
    String userScriptsPath = context.getProperties().get("dataworker.scripts.path");
    if (userScriptsPath == null) {
      String msg = "dataworker.scripts.path is not configured!";
      LOG.error(msg);
      throw new MisconfigurationFormattedException("dataworker.scripts.path");
    }
    int checkId = 0;

    boolean fileCreated;
    String newFilePath;
View Full Code Here

Examples of org.apache.ambari.view.pig.utils.MisconfigurationFormattedException

  private static TempletonApi connectToTempletonApi(ViewContext context) {
    String webhcatUrl = context.getProperties().get("dataworker.webhcat.url");
    if (webhcatUrl == null) {
      String message = "dataworker.webhcat.url is not configured!";
      LOG.error(message);
      throw new MisconfigurationFormattedException("dataworker.webhcat.url");
    }
    return new TempletonApi(context.getProperties().get("dataworker.webhcat.url"),
        getTempletonUser(context), getTempletonUser(context), context);
  }
View Full Code Here

Examples of org.apache.ambari.view.pig.utils.MisconfigurationFormattedException

  private static String getTempletonUser(ViewContext context) {
    String username = context.getProperties().get("dataworker.webhcat.user");
    if (username == null) {
      String message = "dataworker.webhcat.user is not configured!";
      LOG.error(message);
      throw new MisconfigurationFormattedException("dataworker.webhcat.user");
    }
    return username;
  }
View Full Code Here

Examples of org.apache.ambari.view.pig.utils.MisconfigurationFormattedException

    if (config == null) {
      String fileName = context.getProperties().get("dataworker.storagePath");
      if (fileName == null) {
        String msg = "dataworker.storagePath is not configured!";
        LOG.error(msg);
        throw new MisconfigurationFormattedException("dataworker.storagePath");
      }
      try {
        config = new PersistentConfiguration(fileName);
      } catch (ConfigurationException e) {
        e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.