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

Remove sub resource warning from httpfs log at startup time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4-alpha
    • 2.1.0-beta
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: