parameters: (hdfs_url, test='e', hadoop_conf_dir=None)
return_statement: return exit_code == 0
docstring: Test the url.
  
      parameters
      ----------
      hdfs_url: string
          The hdfs url
      test: string, optional
          'e': existence
          'f': file
          'd': is a directory
          'z': zero length
  
          Default is an existence test, 'e'
docstring_summary: Test the url.
docstring_tokens: Test the url .
function: def hdfs_test_url(hdfs_url, test='e', hadoop_conf_dir=None):
      """
      Test the url.
  
      parameters
      ----------
      hdfs_url: string
          The hdfs url
      test: string, optional
          'e': existence
          'f': file
          'd': is a directory
          'z': zero length
  
          Default is an existence test, 'e'
      """
  
      if hadoop_conf_dir is None:
          command = "%s fs -test -%s %s" % (get_hadoop_cmd(), test, hdfs_url)
      else:
          command = "%s --config %s fs -test -%s %s" % (get_hadoop_cmd(), hadoop_conf_dir, test, hdfs_url)
      exit_code, stdo, stde = _hdfs_exec_command(command)
      return exit_code == 0
function_tokens: def hdfs_test_url ( hdfs_url , test = 'e' , hadoop_conf_dir = None ) : if hadoop_conf_dir is None : command = "%s fs -test -%s %s" % ( get_hadoop_cmd ( ) , test , hdfs_url ) else : command = "%s --config %s fs -test -%s %s" % ( get_hadoop_cmd ( ) , hadoop_conf_dir , test , hdfs_url ) exit_code , stdo , stde = _hdfs_exec_command ( command ) return exit_code == 0