check your cqlshrc file (sometimes in ~/.cassandra) ? I've been caught out before when playing with a RC of 2.1
On 30 September 2014 01:25, Andrew Cobley <a.e.cob...@dundee.ac.uk> wrote: > Without the apache cassandra running I ran jps -l on this machine ,the > only result was > > 338 sun.tool.jps.Jps > > The Mac didn’t like the netstat command so I ran > > netstat -atp tcp | grep 9160 > > no result > > Also for the native port: > > netstat-atp tcp | grep 9042 > > gave no result (command may be wrong) > > So I ran port scan using the network utility (between 0 and 10000). > Results as shown: > > > Port Scan has started… > > Port Scanning host: 127.0.0.1 > > Open TCP Port: 631 ipp > Port Scan has completed… > > > Hope this helps. > > Andy > > > On 29 Sep 2014, at 15:09, Sumod Pawgi <spa...@gmail.com> wrote: > > Please run jps to check which Java services are still running and to > make sure if c* is running. Then please check if 9160 port is in use. > netstat -nltp | grep 9160 > > This will confirm what is happening in your case. > > Sent from my iPhone > > On 29-Sep-2014, at 7:15 pm, Andrew Cobley <a.e.cob...@dundee.ac.uk> wrote: > > Hi All, > > Just come across this one, I’m at a bit of a loss on how to fix it. > > A user here did the following steps > > On a MAC > Install Datastax Enterprise (DSE) using the dmg file > test he can connect using the DSE cqlsh window > Unistall DSE (full uninstall which stops the services) > > download apache cassandra 2.1.0 > unzip > change to the non directory run sudo ./cassandra > > Now when he tries to connect using cqlsh from apache cassandra 2.1.0 bin > he gets > > Connection error: ('Unable to connect to any servers', {'127.0.0.1': > ConnectionShutdown('Connection <AsyncoreConnection(4528514448) > 127.0.0.1:9160 (closed)> is already closed',)}) > > This is probably related to > > http://mail-archives.apache.org/mod_mbox/incubator-cassandra-user/201409.mbox/%3CCALHCZd7RGSahJUbK32WoTr9JRoA+4K=mrfocmxuk0nbzoqq...@mail.gmail.com%3E > > but I can’t see why the uninstall of DSE is leaving the apache cassandra > release cqlsh unable to attach to the apache cassandra runtime. > > Ta > Andy > > > > The University of Dundee is a registered Scottish Charity, No: SC015096 > > > > The University of Dundee is a registered Scottish Charity, No: SC015096 > -- Ben Bromhead Instaclustr | www.instaclustr.com | @instaclustr <http://twitter.com/instaclustr> | +61 415 936 359