def get_configured_hdfs_client():
 config = hdfs()
 custom = config.client
 conf_usinf_snakebite = ['snakebite_with_hadoopcli_fallback', 'snakebite']
 if (six.PY3 and (custom in conf_usinf_snakebite)):
  warnings.warn('snakebite client not compatible with python3 at the momentfalling back on hadoopcli', stacklevel=2)
  return 'hadoopcli'
 return custom

def get_configured_hdfs_client ( ) : config = hdfs ( ) custom = config . client conf_usinf_snakebite = [ 'snakebite_with_hadoopcli_fallback' , 'snakebite' ] if ( six . PY3 and ( custom in conf_usinf_snakebite ) ) : warnings . warn ( 'snakebite client not compatible with python3 at the momentfalling back on hadoopcli' , stacklevel = 2 ) return 'hadoopcli' return custom
this is a helper that fetches the configuration value for client in the [hdfs] section .