Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8788

hadoop fs -ls can print file paths according to the native ls command

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      None

      Description

      hadoop fs -ls dirname lists the paths in the following manner:

      dirname\file1
      dirname\file2

      Basically, dirname is repeated. This is slightly confusing because you get an impression that there's a dirname directory under the specified input

      In contrast, the native ls command doesn't do this.

      When given a glob as input, the native ls command prints it out as follows:

      dirname1:
      file1

      dirname2:
      file1

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yhemanth Hemanth Yamijala
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: