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

Paul Rogers commented on DRILL-5261:
------------------------------------

Great suggestion! I could have used this in an earlier project.

It may be that no migration is required. Protobuf itself handles adding fields, 
as long as they are marked optional. This was recently done in another fix that 
added a version number to the {{DrillbitEndpoint}}.

Note that the ZooKeeper entries are Protobuf encoded so whatever tool wants to 
learn the HTTP endpoint would need to contain the code to decode the Protobuf. 
May not be a problem in Java and so on, but can be awkward in some scripting 
languages.

> Expose REST endpoint in zookeeper
> ---------------------------------
>
>                 Key: DRILL-5261
>                 URL: https://issues.apache.org/jira/browse/DRILL-5261
>             Project: Apache Drill
>          Issue Type: New Feature
>            Reporter: Uwe L. Korn
>
> It would be nice to also publish the REST API endpoint of each Drillbit in 
> the Zookeeper. This would mean that we need an additional entry in 
> {{DrillbitEndpoint}}. While I would know how to add the attribute to the 
> ProtoBuf definition and filling the attribute with the correct information, 
> I'm unsure if there is the need for some migration code to support older 
> {{DrillbitEndpoint}} implementations that don't have this attribute.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to