Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-828

HdfsFindTool's -print0 outputs newline characters.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Search

      Description

      Expected behavior: Using -print0 option should output paths separated by '\0'.

      Actual behavior: Fields are separated by '\0\n'

      The use of println() on line 57 is the culprit (see the link).

      https://github.com/cloudera/search/blob/cdh5-1.0.0_5.2.0/search-mr/src/main/java/org/apache/hadoop/fs/shell/find/Print.java#L57

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              luke-clifton Luke Clifton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: