class_docstr: Implementation of some common hadoop operations.
      
docstr: hdfs_ls 
docstr_tok: ["hdfs_ls"]
code: def ls(self, path):
      """hdfs_ls"""
      cmd = self.hadoop_bin + " fs -D fs.default.name=" + self.fs_name
      cmd += " -D hadoop.job.ugi=" + self.fs_ugi
      cmd += " -ls " + path
      cmd += " | awk '{print $8}'"
      with os.popen(cmd) as reader:
          filelist = reader.read().split()
      return filelist
  
imports: import os
  import sys
  import numpy
  import json
  import io
  from subprocess import Popen, PIPE
label_desc: Use image node_id 2 for calling the HadoopUtil obj's underlying member method code with example usage: obj.ls(path) and returns: filelist