<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Tag: jdbc - Recent Posts</title>
		<link>http://www.datastax.com/support-forums/tags/jdbc</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 06:48:47 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/tags/jdbc" rel="self" type="application/rss+xml" />

		<item>
			<title>thepaul on "JDBC interaction with Cassandra"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-interaction-with-cassandra#post-4420</link>
			<pubDate>Tue, 31 Jul 2012 14:00:47 +0000</pubDate>
			<dc:creator>thepaul</dc:creator>
			<guid isPermaLink="false">4420@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That's right, the client software must be able to reconnect to a different node if the coordinator goes down.  Ideally the CQL driver or other Cassandra connector library would take care of that for you, but not all of them do yet.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hardikupadhyay on "JDBC interaction with Cassandra"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-interaction-with-cassandra#post-4394</link>
			<pubDate>Tue, 31 Jul 2012 08:26:01 +0000</pubDate>
			<dc:creator>hardikupadhyay</dc:creator>
			<guid isPermaLink="false">4394@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I want to understand that how cassandra ensures high availability. What i know is when we query casssandra database for data, a node called coordinator route the query to the appropriate cassandra node in the cluster with the required data. But what if the node which we specify in JDBC connection URL (Which i think will act as coordinator in the cluster, please make me correct if i am wrong) itself down? In this case how come cassandra ensures high availability?&#60;/p&#62;
&#60;p&#62;Perhaps we as a developer must provide fallback mechanism for that?&#60;/p&#62;
&#60;p&#62;Please help me out to understand this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "JDBC interaction with Cassandra"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-interaction-with-cassandra#post-3961</link>
			<pubDate>Fri, 27 Jul 2012 09:03:30 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">3961@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I don't know about JDBC but if you want to insert columns that you don't have in your schema you can use Thrift which allows that for sure.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hardikupadhyay on "JDBC interaction with Cassandra"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-interaction-with-cassandra#post-3943</link>
			<pubDate>Fri, 27 Jul 2012 05:31:56 +0000</pubDate>
			<dc:creator>hardikupadhyay</dc:creator>
			<guid isPermaLink="false">3943@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks for the reply, one more thing which i like to know is ,can i insert different columns which i have not specified in schema definition?&#60;/p&#62;
&#60;p&#62;Because i tried , and it failed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "JDBC interaction with Cassandra"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-interaction-with-cassandra#post-3841</link>
			<pubDate>Thu, 26 Jul 2012 09:32:25 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">3841@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Yes, you need to create your schema before using JDBC.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hardikupadhyay on "JDBC interaction with Cassandra"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-interaction-with-cassandra#post-3809</link>
			<pubDate>Thu, 26 Jul 2012 05:15:30 +0000</pubDate>
			<dc:creator>hardikupadhyay</dc:creator>
			<guid isPermaLink="false">3809@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I want to know&#60;br /&#62;
Does JDBC needs predefined cassandra column family structure?&#60;br /&#62;
Means should i create column family schema prior to inserting data into column family&#60;br /&#62;
via JDBC?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marius Waldal on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-914</link>
			<pubDate>Thu, 22 Dec 2011 13:28:59 +0000</pubDate>
			<dc:creator>Marius Waldal</dc:creator>
			<guid isPermaLink="false">914@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;We have switched communication from a local cassandra to a dev server now, and here the problem is only when using JDBC connections against cassandra. If we switch to Hector, the problem does not persist.&#60;/p&#62;
&#60;p&#62;We have decided, for now, to stick with Hector for the connections from the Thrift server and use JDBC for Core operations. We will return to the JDBC issues after the system is live using Hector and everything works well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zznate on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-880</link>
			<pubDate>Tue, 20 Dec 2011 16:23:58 +0000</pubDate>
			<dc:creator>zznate</dc:creator>
			<guid isPermaLink="false">880@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;If I am reading that correctly, every time you invoke GenericObjectPool#borrowObject you are creating a new socket instead of returning an existing socket from the pool. Is GOP#releaseObject invoked with the socket when the connection usage is finished?&#60;/p&#62;
