Repository: drill Updated Branches: refs/heads/gh-pages 434de0bf3 -> 212bc621a
add horizontal lines Project: http://git-wip-us.apache.org/repos/asf/drill/repo Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/7e147f5a Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/7e147f5a Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/7e147f5a Branch: refs/heads/gh-pages Commit: 7e147f5a5a6cc909094a133f8cd4ff242f556e26 Parents: 2efae7b Author: Kristine Hahn <[email protected]> Authored: Fri Nov 20 14:47:15 2015 -0800 Committer: Kristine Hahn <[email protected]> Committed: Wed Nov 25 10:13:41 2015 -0800 ---------------------------------------------------------------------- _docs/developer-information/009-rest-api.md | 34 ++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/drill/blob/7e147f5a/_docs/developer-information/009-rest-api.md ---------------------------------------------------------------------- diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md index c272c0e..266d7a8 100644 --- a/_docs/developer-information/009-rest-api.md +++ b/_docs/developer-information/009-rest-api.md @@ -22,12 +22,15 @@ Several examples in the document use the donuts.json file. To download this file The following short description of methods link to more information and examples: * [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json). -* Submit a query to Drill and return query results. +* [Change the value or type of the named option](). +* [Submit a query to Drill and return query results](). * ## Options These methods get and set system options. +---------- + ### GET /options.json List the name, default, and data type of the system and session options. @@ -63,9 +66,11 @@ List the name, default, and data type of the system and session options. "kind" : "BOOLEAN" } ] +---------- + ### POST /option/{optionName} -Change the value or session/system type of the named option. +Change the value or type of the named option. **Parameter** optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options). @@ -94,6 +99,8 @@ Enclose option values of kind STRING in double quotation marks. These methods get query profiles. +---------- + ### GET /profiles.json Get the profiles of running and completed queries. @@ -117,6 +124,8 @@ Get the profiles of running and completed queries. }, . . . +---------- + ### GET /profiles/{queryid}.json Get the profile of given queryid. @@ -133,6 +142,8 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/ {"id":{"part1":3004720672638717061,"part2":3553677414795345685},"type":1,"start":1447892599827,"end":1447892599950,"query":"select * from dfs.`/Users/joe-user/drill/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'","plan":"00-00 Screen : rowType = RecordType(ANY *): . . ."lastUpdate":1447892599950,"lastProgress":1447892599950}]}],"user":"anonymous"} +---------- + ### GET /profiles/cancel/{queryid} Cancel the query having the given queryid. @@ -154,6 +165,8 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/ Using the query method, you can programmatically run queries. +---------- + ### POST /query.json Submits a query, waits until the query completes, and then returns the results as single JSON object. @@ -193,6 +206,8 @@ Submits a query, waits until the query completes, and then returns the results a The storage REST methods manage Drill storage plugin configurations. +---------- + ### GET /storage.json Get the list of storage plugin names and configurations. @@ -226,6 +241,8 @@ Get the list of storage plugin names and configurations. } } ] +---------- + ### GET /storage/{name}.json Get the named storage plugin name and configuration. @@ -248,6 +265,8 @@ name--The assigned name in the storage plugin definition. } } +---------- + ### Get /storage/{name}/enable/{val} Enable or disable the named storage plugin. @@ -266,6 +285,8 @@ Enable or disable the named storage plugin. "result" : "success" } +---------- + ### POST /storage/{name}.json Create or update a storage plugin configuration. @@ -298,6 +319,8 @@ Valid storage plugin types include file, hbase, hive, mongo, and jdbc. Construct "result" : "success" } +---------- + ### DELETE /storage/{name}.json Delete a storage plugin configuration. @@ -319,6 +342,8 @@ name--The name of the storage plugin configuration to delete. Gets metric information. +---------- + ### GET /stats.json Returns Drillbit stats such as ports and max direct memory. @@ -349,6 +374,8 @@ Returns Drillbit stats such as ports and max direct memory. "value" : 8589934592 } ] +---------- + ### GET /status Get the status of Drill. @@ -368,6 +395,7 @@ Get the status of Drill. </html> +---------- ### GET /status/metrics @@ -383,6 +411,8 @@ Get the current memory metrics. . . . ,"drill.allocator.normal.hist":{"count":84,"max":1024,"mean":273.6666666666667,"min":12,"p50":256.0,"p75":448.0,"p95":896.0,"p98":1024.0,"p99":1024.0,"p999":1024.0,"stddev":248.17013855555368}},"meters":{},"timers":{}} +---------- + ### GET /status/threads Get status of threads.
