Oh, I should also mention the following:
/home/cassandra/cassandra/server/bin/cassandra-cli
Welcome to cassandra CLI.
Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
cassandra> connect 127.0.0.1/9160
Connected to 127.0.0.1/9160
cassandra> show version
0.5-beta2
uname -a
FreeBSD 7.1-RELEASE-p9 FreeBSD 7.1-RELEASE-p9
java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [amd64-freebsd7]
gem19 list
*** LOCAL GEMS ***
cassandra (0.7.1)
json (1.2.0)
rake (0.8.7)
thrift (0.0.810255.1)
thrift_client (0.3.3)
On 10-01-16 6:16 PM, Andrew wrote:
Yes, it is definitely running:
ps auxww |grep cassandra
cassandra 80987 0.0 0.0 7060 1596 p0 I+ 6:05PM 0:02.63
/bin/sh /home/cassandra/cassandra/server/bin/cassandra -f
cassandra 81596 0.0 1.9 1277580 78104 p0 I+ 6:05PM 0:02.72
[java]
and
# telnet 127.0.0.1 9160
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^CConnection closed by foreign host.
# telnet 127.0.0.1 7000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
This is the last part of the log:
INFO - Starting up server gossip
DEBUG - Starting to listen on localhost/127.0.0.1
DEBUG - Binding thrift service to /127.0.0.1:9160
INFO - Cassandra starting up...
DEBUG - Disseminating load info ...
Is there anything I can do to better diagnose this?
Andrew
On 10-01-16 5:55 PM, Ryan King wrote:
On Fri, Jan 15, 2010 at 5:18 PM, Andrew<asn...@hostonfiber.com> wrote:
Hi there,
I'm trying to get Cassandra server up and going on a FreeBSD 7.1 box
and I'm
experiencing some challenges.
I would like to use the Ruby client, so I have followed the
instructions
from the Up and Running with Cassandra post:
http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
I performed the following to install cassandra (which according to the
CHANGES.txt installs 0.5rc1):
gem install cassandra
cassandra_helper cassandra
Can you verify that cassandra is running after this?
-ryan
Then in irb I ran the following:
irb(main):001:0> require 'cassandra'
=> true
irb(main):002:0> include Cassandra::Constants
=> Object
irb(main):003:0> twitter = Cassandra.new('Twitter')
=> #<Cassandra:8741040, @keyspace="Twitter", @schema={},
@servers=["127.0.0.1:9160"]>
irb(main):004:0> user = {'screen_name' => 'buttonscat'}
=> {"screen_name"=>"buttonscat"}
irb(main):005:0> twitter.insert(:Users, '5', user)
ThriftClient::NoServersAvailable: No live servers in ["127.0.0.1:9160"]
since 2010-01-15 18:10:04 -0700.
from
/usr/local/lib/ruby19/gems/1.9/gems/thrift_client-0.3.3/lib/thrift_client.rb:159:in
`next_server'
from
/usr/local/lib/ruby19/gems/1.9/gems/thrift_client-0.3.3/lib/thrift_client.rb:91:in
`connect!'
from
/usr/local/lib/ruby19/gems/1.9/gems/thrift_client-0.3.3/lib/thrift_client.rb:133:in
`raw_proxy'
from
/usr/local/lib/ruby19/gems/1.9/gems/thrift_client-0.3.3/lib/thrift_client.rb:124:in
`block in proxy'
from /usr/local/lib/ruby/1.9/timeout.rb:44:in `timeout'
from
/usr/local/lib/ruby19/gems/1.9/gems/thrift_client-0.3.3/lib/thrift_client.rb:123:in
`proxy'
from (eval):1:in `get_string_list_property'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/cassandra.rb:79:in
`client!'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/cassandra.rb:74:in
`client'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/cassandra.rb:309:in
`schema'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/columns.rb:31:in
`column_family_property'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/columns.rb:20:in
`column_name_class_for_key'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/columns.rb:12:in
`column_name_class'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/cassandra.rb:278:in
`validate_params'
from
/usr/local/lib/ruby19/gems/1.9/gems/cassandra-0.7.1/lib/cassandra/cassandra.rb:103:in
`insert'
from (irb):5
from /usr/local/bin/irb19:12:in `<main>'
However, I am certain that the server is running and I can telnet to
it:
telnet localhost 9160
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Any thoughts?