diff --git hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Server.java hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Server.java index a94b8e9..77c8610 100644 --- hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Server.java +++ hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Server.java @@ -923,16 +923,16 @@ public QueueStatusBean deleteJobId(@PathParam("jobid") String jobid) * 1. curl -s 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan' * Return all the Job IDs submitted by hsubramaniyan * 2. curl -s - * 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan&showall=true' + * 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan%26showall=true' * Return all the Job IDs that are visible to hsubramaniyan * 3. curl -s - * 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan&jobid=job_201312091733_0003' + * 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan%26jobid=job_201312091733_0003' * Return all the Job IDs for hsubramaniyan after job_201312091733_0003. * 4. curl -s 'http://localhost:50111/templeton/v1/jobs? - * user.name=hsubramaniyan&jobid=job_201312091733_0003&numrecords=5' + * user.name=hsubramaniyan%26jobid=job_201312091733_0003%26numrecords=5' * Return the first 5(atmost) Job IDs submitted by hsubramaniyan after job_201312091733_0003. * 5. curl -s - * 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan&numrecords=5' + * 'http://localhost:50111/templeton/v1/jobs?user.name=hsubramaniyan%26numrecords=5' * Return the first 5(atmost) Job IDs submitted by hsubramaniyan after sorting the Job ID list * lexicographically. *
diff --git hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonStorage.java hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonStorage.java index cf27ffa..4bd73d9 100644 --- hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonStorage.java +++ hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonStorage.java @@ -93,7 +93,7 @@ public void saveField(Type type, String id, String key, String val) * Get the id of each data grouping of a given type in the storage * system. * @param type The data type (as listed above) - * @return An ArrayList