modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e72b1e035a9eeb757da0cc5a3a6245926622913f
Author: John Sanda <jsanda(a)redhat.com>
Date: Thu May 30 21:40:02 2013 -0400
set hostname of dev-container storage node to localhost by default
If the hostname option is not set, the storage installer defaults to
InetAddress.getLocalHost().getHostName() which may not return localhost
depending on your hosts configuration. This in turn has led to some problems
with people being able to connect to Cassandra. By explicitly setting the
hostname to 127.0.0.1, I hope we will avoid those issues in the future. Also
note that I explicitly chose 127.0.0.1 instead of localhost since localhost
aliases (e.g., 127.0.0.1, 127.0.0.2, etc.) are used to run multiple nodes on
the same box.
diff --git a/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml
b/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml
index cbf6cbd..598a02f 100644
--- a/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml
+++ b/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml
@@ -796,6 +796,7 @@ data=${safe.datadir}/storage/data
saved-caches=${safe.datadir}/storage/saved_caches
heap-size=256M
heap-new-size=64M
+hostname=127.0.0.1
</echo>
<echo file="${project.build.outputDirectory}/bin/rhqctl.properties"
append="true">rhqctl.install.storage-config=bin/rhq-storage.properties</echo>
Show replies by date