Cassandra on Linode: Dark magic isn’t working

cassandralinodeprivate-ip

Yes, I realize I'm crossing the streams by running Cassandra on Linode. Yes, I know it would be better to run it on Rackspace or Amazon, but that's immaterial right now.

Basically, I've got a Private IP set up for each Linode that I plan to include in my cluster. I can ping my Linodes on these Private IPs, so they are able to talk to one another.

Here's some snippets from my "master" Linode's storage-conf.xml file:

<Seeds>
    <Seed>192.168.133.219</Seed>
</Seeds>
<ListenAddress>192.168.133.219</ListenAddress>
<StoragePort>7000</StoragePort>
<ThriftAddress>192.168.133.219</ThriftAddress>
<ThriftPort>9160</ThriftPort>

The server's private IP is 192.168.133.219.

The problem that I'm having is this: when I go to start up Cassandra, this is what happens:

$ cassandra -f
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: (none): (none)

I don't know if it'll help, but here's my /etc/network/interfaces file:

auto lo
iface lo inet loopback

auto eth0 eth0:0

iface eth0 inet static
 address 97.107.137.96
 netmask 255.255.255.0
 gateway 97.107.137.1

iface eth0:0 inet static
 address 192.168.133.219
 netmask 255.255.128.0

The Linode has no other configuration. I haven't even changed the hosts file. Let me know if I'm missing something. Any insight is appreciated!

Best Answer

Well, guys, I seem to have figured it out on my own. Pretty dumb problem, actually.

$ hostname <linode hostname goes here>
$ echo /etc/hostname < "<linode hostname goes here>"
$ reboot

And that was it. Holy crap.

Related Topic