incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahab Yunus <shahab.yu...@gmail.com>
Subject Re: Cassandra nodetool could not resolve '127.0.0.1': unknown host
Date Tue, 17 Sep 2013 12:45:47 GMT
Have you tried specifying your hostname (not localhost) in cassandra.yaml
and start it?

Regards,
Shahab


On Tue, Sep 17, 2013 at 8:39 AM, pradeep kumar <pradeepkumardv@gmail.com>wrote:

> I am very new to cassandra. Just started exploring.
>
> I am running a single node cassandra server & facing a problem in seeing
> status of the cassandra using nodetool command.
>
> i have hostname configured on my VM as myMachineIP cass1 in /etc/hosts
>
> and
>
> i configured my cassandra_instal_path/conf/cassandra.yaml file with
> listen_address, rpc_address as localhost and clustername as casscluster
>
> (also tried with my hostname which is cass1 as listen_address/rpc_address)
>
> Nut not sure what is the reason why i am not able to get statususing
> nodetool command.
>
> $ nodetool
>
> Cannot resolve '127.0.0.1': unknown host
>
> $ nodetool -host 127.0.0.1
>
> Cannot resolve '127.0.0.1': unknown host
>
> $ nodetool -host cass1
>
> Cannot resolve 'cass1': unknown host
>
> But i am able to connect to cassandra-cli
>
> console output:
>
> Connected to: "casscluster" on 127.0.0.1/9160 Welcome to Cassandra CLI
> version 1.2.8
>
> Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
>
> my /etc/hosts looks like:
>
> 127.0.0.1 localhost.localdomain localhost.localdomain localhost4
> localhost4.localdomain4 localhost cass1
>
> ::1 localhost.localdomain localhost.localdomain localhost6
> localhost6.localdomain6 localhost cass1
>
> [myMachineIP] cass1
>
> what could be the reason why i am not able to run nodetool?
>
> Please help.
>

Mime
View raw message