<s> from oslo_config import cfg <EOL> from oslo_log import log as logging <EOL> from sahara . plugins . vanilla . hadoop2 import config_helper as c_helper <EOL> from sahara . utils import xmlutils as x <EOL> CONF = cfg . CONF <EOL> CONF . import_opt ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> LOG = logging . getLogger ( __name__ ) <EOL> CORE_DEFAULT = x . load_hadoop_xml_defaults ( <EOL> '<STR_LIT>' ) <EOL> HDFS_DEFAULT = x . load_hadoop_xml_defaults ( <EOL> '<STR_LIT>' ) <EOL> MAPRED_DEFAULT = x . load_hadoop_xml_defaults ( <EOL> '<STR_LIT>' ) <EOL> YARN_DEFAULT = x . load_hadoop_xml_defaults ( <EOL> '<STR_LIT>' ) <EOL> OOZIE_DEFAULT = x . load_hadoop_xml_defaults ( <EOL> '<STR_LIT>' ) <EOL> HIVE_DEFAULT = x . load_hadoop_xml_defaults ( <EOL> '<STR_LIT>' ) <EOL> XML_CONFS = { <EOL> "<STR_LIT>" : [ CORE_DEFAULT ] , <EOL> "<STR_LIT>" : [ HDFS_DEFAULT ] , <EOL> "<STR_LIT>" : [ YARN_DEFAULT ] , <EOL> "<STR_LIT>" : [ MAPRED_DEFAULT ] , <EOL> "<STR_LIT>" : [ OOZIE_DEFAULT ] , <EOL> "<STR_LIT>" : [ HIVE_DEFAULT ] <EOL> } <EOL> ENV_CONFS = { <EOL> "<STR_LIT>" : { <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> <EOL> } , <EOL> "<STR_LIT>" : { <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> <EOL> } , <EOL> "<STR_LIT>" : { <EOL> '<STR_LIT>' : <NUM_LIT> <EOL> } , <EOL> "<STR_LIT>" : { <EOL> '<STR_LIT>' : <NUM_LIT> <EOL> } <EOL> } <EOL> PLUGIN_XML_CONFIGS = c_helper . init_xml_configs ( XML_CONFS ) <EOL> PLUGIN_ENV_CONFIGS = c_helper . init_env_configs ( ENV_CONFS ) <EOL> def _init_all_configs ( ) : <EOL> configs = [ ] <EOL> configs . extend ( PLUGIN_XML_CONFIGS ) <EOL> configs . extend ( PLUGIN_ENV_CONFIGS ) <EOL> configs . extend ( c_helper . PLUGIN_GENERAL_CONFIGS ) <EOL> return configs <EOL> PLUGIN_CONFIGS = _init_all_configs ( ) <EOL> def get_plugin_configs ( ) : <EOL> return PLUGIN_CONFIGS <EOL> def get_xml_configs ( ) : <EOL> return PLUGIN_XML_CONFIGS <EOL> def get_env_configs ( ) : <EOL> return ENV_CONFS </s>
