Hadoop Common
  1. Hadoop Common
  2. HADOOP-4034

Redundant deprecation warnings in hadoop logs

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.18.0
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      None

      Description

      Warnings in the form of
      "org.apache.hadoop.fs.FileSystem - "localhost:57367" is a deprecated filesystem name. Use "hdfs://localhost:57367/" instead."
      are frequently emitted into the hadoop log. The problem is that the frequency of these warnings floods the logs and makes it difficult to discover real issues.

      A short investigation reveals that while FileSystem.getFileSysName(URI) returns the file system name without the hdfs:// scheme part, the method FileSystem.fixName(String) complains about it and appends the hdfs:// back.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        2151d 20h 32m 1 Allen Wittenauer 18/Jul/14 23:32
        Allen Wittenauer made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Doug Cutting added a comment -

        > while FileSystem.getFileSysName(URI) returns the file system name without the hdfs:// scheme part

        FileSystem#getName() is deprecated. We should remove calls to it rather than change it.

        Show
        Doug Cutting added a comment - > while FileSystem.getFileSysName(URI) returns the file system name without the hdfs:// scheme part FileSystem#getName() is deprecated. We should remove calls to it rather than change it.
        Yoram Kulbak created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Yoram Kulbak
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development