You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Harish Kashyap T S (JIRA)" <ji...@apache.org> on 2009/04/07 11:53:12 UTC
[jira] Created: (CASSANDRA-63) Java Client for Cassandra
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
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.
[jira] Resolved: (CASSANDRA-63) Java Client for Cassandra
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-63.
-------------------------------------
Resolution: Fixed
You should be using the apache codebase now.
1. use 9160, the thrift port
3. the closest thing to user-level docs we have is http://code.google.com/p/the-cassandra-project/wiki/ThriftInterface
> 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.
[jira] Updated: (CASSANDRA-63) Java Client for Cassandra
Posted by "Harish Kashyap T S (JIRA)" <ji...@apache.org>.
[ 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.