You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by 橋本誠 <to...@auone.jp> on 2011/02/20 02:10:45 UTC

cassandra-cli does not work

Hello
I am trying to run cassandra v0.7.2 on ubuntu 10.04.
Cassandra works but in cassandra-cli any command such as help does not respond.


$ ./cassandra -f
 INFO 10:08:43,618 Logging initialized
 INFO 10:08:43,634 Heap size: 1534066688/1535115264
 INFO 10:08:43,648 JNA not found. Native methods will be disabled.
 INFO 10:08:43,707 Loading settings from
file:/usr/local/oss/apache-cassandra-0.7.2-src/conf/cassandra.yaml
 INFO 10:08:43,894 DiskAccessMode 'auto' determined to be standard,
indexAccessMode is standard
 INFO 10:08:44,303 Creating new commitlog segment
/var/lib/cassandra/commitlog/CommitLog-1298164124303.log
 INFO 10:08:44,625 Opening /var/lib/cassandra/data/system/LocationInfo-f-2
 INFO 10:08:44,672 Opening /var/lib/cassandra/data/system/LocationInfo-f-1
 INFO 10:08:44,978 Couldn't detect any schema definitions in local storage.
 INFO 10:08:44,980 Found table data in data directories. Consider
using JMX to call
org.apache.cassandra.service.StorageService.loadSchemaFromYaml().
 INFO 10:08:45,018 Replaying
/var/lib/cassandra/commitlog/CommitLog-1298162826152.log
 INFO 10:08:45,018 Finished reading
/var/lib/cassandra/commitlog/CommitLog-1298162826152.log
 INFO 10:08:45,019 Log replay complete
 INFO 10:08:45,090 Cassandra version: 0.7.2-SNAPSHOT
 INFO 10:08:45,090 Thrift API version: 19.4.0
 INFO 10:08:45,091 Loading persisted ring state
 INFO 10:08:45,136 Starting up server gossip
 INFO 10:08:45,190 switching in a fresh Memtable for LocationInfo at
CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1298164124303.log',
position=148)
 INFO 10:08:45,192 Enqueuing flush of
Memtable-LocationInfo@31534957(29 bytes, 1 operations)
 INFO 10:08:45,204 Writing Memtable-LocationInfo@31534957(29 bytes, 1
operations)
 INFO 10:08:45,517 Completed flushing
/var/lib/cassandra/data/system/LocationInfo-f-3-Data.db (80 bytes)
 INFO 10:08:45,716 Using saved token 73812104570163764651168719252319949926
 INFO 10:08:45,718 switching in a fresh Memtable for LocationInfo at
CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1298164124303.log',
position=444)
 INFO 10:08:45,719 Enqueuing flush of Memtable-LocationInfo@5057266(53
bytes, 2 operations)
 INFO 10:08:45,720 Writing Memtable-LocationInfo@5057266(53 bytes, 2 operations)
 INFO 10:08:45,928 Completed flushing
/var/lib/cassandra/data/system/LocationInfo-f-4-Data.db (163 bytes)
 INFO 10:08:45,931 Compacting