&#60;p&#62;This really just sounds like a misunderstanding with the commons-pooling API. I would suggest a look at DBCP in commons (which uses commons pooling for vanilla JDBC usage for some extra examples with a similar use case.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marius Waldal on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-877</link>
			<pubDate>Tue, 20 Dec 2011 07:51:20 +0000</pubDate>
			<dc:creator>Marius Waldal</dc:creator>
			<guid isPermaLink="false">877@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;The TSocket is wrapped by TTransport. The socket is created like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
    TTransport createTSocket(final String host, final int port) {&#60;br /&#62;
        final TSocket tsocket = new TSocket(host, port, socketTimeout);&#60;br /&#62;
        try {&#60;br /&#62;
            tsocket.getSocket().setKeepAlive(false);&#60;br /&#62;
        } catch (SocketException ex) {&#60;br /&#62;
            logger.warn(&#34;failed to disable keepalive&#34;);&#60;br /&#62;
        }&#60;br /&#62;
        return tsocket;    }&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This is done inside TSocketFactory; a class creating TSockets based on a UriManager for managing multiple hosts, and the makeObject() method here is used by GenericObjectPool.borrowObject()&#60;/p&#62;
&#60;p&#62;Was this answering your question?&#60;/p&#62;
&#60;p&#62;Thanks for the sidenote. I will take this up with our other developers. And looking forward to the jdbc-conn-pool !
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zznate on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-872</link>
			<pubDate>Mon, 19 Dec 2011 21:20:51 +0000</pubDate>
			<dc:creator>zznate</dc:creator>
			<guid isPermaLink="false">872@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;How are you constructing the underlying TSocket implementation and with which Transport (if any) are you wrapping said TSocket?&#60;/p&#62;
&#60;p&#62;ie. the call to DataSource#getConnection() should hit a pool who's contents have been constructed thusly:&#60;/p&#62;
&#60;p&#62; ttps://github.com/rantav/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/connection/client/HThriftClient.java#L123-146&#60;/p&#62;
&#60;p&#62;Side note: after extensive testing in hector over a year ago, we *ripped out* commons pooling due to poor concurrency characteristics with lots of threads. YMMV though, as we had specific general-purpose targets for which we were aiming.&#60;/p&#62;
&#60;p&#62;Oh, it's not quite ready for prime-time, but we will be offering &#60;a href=&#34;https://github.com/riptano/jdbc-conn-pool&#34; rel=&#34;nofollow&#34;&#62;https://github.com/riptano/jdbc-conn-pool&#60;/a&#62; shortly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marius Waldal on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-871</link>
			<pubDate>Mon, 19 Dec 2011 21:05:33 +0000</pubDate>
			<dc:creator>Marius Waldal</dc:creator>
			<guid isPermaLink="false">871@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;@zznate Thanks for answering.&#60;/p&#62;
&#60;p&#62;The TServer is not managing the connections itself. It uses our Core module, which has a Spring-configured datasource that extends org.apache.tomcat.jdbc.pool.DataSource.&#60;br /&#62;
maxActive is set to 50, and we see during startup that this is read by the server. However, it seems that the connections are never returned when used by the server module, although this is not a problem when Core itself uses it for import and calculation.&#60;/p&#62;
&#60;p&#62;The TServer is using an org.apache.commons.pool.impl.GenericObjectPool for its workers, but as far as we can tell, this is not the pool that eats threads.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zznate on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-868</link>
			<pubDate>Mon, 19 Dec 2011 17:20:21 +0000</pubDate>
			<dc:creator>zznate</dc:creator>
			<guid isPermaLink="false">868@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;What pooling library are you using?&#60;/p&#62;
&#60;p&#62;Do you have any examples of how you are using TServer to construct and manage connections? It sounds like you are just creating new connections instead of returning existing ones. I can't really speculate further than that without more information.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marius Waldal on "JDBC pool eating connections when using Thrift server"</title>
			<link>http://www.datastax.com/support-forums/topic/jdbc-pool-eating-connections-when-using-thrift-server#post-867</link>
			<pubDate>Mon, 19 Dec 2011 13:34:11 +0000</pubDate>
			<dc:creator>Marius Waldal</dc:creator>
			<guid isPermaLink="false">867@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Ok guys, we are at a loss here and hoping you may shed some light on this total show stopper!&#60;/p&#62;
&#60;p&#62;We are using CQL v. 1.0.5 and are experiencing problems using jdbc pooling from a thrift server.&#60;/p&#62;
&#60;p&#62;In our Core module, we have import jobs and calculation jobs using the thread pool without problems, reading and writing tens of thousands of records lightning fast.&#60;/p&#62;
&#60;p&#62;However; we are also using a Server module (based on org.apache.thrift.server.TServer) which is in turn using the same code from Core for connections to Cassandra. When we use this server, it seems connections are not released and reused, but the pool is constantly growing until reaching a roof at &#38;lt;16.000 connections, after which we get a&#60;br /&#62;
Error in thread &#34;Thread-3&#34;&#60;br /&#62;
message on the server, and a timeout on the client.&#60;/p&#62;
&#60;p&#62;What beats us is why this works fine when running the import and calculation jobs, but not when the same dao classes are used from the server (imported as a maven artifact). &#60;/p&#62;
&#60;p&#62;Any ideas whatsoever would be greatly appreciated!&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Marius
&#60;/p&#62;</description>
		</item>
		<item>
			<title>john on "Connecting to Brisk Hive through JDBC"</title>
			<link>http://www.datastax.com/support-forums/topic/connecting-to-brisk-hive-through-jdbc#post-208</link>
			<pubDate>Tue, 21 Jun 2011 11:13:03 +0000</pubDate>
			<dc:creator>john</dc:creator>
			<guid isPermaLink="false">208@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Allright, I got it working after all. The trick was that Hive was not running in the background at all (something I wrongfully assumed, assumption is the mother of all ... :) )&#60;/p&#62;
