Hadoop Common
  1. Hadoop Common
  2. HADOOP-8788

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor 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

        Activity

        Hide
        Daryn Sharp added a comment -

        Yes, the ls command currently works more like find. It'll be an incompatible change which is why I didn't fix it during the shell overhaul, but I think it would be a good change so long as a find command is also added.

        Show
        Daryn Sharp added a comment - Yes, the ls command currently works more like find. It'll be an incompatible change which is why I didn't fix it during the shell overhaul, but I think it would be a good change so long as a find command is also added.

          People

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

            Dates

            • Created:
              Updated:

              Development