<?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; Topic: use cqlsh 3.0 create a table and we can not use thrift api to operate it?</title>
		<link>http://www.datastax.com/support-forums/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 07:52:14 +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/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it" rel="self" type="application/rss+xml" />

		<item>
			<title>nickmbailey on "use cqlsh 3.0 create a table and we can not use thrift api to operate it?"</title>
			<link>http://www.datastax.com/support-forums/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it#post-9211</link>
			<pubDate>Thu, 28 Feb 2013 16:54:46 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">9211@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;CQL 2 is completely thrift compatible. It doesn't contain the extra metadata that CQL3 uses.&#60;/p&#62;
&#60;p&#62;I would recommend filing feature requests for cqlsh at the cassandra jira:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://issues.apache.org/jira/browse/CASSANDRA&#34; rel=&#34;nofollow&#34;&#62;https://issues.apache.org/jira/browse/CASSANDRA&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>karpa13a on "use cqlsh 3.0 create a table and we can not use thrift api to operate it?"</title>
			<link>http://www.datastax.com/support-forums/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it#post-9199</link>
			<pubDate>Thu, 28 Feb 2013 02:55:18 +0000</pubDate>
			<dc:creator>karpa13a</dc:creator>
			<guid isPermaLink="false">9199@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;wow&#60;br /&#62;
can you make bold note in cqlsh command reference (create/alter 'tables')?&#60;br /&#62;
how about cql2?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "use cqlsh 3.0 create a table and we can not use thrift api to operate it?"</title>
			<link>http://www.datastax.com/support-forums/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it#post-9191</link>
			<pubDate>Wed, 27 Feb 2013 17:52:38 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">9191@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Column families created with CQL3 (default in cqlsh) contain metadata that the thrift api isn't able to understand. For that reason, those column families aren't shown in tools like the cli when listing keyspaces.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>karpa13a on "use cqlsh 3.0 create a table and we can not use thrift api to operate it?"</title>
			<link>http://www.datastax.com/support-forums/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it#post-9186</link>
			<pubDate>Wed, 27 Feb 2013 11:56:10 +0000</pubDate>
			<dc:creator>karpa13a</dc:creator>
			<guid isPermaLink="false">9186@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;the same C1.2.2/ubuntu 12.04/openjdk&#60;br /&#62;
CF created thru cassandra-cli visible in phpcassa/cqlsh&#60;br /&#62;
but created thru cqlsh not visible in cassandra-cli and phpcassa&#60;/p&#62;
&#60;p&#62;bug?&#60;br /&#62;
feature?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ws832863 on "use cqlsh 3.0 create a table and we can not use thrift api to operate it?"</title>
			<link>http://www.datastax.com/support-forums/topic/use-cqlsh-30-create-a-table-and-we-can-not-use-thrift-api-to-operate-it#post-9138</link>
			<pubDate>Fri, 22 Feb 2013 17:39:41 +0000</pubDate>
			<dc:creator>ws832863</dc:creator>
			<guid isPermaLink="false">9138@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;hallo guys, i have a question about cqlsh3.0 and cassandra-cli. (cassandra version 1.2.1)&#60;/p&#62;
&#60;p&#62;i have created a table use cqlsh -3 and insert some data in it.  However i got a error when i trying to use thrift api +java insert some information. Exception in thread &#34;main&#34; InvalidRequestException(why:Not enough bytes to read value of component 0)&#60;/p&#62;
&#60;p&#62;then i created a same keyspace with identisch column family by using cassandra-cli.. it works... why? dose it mean, thrif api can not get access to the keyspace which created by cqlsh 3.0?&#60;/p&#62;
&#60;p&#62;the code: quite simple &#60;/p&#62;
&#60;p&#62;	TTransport tr = new TSocket(HOST, PORT);&#60;br /&#62;
		TFramedTransport tf = new TFramedTransport(tr);&#60;br /&#62;
		TProtocol proto = new TBinaryProtocol(tf);&#60;br /&#62;
		Cassandra.Client client = new Cassandra.Client(proto);&#60;/p&#62;
&#60;p&#62;		tr.open();&#60;br /&#62;
		String Key_user_id = &#34;userno1&#34;;&#60;br /&#62;
		long timestamp = System.currentTimeMillis();&#60;/p&#62;
&#60;p&#62;		client.set_keyspace(&#34;schema1&#34;);  // schema1 was created by cqlsh, got error, then i changed to schema created by cassandra-cli, it works....&#60;/p&#62;
&#60;p&#62;		ColumnParent parent = new ColumnParent(&#34;users&#34;);&#60;br /&#62;
		Column first_Column = new Column(toByteBuffer(&#34;first&#34;));&#60;br /&#62;
		first_Column = setColumn(first_Column, &#34;testjava&#34;, timestamp);&#60;br /&#62;
		client.insert(toByteBuffer(Key_user_id), parent, first_Column, CL);&#60;/p&#62;
&#60;p&#62;		Column last_idColumn = new Column(toByteBuffer(&#34;last&#34;));&#60;br /&#62;
		last_idColumn = setColumn(last_idColumn, &#34;javatest&#34;, timestamp);&#60;br /&#62;
		client.insert(toByteBuffer(Key_user_id), parent, last_idColumn, CL);&#60;/p&#62;
&#60;p&#62;		Column age_Column = new Column(toByteBuffer(&#34;age&#34;));&#60;br /&#62;
		age_Column = setColumn(age_Column, &#34;333&#34;, timestamp);&#60;br /&#62;
		client.insert(toByteBuffer(Key_user_id), parent, age_Column, CL);&#60;/p&#62;
&#60;p&#62;		tr.close();
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
