cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew <asn...@hostonfiber.com>
Subject Re: Problems with FreeBSD
Date Sun, 17 Jan 2010 01:16:24 GMT
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<asnook@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?
>>
>>      

Mime
View raw message