The Cloud Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.
If you are trying to run the word_count example in Cassandra Hadoop, and you encounter the following exception:java.lang.RuntimeException: java.lang.UnsupportedOperationException: no local connection available
Caused by: java.lang.UnsupportedOperationException: no local connection available
... 4 more
Then you have hit a problem with local IP resolution in Java.
Cassandra currently uses the following line to resolve IP addresses;
localAddresses = InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress());
There are better ways to do this using the NetworkInterface,
until Cassandra uses that you'll need to make sure that the bit of code
above resolves properly by manipulating your /etc/hosts to resolve
localhost to match the configuration in Cassandra, which by default is
looking for localhost bound to 127.0.0.1.
I submitted a patch for this. If you are having issues, please vote to get the patch accepted.https://issues.apache.org/jira/browse/CASSANDRA-3211
The Cloud Zone is brought to you in partnership with Mendix. Learn more about The Essentials of Digital Innovation and how it needs to be at the heart of every organization.
Published at DZone with permission of
Brian O' Neill
, DZone MVB
Opinions expressed by DZone contributors are their own.