[org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-1-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-2-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-3-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-4-Data.db')]
HttpAdaptor version 3.0.2 started on port 8081
 INFO 10:08:46,339 mx4j successfuly loaded
 INFO 10:08:46,370 Compacted to
/var/lib/cassandra/data/system/LocationInfo-tmp-f-5-Data.db.  741 to
447 (~60% of original) bytes for 3 keys.  Time: 436ms.
 INFO 10:08:46,547 Binding thrift service to localhost/127.0.0.1:9160
 INFO 10:08:46,552 Using TFastFramedTransport with a max frame size of
15728640 bytes.
 INFO 10:08:46,581 Listening for thrift clients...

$ ./cassandra-cli --host localhost
Connected to: "Test Cluster" on localhost/9160
Welcome to cassandra CLI.

Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
[default@unknown] help

How I solve this problem ?

Thanks,
MH

Re: cassandra-cli does not work

Posted by Brandon Williams <dr...@gmail.com>.
Add a semicolon.

On Feb 19, 2011 7:11 PM, "橋本誠" <to...@auone.jp> wrote:

Hello
I am trying to run cassandra v0.7.2 on ubuntu 10.04.
Cassandra works but in cassandra-cli any command such as help does not
respond.


$ ./cassandra -f
 INFO 10:08:43,618 Logging initialized
 INFO 10:08:43,634 Heap size: 1534066688/1535115264
 INFO 10:08:43,648 JNA not found. Native methods will be disabled.
 INFO 10:08:43,707 Loading settings from
file:/usr/local/oss/apache-cassandra-0.7.2-src/conf/cassandra.yaml
 INFO 10:08:43,894 DiskAccessMode 'auto' determined to be standard,
indexAccessMode is standard
 INFO 10:08:44,303 Creating new commitlog segment
/var/lib/cassandra/commitlog/CommitLog-1298164124303.log
 INFO 10:08:44,625 Opening /var/lib/cassandra/data/system/LocationInfo-f-2
 INFO 10:08:44,672 Opening /var/lib/cassandra/data/system/LocationInfo-f-1
 INFO 10:08:44,978 Couldn't detect any schema definitions in local storage.
 INFO 10:08:44,980 Found table data in data directories. Consider
using JMX to call
org.apache.cassandra.service.StorageService.loadSchemaFromYaml().
 INFO 10:08:45,018 Replaying
/var/lib/cassandra/commitlog/CommitLog-1298162826152.log
 INFO 10:08:45,018 Finished reading
/var/lib/cassandra/commitlog/CommitLog-1298162826152.log
 INFO 10:08:45,019 Log replay complete
 INFO 10:08:45,090 Cassandra version: 0.7.2-SNAPSHOT
 INFO 10:08:45,090 Thrift API version: 19.4.0
 INFO 10:08:45,091 Loading persisted ring state
 INFO 10:08:45,136 Starting up server gossip
 INFO 10:08:45,190 switching in a fresh Memtable for LocationInfo at
CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1298164124303.log',
position=148)
 INFO 10:08:45,192 Enqueuing flush of
Memtable-LocationInfo@31534957(29 bytes, 1 operations)
 INFO 10:08:45,204 Writing Memtable-LocationInfo@31534957(29 bytes, 1
operations)
 INFO 10:08:45,517 Completed flushing
/var/lib/cassandra/data/system/LocationInfo-f-3-Data.db (80 bytes)
 INFO 10:08:45,716 Using saved token 73812104570163764651168719252319949926
 INFO 10:08:45,718 switching in a fresh Memtable for LocationInfo at
CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1298164124303.log',
position=444)
 INFO 10:08:45,719 Enqueuing flush of Memtable-LocationInfo@5057266(53
bytes, 2 operations)
 INFO 10:08:45,720 Writing Memtable-LocationInfo@5057266(53 bytes, 2
operations)
 INFO 10:08:45,928 Completed flushing
/var/lib/cassandra/data/system/LocationInfo-f-4-Data.db (163 bytes)
 INFO 10:08:45,931 Compacting
