twitter-archive / mysos

Cotton (formerly known as Mysos)
https://incubator.apache.org/projects/cotton.html
589 stars 67 forks source link

finding the MySQL Cluster port #65

Open imansadooghi opened 9 years ago

imansadooghi commented 9 years ago

I'm trying to find an easy way to get the host+port of the cluster that gets created with curl POST. I tried writing a simple client that just gets the host and port from zokeeper by using the utilities provided at https://github.com/twitter/commons/tree/master/src/java/com/twitter/common/zookeeper, and/or https://github.com/twitter/commons/tree/master/src/python/twitter/common/zookeeper however the porblem is:

  1. i dont know which class to use/call since there is no javadoc/ doc available.
  2. I tried running a few of the classes (e,g, cli.py) but they all have dependency to the twitter commons, which I cant manage to build (pants does not work behind the proxy of my server)

Can you help me with my two questions:

  1. is there a ready built client that I can just run? if so, can you tell me where is it?
  2. if I have to write a client, which class (on java or python) should I use?

I appreciate any help.