You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by amulya rattan <ta...@gmail.com> on 2013/02/18 09:08:23 UTC

Cassandra on Red Hat 6.3

I followed step-by-step instructions for installing Cassandra on Red Hat
Linux Server 6.3 from the datastax site, without much success. Apparently
it installs fine but starting cassandra service does nothing(no ports are
bound so opscenter/cli doesnt work). When I check service's status, it
shows "Cassandra dead but pid file exists". When I try launching Cassandra
from /usr/sbin, it throws "Error opening zip file or JAR manifest missing :
/lib/jamm-0.2.5.jar" and stop, so clearly that's why service isn't running.

While I investigate it further, I thought it'd be worthwhile to put this on
the list and see if anybody else saw similar issue. I must point out that
this is fresh machine with fresh Cassandra installation so no conflicts
with any previous installations are possible. So anybody else came across
something similar?

~Amulya

Re: Cassandra on Red Hat 6.3

Posted by Michael Shuler <mi...@pbandjelly.org>.
On 02/18/2013 03:07 PM, amulya rattan wrote:
> It's throwing MalformedURLException
> 
> Error: Exception thrown by the agent : java.net.MalformedURLException:
> Local host name unknown: java.net.UnknownHostException: ip-10-0-0-228:
> ip-10-0-0-228
> 
> Where should I set the correct IP of the machine?

The correct question might be "where should I let the machine know who
itself is?"  ;-)

It looks like the machine's hostname is "ip-10-0-0-228" and it does not
know how to reach that name over the network, since it cannot resolve
that name to an IP address.  'ping ip-10-0-0-228' will also fail on this
machine, I assume.  However your machines are being installed and set up
is broken, if they don't know their own names, but this is easily fixable.

Here's an example - this box's hostname is "pono" and FQDN is
"pono.12.am" - the machine knows where to find these via entries in
/etc/hosts (as well as an entry for its real IP):

mshuler@pono:~$ ping -c1 pono
PING pono.12.am (127.0.1.1) 56(84) bytes of data.
64 bytes from pono.12.am (127.0.1.1): icmp_req=1 ttl=64 time=0.021 ms

--- pono.12.am ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.021/0.021/0.021/0.000 ms
mshuler@pono:~$ ping -c1 pono.12.am
PING pono.12.am (127.0.1.1) 56(84) bytes of data.
64 bytes from pono.12.am (127.0.1.1): icmp_req=1 ttl=64 time=0.021 ms

--- pono.12.am ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.021/0.021/0.021/0.000 ms
mshuler@pono:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       pono.12.am pono
10.214.235.223  pono.12.am pono

# The following lines are desirable for IPv6 capable hosts
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
mshuler@pono:~$

-- 
Kind regards,
Michael

Re: Cassandra on Red Hat 6.3

Posted by amulya rattan <ta...@gmail.com>.
It's throwing MalformedURLException

Error: Exception thrown by the agent : java.net.MalformedURLException:
Local host name unknown: java.net.UnknownHostException: ip-10-0-0-228:
ip-10-0-0-228

Where should I set the correct IP of the machine?




2013/2/19 aaron morton <aa...@thelastpickle.com>

> Nothing jumps out.
>
> Check /var/log/cassandra/output.log , that's where stdout and std err are
> directed.
>
> Check file permissions.
>
> Cheers
>
>    -----------------
> Aaron Morton
> Freelance Cassandra Developer
> New Zealand
>
> @aaronmorton
> http://www.thelastpickle.com
>
> On 18/02/2013, at 9:08 PM, amulya rattan <ta...@gmail.com> wrote:
>
> I followed step-by-step instructions for installing Cassandra on Red Hat
> Linux Server 6.3 from the datastax site, without much success. Apparently
> it installs fine but starting cassandra service does nothing(no ports are
> bound so opscenter/cli doesnt work). When I check service's status, it
> shows "Cassandra dead but pid file exists". When I try launching Cassandra
> from /usr/sbin, it throws "Error opening zip file or JAR manifest missing :
> /lib/jamm-0.2.5.jar" and stop, so clearly that's why service isn't running.
>
> While I investigate it further, I thought it'd be worthwhile to put this
> on the list and see if anybody else saw similar issue. I must point out
> that this is fresh machine with fresh Cassandra installation so no
> conflicts with any previous installations are possible. So anybody else
> came across something similar?
>
> ~Amulya
>
>
>

Re: Cassandra on Red Hat 6.3

Posted by aaron morton <aa...@thelastpickle.com>.
Nothing jumps out. 

Check /var/log/cassandra/output.log , that's where stdout and std err are directed. 

Check file permissions. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 18/02/2013, at 9:08 PM, amulya rattan <ta...@gmail.com> wrote:

> I followed step-by-step instructions for installing Cassandra on Red Hat Linux Server 6.3 from the datastax site, without much success. Apparently it installs fine but starting cassandra service does nothing(no ports are bound so opscenter/cli doesnt work). When I check service's status, it shows "Cassandra dead but pid file exists". When I try launching Cassandra from /usr/sbin, it throws "Error opening zip file or JAR manifest missing : /lib/jamm-0.2.5.jar" and stop, so clearly that's why service isn't running. 
> 
> While I investigate it further, I thought it'd be worthwhile to put this on the list and see if anybody else saw similar issue. I must point out that this is fresh machine with fresh Cassandra installation so no conflicts with any previous installations are possible. So anybody else came across something similar?
> 
> ~Amulya