On Mon, Sep 23, 2013 at 12:10 AM, Mohanadarshan Vivekanandalingam <
[email protected]> wrote:

> Hi,
>
> Thanks Shelan, It helps a lot..
>
> @Nirmal, yes. That also a got idea but try to find a good solution.
> Thanks.
>
Yes! It's good to look for such alternatives instead of directly creating a
socket connection.

>
> Regards,
> Mohan
>
>
> On Sun, Sep 22, 2013 at 10:10 PM, Shelan Perera <[email protected]> wrote:
>
>> Hi,
>>
>> I have tried this some time back. If not answer is along that to stop
>> retrying.
>>
>> CassandraHostConfigurator hostConfigurator = new 
>> CassandraHostConfigurator(connectionUrl);
>>             hostConfigurator.setRetryDownedHosts(false);
>>
>>
>> Thanks
>>
>>
>>
>> On Sun, Sep 22, 2013 at 9:57 PM, Nirmal Fernando <[email protected]> wrote:
>>
>>> 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 <
>>> [email protected]> 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: [email protected]
>>>> phone:(+94) 771117673
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> 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
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Shelan Perera*
>>
>> Senior Software Engineer
>> **
>> Integration Technology Group
>> *WSO2, Inc. : wso2.com*
>> lean.enterprise.middleware.
>>
>> *Blog*             :   blog.shelan.org
>> *Linked-i*n      :   http://www.linkedin.com/pub/shelan-perera/a/194/465
>> *Twitter*         :    https://twitter.com/#!/shelan
>>
>> *Mobile*          : +94 772 604 402
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com *
> *lean.enterprise.middleware.*
> *
> *
> email: [email protected]
> phone:(+94) 771117673
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to