def _parse_hive_site():
 global _HIVE_SITE_DICT
 global _HIVE_SITE_PATH
 _HIVE_SITE_PATH = os.path.join(beeswax.conf.HIVE_CONF_DIR.get(), 'hive-site.xml')
 try:
  data = file(_HIVE_SITE_PATH, 'r').read()
 except IOError as err:
  if (err.errno != errno.ENOENT):
   LOG.error(('Cannot read from "%s": %s' % (_HIVE_SITE_PATH, err)))
   return
  data = ''
 _HIVE_SITE_DICT = confparse.ConfParse(data)

def _parse_hive_site ( ) : global _HIVE_SITE_DICT global _HIVE_SITE_PATH _HIVE_SITE_PATH = os . path . join ( beeswax . conf . HIVE_CONF_DIR . get ( ) , 'hive-site.xml' ) try : data = file ( _HIVE_SITE_PATH , 'r' ) . read ( ) except IOError as err : if ( err . errno != errno . ENOENT ) : LOG . error ( ( 'Cannot read from "%s": %s' % ( _HIVE_SITE_PATH , err ) ) ) return data = '' _HIVE_SITE_DICT = confparse . ConfParse ( data )
parse hive-site .