Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.4-alpha
-
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.