Hi Dennis,
Please change your server addresses to the local loopback address (e.g., 
127.0.0.1). Then you can log on the same machine from a different terminal and 
try
./cassandra-cli --host 127.0.0.1 -p 9160.
This should succeed without any problems if you have a properly configured 
server and machine.
If this succeeds then you just have a typo in your address and/or port.

If you still get the same errors, please check conf/cassandra-env.sh file to 
make sure that the java heap size is set.
Please check what values are assigned to MAX_HEAP_SIZE and HEAP_NEWSIZE 
variables.
If these have meaningful numbers assigned (larger than 100M), then also make 
sure that you have enough memory available on your machine.

Regarding the JAVA_HOME environment, please set it before you start the server. 
You can type 'env' to make sure that that JAVA_HOME is set to the correct path.

If none of these fix your problem, please send your cassandra.yaml and 
cassandra-env.sh files to me and I will try to recreate your problem.

Good luck!
Onur

On Apr 19, 2013, at 7:07 PM, ?????? <[email protected]<http://qq.com>> wrote:

Hello,

    Could I consult you with some questions of creating keyspace?

    In the tutorial, it says I need to connect to the cassandra-cli, so I enter 
the following command "cassandra-cli -host 42.96.192.11 -port 9160", where 
42.96.192.11 is my host address. However it throws "Exception connecting to 
42.96.192.11/9160. Reason: Connection refused." to me . What is the problem 
with my operation?

PS:I change some part of file cassandra.yaml.  initial_token: 0 seeds: 
42.96.192.11 listen_address: 42.96.192.11 rpc_address: 0.0.0.0 rpc_port: 9160
    If I change the command to "cassandra-cli -host 42.96.192.11 -port 22" It 
throws Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

    When I try to open the cassandra-cli.bat file in the document of bin, it 
always says "JAVA_HOME must be set". I add the following command in the 
/etc/profile
"#set cassandra environment
CASSANDRA_HOME=/usr/local/apache-cassandra-0.7.3
export JAVA_HOME=/opt/jdk1.7.0_17
export 
CLASSPATH=.:$JAVA_HOME/lib:$CASSANDRA_HOME/lib:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar
export PATH=$CASSANDRA_HOME/bin:$JAVA_HOME/bin:$PATH"

    It still says "JAVA_HOME must be set". What the problem is ?

    60

    Looking forward for your reply and best wishes.

Yours

Dennis



Reply via email to