Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4865

Remove sub resource warning from httpfs log at startup time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4-alpha
    • Fix Version/s: 2.1.0-beta
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When httpfs starts, the httpfs-catalina log shows the following warning.

      WARNING: A sub-resource method, public javax.ws.rs.core.Response org.apache.hadoop.fs.http.server.HttpFSServer.getRoot(java.security.Principal,org.apache.hadoop.fs.http.server.HttpFSParametersProvider$OperationParam,org.apache.hadoop.lib.wsrs.Parameters) throws java.io.IOException,org.apache.hadoop.lib.service.FileSystemAccessException, with URI template, "/", is treated as a resource method
      

      This is happening because the method annotated for default resource path has the @Path("/") annotation, removing this annotation eliminates the warning.

        Attachments

        1. HDFS-4865.patch
          0.8 kB
          Wei Yan

          Activity

            People

            • Assignee:
              ywskycn Wei Yan
              Reporter:
              ywskycn Wei Yan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: