You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by sh...@apache.org on 2016/02/26 02:57:49 UTC
incubator-hawq git commit: HAWQ-463. Fixed version in the pxf rest doc
Repository: incubator-hawq
Updated Branches:
refs/heads/HAWQ-463 [created] 324f49219
HAWQ-463. Fixed version in the pxf rest doc
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/324f4921
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/324f4921
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/324f4921
Branch: refs/heads/HAWQ-463
Commit: 324f492193c30ab57e4905f963c5aede37e9b2a3
Parents: 321f7e2
Author: Shivram Mani <sh...@gmail.com>
Authored: Thu Feb 25 17:57:38 2016 -0800
Committer: Shivram Mani <sh...@gmail.com>
Committed: Thu Feb 25 17:57:38 2016 -0800
----------------------------------------------------------------------
.../org/apache/hawq/pxf/service/rest/ClusterNodesResource.java | 2 +-
.../org/apache/hawq/pxf/service/rest/FragmenterResource.java | 6 +++---
.../org/apache/hawq/pxf/service/rest/MetadataResource.java | 2 +-
.../org/apache/hawq/pxf/service/rest/WritableResource.java | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/324f4921/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/ClusterNodesResource.java
----------------------------------------------------------------------
diff --git a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/ClusterNodesResource.java b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/ClusterNodesResource.java
index d877590..1280c09 100644
--- a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/ClusterNodesResource.java
+++ b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/ClusterNodesResource.java
@@ -38,7 +38,7 @@ import javax.ws.rs.core.Response;
/**
* Class enhances the API of the HBASE rest server.
* Example for querying API getClusterNodesInfo from a web client
- * <code>curl "http://localhost:51200/pxf/v2/HadoopCluster/getNodesInfo"</code>
+ * <code>curl "http://localhost:51200/pxf/{version}/HadoopCluster/getNodesInfo"</code>
* /pxf/ is made part of the path when there is a webapp by that name in tcServer.
*/
@Path("/" + Version.PXF_PROTOCOL_VERSION + "/HadoopCluster/")
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/324f4921/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/FragmenterResource.java
----------------------------------------------------------------------
diff --git a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/FragmenterResource.java b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/FragmenterResource.java
index aeddb04..8fcbd3a 100644
--- a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/FragmenterResource.java
+++ b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/FragmenterResource.java
@@ -49,7 +49,7 @@ import java.util.Map;
* Class enhances the API of the WEBHDFS REST server. Returns the data fragments
* that a data resource is made of, enabling parallel processing of the data
* resource. Example for querying API FRAGMENTER from a web client
- * {@code curl -i "http://localhost:50070/pxf/v2/Fragmenter/getFragments?path=/dir1/dir2/*txt"}
+ * {@code curl -i "http://localhost:50070/pxf/{version}/Fragmenter/getFragments?path=/dir1/dir2/*txt"}
* <code>/pxf/</code> is made part of the path when there is a webapp by that
* name in tomcat.
*/
@@ -59,7 +59,7 @@ public class FragmenterResource extends RestResource {
/**
* The function is called when
- * {@code http://nn:port/pxf/vx/Fragmenter/getFragments?path=...} is used.
+ * {@code http://nn:port/pxf/{version}/Fragmenter/getFragments?path=...} is used.
*
* @param servletContext Servlet context contains attributes required by
* SecuredHDFS
@@ -93,7 +93,7 @@ public class FragmenterResource extends RestResource {
/**
* The function is called when
- * {@code http://nn:port/pxf/vx/Fragmenter/getFragmentsStats?path=...} is
+ * {@code http://nn:port/pxf/{version}/Fragmenter/getFragmentsStats?path=...} is
* used.
*
* @param servletContext Servlet context contains attributes required by
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/324f4921/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
----------------------------------------------------------------------
diff --git a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
index 4c0f2bf..12a1904 100644
--- a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
+++ b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
@@ -44,7 +44,7 @@ import org.apache.hawq.pxf.service.MetadataResponseFormatter;
* Class enhances the API of the WEBHDFS REST server. Returns the metadata of a
* given hcatalog table. <br>
* Example for querying API FRAGMENTER from a web client:<br>
- * <code>curl -i "http://localhost:51200/pxf/v13/Metadata/getTableMetadata?table=t1"</code>
+ * <code>curl -i "http://localhost:51200/pxf/{version}/Metadata/getTableMetadata?table=t1"</code>
* <br>
* /pxf/ is made part of the path when there is a webapp by that name in tomcat.
*/
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/324f4921/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/WritableResource.java
----------------------------------------------------------------------
diff --git a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/WritableResource.java b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/WritableResource.java
index d1dea5e..152ad8c 100644
--- a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/WritableResource.java
+++ b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/WritableResource.java
@@ -47,7 +47,7 @@ import org.apache.hawq.pxf.service.utilities.SecuredHDFS;
* Running this resource manually:
*
* run:
- curl -i -X post "http://localhost:50070/pxf/v5w/Writable/stream?path=/data/curl/curl`date \"+%h%d_%H%M%s\"`" \
+ curl -i -X post "http://localhost:50070/pxf/{version}/Writable/stream?path=/data/curl/curl`date \"+%h%d_%H%M%s\"`" \
--header "X-GP-Accessor: TextFileWAccessor" \
--header "X-GP-Resolver: TextWResolver" \
--header "Content-Type:application/octet-stream" \
@@ -93,7 +93,7 @@ public class WritableResource extends RestResource{
}
/**
- * This function is called when http://nn:port/pxf/vx/Writable/stream?path=...
+ * This function is called when http://nn:port/pxf/{version}/Writable/stream?path=...
* is used.
*
* @param servletContext Servlet context contains attributes required by SecuredHDFS