Compatibility with 1.1.3 and 1.2.1

89 views
Skip to first unread message

Swen Thümmler

unread,
Jun 4, 2014, 11:52:39 AM6/4/14
to elasticsear...@googlegroups.com
Hi all,

after being fed up with periodical split brains despite having 3 servers I decided to give elasticsearch-zookeeper a try. Since I wanted to use it on  1.2.1 and with zookeeper 3.4.6 I have forked imotov's repo and created releases for elasticsearch 1.1.3 and 1.2.1. Since my patches are mostly based on educated guessing rather than understanding of the internals of elasticsearch or zookeeper, I would welcome feedback or corrections. Hopefully someone finds this useful.

--Swen

ahunna...@gmail.com

unread,
Jun 16, 2014, 8:19:11 PM6/16/14
to elasticsear...@googlegroups.com
Swen,

Just tried out this plugin and it works great! I'm trying to hit it with a load test and using a Python client to read the cluster node state from Zookeeper. Python for some reason is unable to parse the data stored in Zookeeper which is very cryptic and I can't seem to find what the encoding is that this plugin uses. I'm using the Kazoo Python Zookeeper client.

UTF8 and Ascii decoding does not seem to work in Python and here's a sample. Any idea how I can decode this stuff and get the ip address and HTTP port of the node?


get /es/clusters/elasticsearch-05f09a8a03690d719c23534910d835b71402964177.63/nodes/HUymgqr9QnWuzgDbQWQFcw

%elasticsearch-cluster_2-1402964179765HUymgqr9QnWuzgDbQWQFcwdocker2192.168.57.102��9fzAá>

cZxid = 0x12000004e3
ctime = Tue Jun 17 00:16:28 UTC 2014
mZxid = 0x12000004e3
mtime = Tue Jun 17 00:16:28 UTC 2014
pZxid = 0x12000004e3
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x346a6ced6c00021
dataLength = 100
numChildren = 0


Thanks!
Reply all
Reply to author
Forward
0 new messages