Package azkaban.common.utils

Examples of azkaban.common.utils.UndefinedPropertyException


    }

    public static Props getPropsFromJob(Configuration conf) {
        String propsString = conf.get("azkaban.props");
        if(propsString == null)
            throw new UndefinedPropertyException("The required property azkaban.props was not found in the Configuration.");
        try {
            ByteArrayInputStream input = new ByteArrayInputStream(propsString.getBytes("UTF-8"));
            Properties properties = new Properties();
            properties.load(input);
            return new Props(null, properties);
View Full Code Here


                  );
              }

              String replacement = props.get(variableName);
              if(replacement == null)
                  throw new UndefinedPropertyException("Could not find variable substitution for variable '"
                                                       + variableName + "' in key '" + key + "'.");

              replacement = replacement.replaceAll("\\\\", "\\\\\\\\");
              replacement = replacement.replaceAll("\\$", "\\\\\\$");
View Full Code Here

TOP

Related Classes of azkaban.common.utils.UndefinedPropertyException

Copyright © 2018 www.massapicom. 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.