Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listen and broadcast address are set to null #25

Closed
aryanet opened this issue May 23, 2012 · 2 comments
Closed

listen and broadcast address are set to null #25

aryanet opened this issue May 23, 2012 · 2 comments

Comments

@aryanet
Copy link
Contributor

aryanet commented May 23, 2012

From tomcat.log I have observed Priam detecting the correct cluster name and setting security group ACL and detecting other nodes in ASG, however what I don't understand is that why it has set the listen and broadcast addresses to null. I traced this down to the following line of code:

File:
src/main/java/com/netflix/priam/utils/TuneCassandra.java: TuneCassandra.updateYaml(config, config.getCassHome() + "/conf/cassandra.yaml", null, config.getSeedProviderName());

This doesn't seam right to me as it is explicitly setting hostname parameter for that method to null and inside the method there is no reference reading the hostname or public ip from IConfiguration.

I might be missing something in understanding how Priam supposed to work, and your advice is greatly appreciated.

@sorenvind
Copy link

The hostname is set to null to let Cassandra autodetect the correct address to bind to. This forces you to make Cassandra find the ip you intend to bind on as the localhost. See this FAQ for more info: http://wiki.apache.org/cassandra/FAQ#cant_listen_on_ip_any

I did this by simply changing /etc/hosts to let localhost resolve to the private ip address of the host.

@aryanet
Copy link
Contributor Author

aryanet commented May 26, 2012

OK, I get it. So am going to close this, but I have one last problem and I am going to discuss it in another thread.

@aryanet aryanet closed this as completed May 26, 2012
@aryanet aryanet reopened this May 28, 2012
@aryanet aryanet closed this as completed May 30, 2012
schakrovorthy added a commit that referenced this issue May 19, 2020
…rthy-3.11

Feature/cass 1799 schakrovorthy 3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants