parameters: (path, hadoop_conf_dir=None)
docstring: Create an empty file in HDFS
docstring_summary: Create an empty file in HDFS
docstring_tokens: Create an empty file in HDFS
function: def hdfs_touch(path, hadoop_conf_dir=None):
      """
      Create an empty file in HDFS
      """
      base_command = get_hadoop_cmd()
      if hadoop_conf_dir:
          base_command += ' --config %s' % hadoop_conf_dir
  
      touchz_cmd = base_command + ' fs -touchz \"%s\"' % path
  
      exit_code, stdo, stde = _hdfs_exec_command(touchz_cmd)
      if exit_code != 0:
          raise RuntimeError("error creating file '%s', error: %s" % (path, stde))
function_tokens: def hdfs_touch ( path , hadoop_conf_dir = None ) : base_command = get_hadoop_cmd ( ) if hadoop_conf_dir : base_command += ' --config %s' % hadoop_conf_dir touchz_cmd = base_command + ' fs -touchz \"%s\"' % path exit_code , stdo , stde = _hdfs_exec_command ( touchz_cmd ) if exit_code != 0 : raise RuntimeError ( "error creating file '%s', error: %s" % ( path , stde ) )