Hadoop Common
  1. Hadoop Common
  2. HADOOP-4034

Redundant deprecation warnings in hadoop logs

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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

        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.

          People

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

            Dates

            • Created:
              Updated:

              Time Tracking

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

                Development