[
https://issues.apache.org/jira/browse/DRILL-371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13906107#comment-13906107
]
Xiao Meng commented on DRILL-371:
---------------------------------
I am working on zookeeper registry lookup and have some questions about
zookeeper registry.
There are 3-nodes drillbits in my local machine, which are registered under the
zookeeper path /drill/drillbits1
I connect to zookeeper using its command line tool to get the DrillbitEndpoint
information as following:
{code}
[zk: localhost:2181(CONNECTED) 0] get /drill/drillbits1
cZxid = 0x3
ctime = Thu Jan 30 15:25:29 PST 2014
mZxid = 0x3
mtime = Thu Jan 30 15:25:29 PST 2014
pZxid = 0x1a5
cversion = 125
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 3
# I suppose this is the data entry name for drillbits
[zk: localhost:2181(CONNECTED) 1] ls /drill/drillbits1
[0a067c5c-1330-4919-89dc-b1ae5ce0c3f4, 9ec723a7-0571-4daa-8b42-039a7380e12e,
9e8824d6-0603-4ca1-9bae-de4a911abf4b]
[zk: localhost:2181(CONNECTED) 2] get
/drill/drillbits1/0a067c5c-1330-4919-89dc-b1ae5ce0c3f4
$0a067c5c-1330-4919-89dc-b1ae5ce0c3f4�����(
localhost����
cZxid = 0x1a3
ctime = Wed Feb 19 12:00:16 PST 2014
mZxid = 0x1a3
mtime = Wed Feb 19 12:00:16 PST 2014
pZxid = 0x1a3
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x1444bba2f460003
dataLength = 66
numChildren = 0
{code}
So my understanding is that each drillbit server will maintain a data entry for
the DrillbitEndpoint information (address, port, and so on). To connect the
drillbit, we need to retrieve the DrillbitEndpoint data from the zookeeper. I
didn't find proper reference for the zookeeper integration in Drill.
Can you explain more? Also how does the DrillbitEndpoint data encode/decode?
Thanks.
> Build Drill C++ client driver
> -----------------------------
>
> Key: DRILL-371
> URL: https://issues.apache.org/jira/browse/DRILL-371
> Project: Apache Drill
> Issue Type: New Feature
> Reporter: Jacques Nadeau
> Assignee: Xiao Meng
>
> For use with ODBC drivers and to support binding to other languages, we
> should implement C++ client driver with C bindings.
> Key Features:
> - Zookeeper registry lookup
> - Connection management
> - Query submit
> - RecordBatch consumption
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)