&#60;p&#62;Here's how to start the Hive server in order to be able to connect to it through JDBC:&#60;/p&#62;
&#60;p&#62;$ export HIVE_PORT=10000&#60;br /&#62;
$ brisk hive --service hiveserver&#60;/p&#62;
&#60;p&#62;Good luck!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>john on "Connecting to Brisk Hive through JDBC"</title>
			<link>http://www.datastax.com/support-forums/topic/connecting-to-brisk-hive-through-jdbc#post-207</link>
			<pubDate>Tue, 21 Jun 2011 10:58:16 +0000</pubDate>
			<dc:creator>john</dc:creator>
			<guid isPermaLink="false">207@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Some additional info:&#60;/p&#62;
&#60;p&#62;I tried connecting to all the ports the Brisk process is listening on, it did not succeed.&#60;/p&#62;
&#60;p&#62;Port:	Found:&#60;br /&#62;
-------------------------------&#60;br /&#62;
 7000	&#38;lt;failed, connection refused&#38;gt;&#60;br /&#62;
 7199	&#38;lt;failed, java.sql.SQLException: org.apache.thrift.transport.TTransportException&#38;gt;&#60;br /&#62;
 8012	&#38;lt;failed, java.sql.SQLException: org.apache.thrift.transport.TTransportException&#38;gt;&#60;br /&#62;
 8081	JMX Management Console (HTTP)&#60;br /&#62;
 9160	cassandra&#60;br /&#62;
 9260	&#38;lt;failed, connection refused&#38;gt;&#60;br /&#62;
36141	&#38;lt;failed, java.sql.SQLException: org.apache.thrift.transport.TTransportException&#38;gt;&#60;br /&#62;
49854	Hadoop&#60;br /&#62;
50030	Hadoop Map/Reduce Administration (HTTP)&#60;br /&#62;
50060	Hadoop Task Tracker (HTTP)&#60;br /&#62;
54268	&#38;lt;failed, connection refused&#38;gt;&#60;br /&#62;
58522	&#38;lt;failed, java.sql.SQLException: org.apache.thrift.transport.TTransportException&#38;gt;&#60;br /&#62;
60539	&#38;lt;failed, connection refused&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
