def get_config_root(*append):
 from hadoop.conf import HDFS_CLUSTERS
 yarn_site_path = HDFS_CLUSTERS['default'].HADOOP_CONF_DIR.get()
 return os.path.abspath(os.path.join(yarn_site_path, '..', *append))

def get_config_root ( * append ) : from hadoop . conf import HDFS_CLUSTERS yarn_site_path = HDFS_CLUSTERS [ 'default' ] . HADOOP_CONF_DIR . get ( ) return os . path . abspath ( os . path . join ( yarn_site_path , '..' , * append ) )
currently gets it based on the hadoop configuration location .