I'm not sure whether there's some API to do this, but if there's none, you
can simply try to connect to the Cassandra port and check whether it's up
or not.


On Sun, Sep 22, 2013 at 9:36 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> Hi All,
>
> Is there any way to check whether Cassandra is up or not??
> At the moment I have used following method to check for pool hosts and
> verify Cassandra up or not.
>
> Set knownPools = cluster.getKnownPoolHosts(false);
>
> But this hector API method continuously retrying to connect with Cassandra
> and prints logs in back end.
>
> [2013-09-22 20:56:03,890]  INFO - {CassandraHostRetryService}  Downed Host
> retry status false with host: localhost(127.0.0.1):9160
> [2013-09-22 20:56:13,890]  INFO - {CassandraHostRetryService}  Not
> checking that localhost(127.0.0.1):9160 is a member of the ring since there
> are no live hosts
> [2013-09-22 20:56:13,891]  WARN - {CassandraHostRetryService}  Downed
> localhost(127.0.0.1):9160 host still appears to be down: Unable to open
> transport to localhost(127.0.0.1):9160 , java.net.ConnectExceptio
>
>
> Is there any way to avoid this retry? or Is there any other better
> approach to check whether Cassandra is up or not?
>
>
> Thanks,
> Mohan
>
> --
> *V. Mohanadarshan*
> *Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com *
> *lean.enterprise.middleware.*
> *
> *
> email: mo...@wso2.com
> phone:(+94) 771117673
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to