<?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: Unable to query cfs inode column family</title>
		<link>http://www.datastax.com/support-forums/topic/unable-to-query-cfs-inode-column-family</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Tue, 18 Jun 2013 23:44:55 +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/unable-to-query-cfs-inode-column-family" rel="self" type="application/rss+xml" />

		<item>
			<title>sam on "Unable to query cfs inode column family"</title>
			<link>http://www.datastax.com/support-forums/topic/unable-to-query-cfs-inode-column-family#post-6912</link>
			<pubDate>Fri, 12 Oct 2012 19:03:29 +0000</pubDate>
			<dc:creator>sam</dc:creator>
			<guid isPermaLink="false">6912@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;CFS isn't really designed to be queried on the command line. One thing is that it uses DynamicCompositeType which isn't natively supported by cqlsh, and which causes the unusual rendering in OpsCenter. The examples in the blog post on CFS design really more pseudo-code to give an illustration than anything else.&#60;/p&#62;
&#60;p&#62;- Sam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sven on "Unable to query cfs inode column family"</title>
			<link>http://www.datastax.com/support-forums/topic/unable-to-query-cfs-inode-column-family#post-6877</link>
			<pubDate>Thu, 11 Oct 2012 18:37:16 +0000</pubDate>
			<dc:creator>Sven</dc:creator>
			<guid isPermaLink="false">6877@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thank you very much for the information. We are looking into it, and should have more information tomorrow.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tambalavanar on "Unable to query cfs inode column family"</title>
			<link>http://www.datastax.com/support-forums/topic/unable-to-query-cfs-inode-column-family#post-6850</link>
			<pubDate>Wed, 10 Oct 2012 18:37:58 +0000</pubDate>
			<dc:creator>tambalavanar</dc:creator>
			<guid isPermaLink="false">6850@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi Nick,&#60;/p&#62;
&#60;p&#62;I'm using DSE v2.1.1. OpsCenter, the one that comes with DSE v2.1.1.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
ERROR [Thrift:16496] 2012-10-10 14:33:54,717 Cassandra.java (line 4082) Internal error processing execute_cql_query&#60;br /&#62;
java.lang.IllegalArgumentException: Invalid component representation: parent_path&#60;br /&#62;
        at org.apache.cassandra.db.marshal.DynamicCompositeType$DynamicParsedComparator.&#38;lt;init&#38;gt;(DynamicCompositeType.java:218)&#60;br /&#62;
        at org.apache.cassandra.db.marshal.DynamicCompositeType.parseNextComparator(DynamicCompositeType.java:172)&#60;br /&#62;
        at org.apache.cassandra.db.marshal.AbstractCompositeType.fromString(AbstractCompositeType.java:198)&#60;br /&#62;
        at org.apache.cassandra.cql.Term.getByteBuffer(Term.java:91)&#60;br /&#62;
        at org.apache.cassandra.cql.QueryProcessor.validateSelect(QueryProcessor.java:353)&#60;br /&#62;
        at org.apache.cassandra.cql.QueryProcessor.process(QueryProcessor.java:549)&#60;br /&#62;
        at com.datastax.bdp.server.DseServer.execute_cql_query(DseServer.java:884)&#60;br /&#62;
        at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.process(Cassandra.java:4072)&#60;br /&#62;
        at org.apache.cassandra.thrift.Dse$Processor.process(Dse.java:1188)&#60;br /&#62;
        at com.datastax.bdp.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:250)&#60;br /&#62;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)&#60;br /&#62;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)&#60;br /&#62;
        at java.lang.Thread.run(Thread.java:722)&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;When I do describe on the inode columnfamily, i get the following.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
cqlsh&#38;gt; use cfs;&#60;br /&#62;
cqlsh:cfs&#38;gt; describe columnfamily inode;&#60;/p&#62;
&#60;p&#62;CREATE COLUMNFAMILY inode (&#60;br /&#62;
  KEY blob PRIMARY KEY,&#60;br /&#62;
  'bpath' blob,&#60;br /&#62;
  'sentinel' blob,&#60;br /&#62;
  'b&#60;br /&#62;
    parent_path' blob&#60;br /&#62;
) WITH&#60;br /&#62;
  comment='Stores file meta data' AND&#60;br /&#62;
  comparator='DynamicCompositeType(t=&#38;gt;org.apache.cassandra.db.marshal.TimeUUIDType,b=&#38;gt;org.apache.cassandra.db.marshal.BytesType,s=&#38;gt;org.apache.cassandra.db.marshal.UTF8Type)' AND&#60;br /&#62;
  read_repair_chance=1.000000 AND&#60;br /&#62;
  gc_grace_seconds=60 AND&#60;br /&#62;
  default_validation=blob AND&#60;br /&#62;
  min_compaction_threshold=4 AND&#60;br /&#62;
  max_compaction_threshold=32 AND&#60;br /&#62;
  replicate_on_write=True;&#60;/p&#62;
&#60;p&#62;CREATE INDEX cfs_path ON inode ('bpath');&#60;/p&#62;
&#60;p&#62;CREATE INDEX cfs_sentinel ON inode ('sentinel');&#60;/p&#62;
&#60;p&#62;CREATE INDEX cfs_parent_path ON inode ('b&#60;br /&#62;
                                         parent_path');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Unable to query cfs inode column family"</title>
			<link>http://www.datastax.com/support-forums/topic/unable-to-query-cfs-inode-column-family#post-6815</link>
			<pubDate>Mon, 08 Oct 2012 17:26:52 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">6815@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;A couple of questions:&#60;/p&#62;
&#60;p&#62;What version of DSE are you using?&#60;br /&#62;
What version of OpsCenter are you using?&#60;br /&#62;
The error 'Internal application error' indicates a problem in the cassandra server. When you get this error can you check the cassandra log for errors?&#60;/p&#62;
&#60;p&#62;-Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tambalavanar on "Unable to query cfs inode column family"</title>
			<link>http://www.datastax.com/support-forums/topic/unable-to-query-cfs-inode-column-family#post-6720</link>
			<pubDate>Fri, 28 Sep 2012 14:44:37 +0000</pubDate>
			<dc:creator>tambalavanar</dc:creator>
			<guid isPermaLink="false">6720@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I tried the cql query to get filename from cfs inode as shown in the link : &#60;a href=&#34;http://www.datastax.com/dev/blog/cassandra-file-system-design&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/cassandra-file-system-design&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When I run the query, i get the following error.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
cqlsh:cfs&#38;gt; select filename from inode where parent_path='/AMBAL';&#60;br /&#62;
&#60;strong&#62;Internal application error&#60;/strong&#62;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Also, in the OpsCenter, I see the content of inode row in a different format. The keys and values are not in character format.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
\x80b\x00\x04data\x00		\x00\x00\x00\x04root\x00\x00\x00\x04root\x01\xff\x00\x00\x00\x00\x00\x04\x00\x00\x00&#60;br /&#62;
\x80b\x00\x0bparent_path\x00	/tmp/hive-root&#60;br /&#62;
\x80b\x00\x04path\x00		/tmp/hive-root/hive_2012-09-20_18-00-29_118_7986403660953791635&#60;br /&#62;
\x80b\x00\x08sentinel\x00	x&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;What could be the problem?&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
