[ 
https://issues.apache.org/jira/browse/DRILL-6408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16472081#comment-16472081
 ] 

Hari Sekhon commented on DRILL-6408:
------------------------------------

Looks like the states can be found here:

https://github.com/apache/drill/blob/master/exec/java-exec/src/main/java/org/apache/drill/exec/server/DrillbitStateManager.java#L25

> Document Drill API /cluster.json states
> ---------------------------------------
>
>                 Key: DRILL-6408
>                 URL: https://issues.apache.org/jira/browse/DRILL-6408
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components:  Server, Client - HTTP, Documentation, Execution - 
> Monitoring, Tools, Build & Test
>    Affects Versions: 1.13.0
>         Environment: MapR 6.0 / Apache Drill in Docker
>            Reporter: Hari Sekhon
>            Priority: Major
>
> Request to document the possible states returned by Drill API's newer 
> /cluster.json endpoint:
> [https://drill.apache.org/docs/rest-api-introduction/#get-/cluster.json]
> Real world output shows an interesting 'state' field which is currently 
> undocumented in the link above, but you can see here:
> {code:java}
> {
>   "drillbits" : [ {
>     "address" : "1939919665a9",
>     "userPort" : "31010",
>     "controlPort" : "31011",
>     "dataPort" : "31012",
>     "version" : "1.13.0",
>     "current" : true,
>     "versionMatch" : true,
>     "state" : "ONLINE"
>   } ],
>   "currentVersion" : "1.13.0",
>   "mismatchedVersions" : [ ],
>   "userEncryptionEnabled" : false,
>   "bitEncryptionEnabled" : false,
>   "authEnabled" : false
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to