Revert "HDFS-12558. Ozone: Clarify the meaning of rpc.metrics.percentiles.intervals on KSM/SCM web ui. Contributed by Elek, Marton."
This reverts commit 18c0cdcec9
.
This commit is contained in:
parent
402a1c1ba3
commit
0582d8b1b1
|
@ -192,12 +192,6 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<artifactId>rocksdbjni</artifactId>
|
<artifactId>rocksdbjni</artifactId>
|
||||||
<version>5.5.5</version>
|
<version>5.5.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>io.swagger</groupId>
|
|
||||||
<artifactId>swagger-annotations</artifactId>
|
|
||||||
<version>1.5.9</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
|
<!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bouncycastle</groupId>
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
@ -447,48 +441,6 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
</filesets>
|
</filesets>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.kongchen</groupId>
|
|
||||||
<artifactId>swagger-maven-plugin</artifactId>
|
|
||||||
<version>3.1.5</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>compile</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>generate</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<apiSources>
|
|
||||||
<apiSource>
|
|
||||||
<springmvc>false</springmvc>
|
|
||||||
<swaggerDirectory>target/webapps/static</swaggerDirectory>
|
|
||||||
<swaggerFileName>ozone.swagger</swaggerFileName>
|
|
||||||
<schemes>
|
|
||||||
<scheme>http</scheme>
|
|
||||||
</schemes>
|
|
||||||
<host>localhost:9864</host>
|
|
||||||
<basePath>/</basePath>
|
|
||||||
<locations>
|
|
||||||
<location>org.apache.hadoop.ozone.web.interfaces</location>
|
|
||||||
</locations>
|
|
||||||
<info>
|
|
||||||
<title>HDFS Ozone REST Api</title>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<contact>
|
|
||||||
<name>Apache Hadoop project</name>
|
|
||||||
<url>https://hadoop.apache.org</url>
|
|
||||||
</contact>
|
|
||||||
<license>
|
|
||||||
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
|
||||||
<name>Apache 2.0</name>
|
|
||||||
</license>
|
|
||||||
</info>
|
|
||||||
</apiSource>
|
|
||||||
</apiSources>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
|
|
||||||
package org.apache.hadoop.ozone.web.interfaces;
|
package org.apache.hadoop.ozone.web.interfaces;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
|
||||||
import io.swagger.annotations.ApiImplicitParams;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
||||||
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
||||||
|
|
||||||
|
@ -46,7 +42,6 @@ import javax.ws.rs.core.UriInfo;
|
||||||
* bucket related functionality.
|
* bucket related functionality.
|
||||||
*/
|
*/
|
||||||
@Path("/{volume}/{bucket}")
|
@Path("/{volume}/{bucket}")
|
||||||
@Api(tags = "bucket")
|
|
||||||
public interface Bucket {
|
public interface Bucket {
|
||||||
/**
|
/**
|
||||||
* createBucket call handles the POST request for Creating a Bucket.
|
* createBucket call handles the POST request for Creating a Bucket.
|
||||||
|
@ -62,16 +57,6 @@ public interface Bucket {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@ApiOperation("Create new bucket to a volume")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response createBucket(@PathParam("volume") String volume,
|
Response createBucket(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket,
|
@PathParam("bucket") String bucket,
|
||||||
@Context Request req, @Context UriInfo info,
|
@Context Request req, @Context UriInfo info,
|
||||||
|
@ -91,16 +76,6 @@ public interface Bucket {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@PUT
|
@PUT
|
||||||
@ApiOperation("Update bucket")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response updateBucket(@PathParam("volume") String volume,
|
Response updateBucket(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket,
|
@PathParam("bucket") String bucket,
|
||||||
@Context Request req, @Context UriInfo info,
|
@Context Request req, @Context UriInfo info,
|
||||||
|
@ -120,16 +95,6 @@ public interface Bucket {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@DELETE
|
@DELETE
|
||||||
@ApiOperation("Deletes an empty bucket.")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response deleteBucket(@PathParam("volume") String volume,
|
Response deleteBucket(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket,
|
@PathParam("bucket") String bucket,
|
||||||
@Context Request req, @Context UriInfo info,
|
@Context Request req, @Context UriInfo info,
|
||||||
|
@ -154,16 +119,6 @@ public interface Bucket {
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@ApiOperation("List contents of a bucket")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response listBucket(@PathParam("volume") String volume,
|
Response listBucket(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket,
|
@PathParam("bucket") String bucket,
|
||||||
@DefaultValue(Header.OZONE_LIST_QUERY_KEY)
|
@DefaultValue(Header.OZONE_LIST_QUERY_KEY)
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
|
|
||||||
package org.apache.hadoop.ozone.web.interfaces;
|
package org.apache.hadoop.ozone.web.interfaces;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
|
||||||
import io.swagger.annotations.ApiImplicitParams;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
||||||
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
||||||
|
|
||||||
|
@ -43,8 +39,8 @@ import java.io.InputStream;
|
||||||
/**
|
/**
|
||||||
* This interface defines operations permitted on a key.
|
* This interface defines operations permitted on a key.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Path("/{volume}/{bucket}/{keys:.*}")
|
@Path("/{volume}/{bucket}/{keys:.*}")
|
||||||
@Api(tags = "key")
|
|
||||||
public interface Keys {
|
public interface Keys {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,18 +61,6 @@ public interface Keys {
|
||||||
*/
|
*/
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(MediaType.WILDCARD)
|
@Consumes(MediaType.WILDCARD)
|
||||||
@ApiOperation(value = "Adds a key to an existing bucket.",notes = "If the "
|
|
||||||
+ "object already exists this call will overwrite or add with new version "
|
|
||||||
+ "number if the bucket versioning is turned on.")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response putKey(@PathParam("volume") String volume,
|
Response putKey(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket, @PathParam("keys") String keys,
|
@PathParam("bucket") String bucket, @PathParam("keys") String keys,
|
||||||
InputStream is, @Context Request req, @Context UriInfo info,
|
InputStream is, @Context Request req, @Context UriInfo info,
|
||||||
|
@ -98,16 +82,6 @@ public interface Keys {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@ApiOperation("Gets the Key if it exists.")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response getKey(@PathParam("volume") String volume,
|
Response getKey(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket, @PathParam("keys") String keys,
|
@PathParam("bucket") String bucket, @PathParam("keys") String keys,
|
||||||
@QueryParam(Header.OZONE_LIST_QUERY_TAG) String info,
|
@QueryParam(Header.OZONE_LIST_QUERY_TAG) String info,
|
||||||
|
@ -128,16 +102,6 @@ public interface Keys {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@DELETE
|
@DELETE
|
||||||
@ApiOperation("Deletes an existing key")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response deleteKey(@PathParam("volume") String volume,
|
Response deleteKey(@PathParam("volume") String volume,
|
||||||
@PathParam("bucket") String bucket, @PathParam("keys") String keys,
|
@PathParam("bucket") String bucket, @PathParam("keys") String keys,
|
||||||
@Context Request req, @Context UriInfo info, @Context HttpHeaders headers)
|
@Context Request req, @Context UriInfo info, @Context HttpHeaders headers)
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
|
|
||||||
package org.apache.hadoop.ozone.web.interfaces;
|
package org.apache.hadoop.ozone.web.interfaces;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
|
||||||
import io.swagger.annotations.ApiImplicitParams;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
import org.apache.hadoop.classification.InterfaceAudience;
|
import org.apache.hadoop.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
||||||
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
||||||
|
@ -46,7 +42,6 @@ import javax.ws.rs.core.UriInfo;
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Private
|
@InterfaceAudience.Private
|
||||||
@Path("/{volume}")
|
@Path("/{volume}")
|
||||||
@Api(tags = "volume")
|
|
||||||
public interface Volume {
|
public interface Volume {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -69,16 +64,6 @@ public interface Volume {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@ApiOperation("Creates a Volume owned by the user")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response createVolume(@PathParam("volume") String volume,
|
Response createVolume(@PathParam("volume") String volume,
|
||||||
@DefaultValue(Header.OZONE_QUOTA_UNDEFINED)
|
@DefaultValue(Header.OZONE_QUOTA_UNDEFINED)
|
||||||
@QueryParam(Header.OZONE_QUOTA_QUERY_TAG) String quota,
|
@QueryParam(Header.OZONE_QUOTA_QUERY_TAG) String quota,
|
||||||
|
@ -104,16 +89,6 @@ public interface Volume {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@PUT
|
@PUT
|
||||||
@ApiOperation("Updates a Volume owned by the user")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response updateVolume(@PathParam("volume") String volume,
|
Response updateVolume(@PathParam("volume") String volume,
|
||||||
@DefaultValue(Header.OZONE_QUOTA_UNDEFINED)
|
@DefaultValue(Header.OZONE_QUOTA_UNDEFINED)
|
||||||
@QueryParam(Header.OZONE_QUOTA_QUERY_TAG) String quota,
|
@QueryParam(Header.OZONE_QUOTA_QUERY_TAG) String quota,
|
||||||
|
@ -130,16 +105,6 @@ public interface Volume {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@DELETE
|
@DELETE
|
||||||
@ApiOperation("Deletes a Volume if it is empty")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response deleteVolume(@PathParam("volume") String volume,
|
Response deleteVolume(@PathParam("volume") String volume,
|
||||||
@Context Request req, @Context UriInfo uriInfo,
|
@Context Request req, @Context UriInfo uriInfo,
|
||||||
@Context HttpHeaders headers) throws OzoneException;
|
@Context HttpHeaders headers) throws OzoneException;
|
||||||
|
@ -157,17 +122,6 @@ public interface Volume {
|
||||||
* @throws OzoneException
|
* @throws OzoneException
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@ApiOperation(value = "Returns Volume info", notes = "This API can be "
|
|
||||||
+ "invoked either by admin or the owner")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
||||||
true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
||||||
+ "04:23:30 GMT", required = true, paramType = "header"),
|
|
||||||
@ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
||||||
true, paramType = "header")})
|
|
||||||
Response getVolumeInfo(@PathParam("volume") String volume,
|
Response getVolumeInfo(@PathParam("volume") String volume,
|
||||||
@DefaultValue(Header.OZONE_LIST_QUERY_BUCKET)
|
@DefaultValue(Header.OZONE_LIST_QUERY_BUCKET)
|
||||||
@QueryParam(Header.OZONE_LIST_QUERY_TAG) String info,
|
@QueryParam(Header.OZONE_LIST_QUERY_TAG) String info,
|
||||||
|
|
Loading…
Reference in New Issue