class_docstr: DEPRECATED: FileSystem interface for HDFS cluster.
  
  See pyarrow.hdfs.connect for full connection details
  
  .. deprecated:: 2.0
      ``pyarrow.hdfs.HadoopFileSystem`` is deprecated,
      please use ``pyarrow.fs.HadoopFileSystem`` instead.
class_docstr_tok: ["DEPRECATED",":","FileSystem","interface","for","HDFS","cluster",".","See","pyarrow.hdfs.connect","for","full","connection","details","..","deprecated",":",":","2.0","``","pyarrow.hdfs.HadoopFileSystem","``","is","deprecated",",","please","use","``","pyarrow.fs.HadoopFileSystem","``","instead","."]
docstr: Directory tree generator for HDFS, like os.walk.
  
  Parameters
  ----------
  top_path : str
      Root directory for tree traversal.
  
  Returns
  -------
  Generator yielding 3-tuple (dirpath, dirnames, filename)
docstr_tok: ["Directory","tree","generator","for","HDFS",",","like","os.walk",".","Parameters","--","--","--","--","--","top_path",":","str","Root","directory","for","tree","traversal",".","Returns","--","--","--","-","Generator","yielding","3-tuple","(","dirpath",",","dirnames",",","filename",")"]
code: def walk(self, top_path):
      """
      Directory tree generator for HDFS, like os.walk.
  
      Parameters
      ----------
      top_path : str
          Root directory for tree traversal.
  
      Returns
      -------
      Generator yielding 3-tuple (dirpath, dirnames, filename)
      """
      contents = self.ls(top_path, detail=True)
  
      directories, files = _libhdfs_walk_files_dirs(top_path, contents)
      yield top_path, directories, files
      for dirname in directories:
          yield from self.walk(self._path_join(top_path, dirname))
  
imports: import os
  import posixpath
  import sys
  import warnings
  from pyarrow.util import doc, _DEPR_MSG
  from pyarrow.filesystem import FileSystem
  import pyarrow._hdfsio
label_desc: Use image node_id 11 for calling the HadoopFileSystem obj's underlying member method code with example usage: obj.walk(top_path) without return types