[org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-1-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-2-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-3-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-4-Data.db')]
HttpAdaptor version 3.0.2 started on port 8081
 INFO 10:08:46,339 mx4j successfuly loaded
 INFO 10:08:46,370 Compacted to
/var/lib/cassandra/data/system/LocationInfo-tmp-f-5-Data.db.  741 to
447 (~60% of original) bytes for 3 keys.  Time: 436ms.
 INFO 10:08:46,547 Binding thrift service to localhost/127.0.0.1:9160
 INFO 10:08:46,552 Using TFastFramedTransport with a max frame size of
15728640 bytes.
 INFO 10:08:46,581 Listening for thrift clients...

$ ./cassandra-cli --host localhost
Connected to: "Test Cluster" on localhost/9160
Welcome to cassandra CLI.

Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
[default@unknown] help

How I solve this problem ?

Thanks,
MH

Re: cassandra-cli does not work

Posted by tokoma <to...@auone.jp>.
Hello Brandon and Tan,

Thank you for giving me the resolution.
I am a Cassandra 0.6 and cassandra-cli commands works without semi-colon.
Now I know the difference between 0.6 and 0.7.

Regards,
MH

Re: cassandra-cli does not work

Posted by Tan Yeh Zheng <ye...@chartnexus.com>.
you need to append a ; at the end of your command.
On Sun, 2011-02-20 at 10:10 +0900, 橋本誠 wrote:
> Hello
> I am trying to run cassandra v0.7.2 on ubuntu 10.04.
> Cassandra works but in cassandra-cli any command such as help does not respond.
> 
> 
> $ ./cassandra -f
>  INFO 10:08:43,618 Logging initialized
>  INFO 10:08:43,634 Heap size: 1534066688/1535115264
>  INFO 10:08:43,648 JNA not found. Native methods will be disabled.
>  INFO 10:08:43,707 Loading settings from
> file:/usr/local/oss/apache-cassandra-0.7.2-src/conf/cassandra.yaml
>  INFO 10:08:43,894 DiskAccessMode 'auto' determined to be standard,
> indexAccessMode is standard
>  INFO 10:08:44,303 Creating new commitlog segment
> /var/lib/cassandra/commitlog/CommitLog-1298164124303.log
>  INFO 10:08:44,625 Opening /var/lib/cassandra/data/system/LocationInfo-f-2
>  INFO 10:08:44,672 Opening /var/lib/cassandra/data/system/LocationInfo-f-1
>  INFO 10:08:44,978 Couldn't detect any schema definitions in local storage.
>  INFO 10:08:44,980 Found table data in data directories. Consider
> using JMX to call
> org.apache.cassandra.service.StorageService.loadSchemaFromYaml().
>  INFO 10:08:45,018 Replaying
> /var/lib/cassandra/commitlog/CommitLog-1298162826152.log
>  INFO 10:08:45,018 Finished reading
> /var/lib/cassandra/commitlog/CommitLog-1298162826152.log
>  INFO 10:08:45,019 Log replay complete
>  INFO 10:08:45,090 Cassandra version: 0.7.2-SNAPSHOT
>  INFO 10:08:45,090 Thrift API version: 19.4.0
>  INFO 10:08:45,091 Loading persisted ring state
>  INFO 10:08:45,136 Starting up server gossip
>  INFO 10:08:45,190 switching in a fresh Memtable for LocationInfo at
> CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1298164124303.log',
> position=148)
>  INFO 10:08:45,192 Enqueuing flush of
> Memtable-LocationInfo@31534957(29 bytes, 1 operations)
>  INFO 10:08:45,204 Writing Memtable-LocationInfo@31534957(29 bytes, 1
> operations)
>  INFO 10:08:45,517 Completed flushing
> /var/lib/cassandra/data/system/LocationInfo-f-3-Data.db (80 bytes)
>  INFO 10:08:45,716 Using saved token 73812104570163764651168719252319949926
>  INFO 10:08:45,718 switching in a fresh Memtable for LocationInfo at
> CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1298164124303.log',
> position=444)
>  INFO 10:08:45,719 Enqueuing flush of Memtable-LocationInfo@5057266(53
> bytes, 2 operations)
>  INFO 10:08:45,720 Writing Memtable-LocationInfo@5057266(53 bytes, 2 operations)
>  INFO 10:08:45,928 Completed flushing
> /var/lib/cassandra/data/system/LocationInfo-f-4-Data.db (163 bytes)
>  INFO 10:08:45,931 Compacting
> [org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-1-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-2-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-3-Data.db'),org.apache.cassandra.io.sstable.SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-f-4-Data.db')]
> HttpAdaptor version 3.0.2 started on port 8081
>  INFO 10:08:46,339 mx4j successfuly loaded
>  INFO 10:08:46,370 Compacted to
> /var/lib/cassandra/data/system/LocationInfo-tmp-f-5-Data.db.  741 to
> 447 (~60% of original) bytes for 3 keys.  Time: 436ms.
>  INFO 10:08:46,547 Binding thrift service to localhost/127.0.0.1:9160
>  INFO 10:08:46,552 Using TFastFramedTransport with a max frame size of
> 15728640 bytes.
>  INFO 10:08:46,581 Listening for thrift clients...
> 
> $ ./cassandra-cli --host localhost
> Connected to: "Test Cluster" on localhost/9160
> Welcome to cassandra CLI.
> 
> Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
> [default@unknown] help
> 
> How I solve this problem ?
> 
> Thanks,
> MH

-- 
Best Regards,

Tan Yeh Zheng
Software Programmer

____________ ChartNexus® :: Chart Your Success ____________

ChartNexus Pte. Ltd.

15 Enggor Street #10-01
Realty Center
Singapore 079716
Tel:  (65) 6491 1456
Website: www.chartnexus.com

Disclaimer:
This email is confidential and intended only for the use of the
individual or individuals named above and may contain information that
is privileged. If you are not the intended recipient, you are notified
that any dissemination, distribution or copying of this email is
strictly prohibited.