-
Notifications
You must be signed in to change notification settings - Fork 14
Is it possible to really launch this project on differents physical servers? #5
Comments
Hi Damien, it is indeed possible to run this across multiple physical servers. That is the main reason why we even released this project - otherwise it'll be no different from the other offerings out there. And no, ambassador is not required if you set things up the way we intended. Really. The command line flags you see when you run the Initially, I wrote some things that didn't answer your question, but I looked through the code a bit and found this: https://github.com/viki-org/storm-docker/blob/master/start-storm.sh#L28 Which is relevant to the issue your are facing. So you are right. There is indeed this link to a Zookeeper container. So there has to be a Zookeeper Docker container named Try editing your setup and run the Nimbus container on the same machine as some Zookeeper container and see if that solves the problem? If this doesn't resolve the issue, do you mind sharing your Thanks for trying out storm-docker =) |
Yes I found that disabling docker links in "start-storm.sh" let me launch the nimbus and the UI. So I have already done that. But I have others problems ... The UI have a "org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused". Here is my config/storm-setup.yaml:
|
It's quite safe to say that your Nimbus is not able to talk to your Zookeeper (and vice versa). As you said in your first post, you will need ambassador. Since you don't want to run the Nimbus container on the same physical machine as some Zookeeper container, you are on your own. Good luck! |
Hi @zaide , I know it's been quite a while and I'm not sure if you're still interested, but I've given this issue some thought a while back and these few days I finally had some time to perform some experiments with using ambassador. The results have been positive. I will be working on some patches to enable running the (Nimbus and UI) container on a separate physical machine from any Zookeeper server. To enable this may be a bit clunky and I have to put some thought into this. Hopefully the patches will be done next week. |
Which addresses: #5 The `config/storm-setup.yaml` format is modified and now assumes that there are SSH entries for all hosts in the Storm cluster. Signed-off-by: Pang Yan Han <[email protected]>
Hello,
I have read in your documentation "This repository makes it easy to run distributed, multiple server (multiple Zookeeper, multiple Storm Supervisor)".
But by "multiple server" you mean "multiple docker"?
I try to run this on multiple Rackspace instance and it's impossible. One thing is that you use docker link between dockers. And 2 servers can't communicate with link until you use a Docker ambassador (https://docs.docker.com/articles/ambassador_pattern_linking/)
So I start my zookeeper first, work fine:
./start-storm.sh zookeeper
Requirement already satisfied (use --upgrade to upgrade): PyYAML==3.11 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Cleaning up...
docker run -p 2181:2181 -p 2888:2888 -p 2888:2888/udp -p 3888:3888 --expose 2181 --expose 2888 --expose 3888 -p 127.0.0.1:49122:22 -h zookeeper --name zookeeper -d viki_data/zookeeper --my-ip-address 172.
17.42.1 --my-ip-address XX.XX.XX.237 --my-ip-address XXX.XXX.XXX.49
ed12a53c9cc1af767eb3cc811789309ede5c99eee595295f9e877e305ec17788
But after when I go to my second instance and try to launch nimbus, I got this "normal" errror:
./start-storm.sh nimbus
Requirement already satisfied (use --upgrade to upgrade): PyYAML==3.11 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Cleaning up...
docker run -p 6627:6627 -p 6772:6772 -p 6773:6773 --expose 6627 --expose 6772 --expose 6773 --name nimbus --link zookeeper:zk -h nimbus -d viki_data/storm-nimbus --my-ip-address 172.17.42.1 --my-ip-address XX.XX.XX.111 --my-ip-address XXX.XXX.XXX.232
3cba56650f16aefa0325ff1e16f545e140306183c3aaa4995607130ba2b4559f
2014/09/29 16:03:13 Error response from daemon: Could not find entity for zookeeper
Maybe I'm wrong and do something wrong with my configuration. Do I really need a ambassador or should I hack to use IP? I setup my zookeeper's IP inside storm-setup.yaml.
Thanks for the support.
The text was updated successfully, but these errors were encountered: