ERROR:Start cassandra in embedded service

53 views
Skip to first unread message

Muthu Selvan

unread,
Jul 15, 2014, 4:29:34 PM7/15/14
to spring-dat...@googlegroups.com


Hello All , 

I am getting the below exception when trying to start embeddedcassandra from java code from gradle .

ERROR  : rename 'authority' to 'authorizer' in cassandra.yaml but still getting the same error 

I have changed all the solution which provided in below message , please check the error and help me to start the cassandra database using astyanax embedded driver .

I have renamed 'authority' to 'authorizer' in cassandra.yaml but still getting the same error 


CODE : 

public void start() throws IOException,
        InterruptedException  {


    try {

        System.setProperty("cassandra.config", "file:/Users/mselv2/dse/dse-4.5.0/resources/cassandra/conf/cassandra.yaml");
        System.setProperty("log4j.configuration", "file:/Users/mselv2/dse/dse-4.5.0/resources/cassandra/conf/log4j-server.properties");
        System.setProperty("storage-config", "/Users/mselv2/dse/dse-4.5.0/resources/cassandra/conf/");

        System.out.println("Starting cassandra in cloud ");

        EmbeddedCassandra embeddedCassandra = new EmbeddedCassandra();

        embeddedCassandra.start();
    } catch(Exception e ) {
        e.printStackTrace(System.out);
    }


}


ERROR and Exception : 

Please rename 'authority' to 'authorizer' in cassandra.yaml

java.lang.ClassNotFoundException: org.xerial.snappy.SnappyNativeLoader not found.
 
Cannot initialize native Snappy library. Compression on new tables will be disabled.
MemoryMeter uninitialized (jamm not specified as java agent); KeyCache size in JVM Heap will not be calculated accurately. Usually this means cassandra-env.sh disabled jamm because you are using a buggy JRE; upgrade to the Sun JRE instead
No host ID found, created b43f8390-ab5b-4b31-81dc-d5a909c6b82f (Note: This should happen exactly once per node).

Please help me to solve this issue and solution for java code to start the cassandra database in embedded mode ?

ERROR IN IDE : 



Thanks ,
Muthu Selvan SR 
Reply all
Reply to author
Forward
0 new messages