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