cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harish Kashyap T S (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-63) Java Client for Cassandra
Date Tue, 07 Apr 2009 09:55:13 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harish Kashyap T S updated CASSANDRA-63:
----------------------------------------

    Attachment: SimpleCassandraClient.java

Client Program Attatched.

> Java Client for Cassandra
> -------------------------
>
>                 Key: CASSANDRA-63
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-63
>             Project: Cassandra
>          Issue Type: Question
>         Environment: Fedora 9, JDK 1.7
>            Reporter: Harish Kashyap T S
>         Attachments: SimpleCassandraClient.java
>
>
> I am trying to build a simple java client for cassandra using the sample code posted
in this
> thread: 
>               http://code.google.com/p/the-cassandra-project/issues/detail?id=47
>               ClientProgram: SimpleCassandraClient.java
> I have few questions regarding this:
> 1)Which port should be used to open a socket connection? 
>   dt_socket->8888 or thrift port-> 9160 or port 7002 as specified in the above
client
> program..
> 2) When I open a socket connection using dt_socket port and try to insert, following
> messages are shown at server console: How to resolve this..?
>    Listening for transport dt_socket at address: 8888
>    Debugger failed to attach: handshake failed - received >< - excepted >JDWP-Handshake<
>    Debugger failed to attach: timeout during handshake
>  2a)  When I am trying to do sequential insert, this exception was thrown:
>       Exception in thread "main"
> org.apache.thrift.transport.TTransportException:java.net.SocketException: Connection
> reset by peer: socket write error
>  
> 3) Are there any documentation available explaining steps to develop a simple client?
> I am using codebase from GitHub development branch r78 as suggested. Storage-conf.xml
> format is also in the similar lines. I am able to insert through the web interface
> but not through the client program..
> Any help regarding this is highly appreciated..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message