<?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: Not able to connect to Casandra file system from external java application.</title>
		<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 00:02:37 +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/not-able-to-connect-to-casandra-file-system-from-external-java-application" rel="self" type="application/rss+xml" />

		<item>
			<title>xedin on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2490</link>
			<pubDate>Thu, 28 Jun 2012 22:09:21 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">2490@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;can you please paste to pastebin configs that you have modified and copy links here so I can test them too?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sagrawal_informatica.com on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2488</link>
			<pubDate>Thu, 28 Jun 2012 22:03:12 +0000</pubDate>
			<dc:creator>sagrawal_informatica.com</dc:creator>
			<guid isPermaLink="false">2488@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Can you explain me how to check this? I just downloaded the DSE EE and configured it in analytic mode.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2474</link>
			<pubDate>Thu, 28 Jun 2012 21:09:05 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">2474@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Are you using default DseDelegateSnitch snitch?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sagrawal_informatica.com on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2464</link>
			<pubDate>Thu, 28 Jun 2012 20:18:17 +0000</pubDate>
			<dc:creator>sagrawal_informatica.com</dc:creator>
			<guid isPermaLink="false">2464@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I see that its started :-&#60;/p&#62;
&#60;p&#62; INFO [IPC Server Responder] 2012-06-26 14:52:42,733 Server.java (line 598) IPC Server Responder: starting&#60;br /&#62;
 INFO [IPC Server handler 6 on 8012] 2012-06-26 14:52:42,733 Server.java (line 1358) IPC Server handler 6 on 8012: starting&#60;br /&#62;
 INFO [IPC Server handler 8 on 8012] 2012-06-26 14:52:42,734 Server.java (line 1358) IPC Server handler 8 on 8012: starting&#60;br /&#62;
 INFO [IPC Server listener on 44019] 2012-06-26 14:52:42,733 Server.java (line 434) IPC Server listener on 44019: starting&#60;br /&#62;
 INFO [JOB-TRACKER-INIT] 2012-06-26 14:52:42,734 JobTracker.java (line 2619) Starting RUNNING&#60;br /&#62;
 INFO [IPC Server handler 7 on 8012] 2012-06-26 14:52:42,734 Server.java (line 1358) IPC Server handler 7 on 8012: starting&#60;br /&#62;
 INFO [IPC Server handler 9 on 8012] 2012-06-26 14:52:42,734 Server.java (line 1358) IPC Server handler 9 on 8012: starting&#60;br /&#62;
 INFO [IPC Server handler 0 on 44019] 2012-06-26 14:52:42,734 Server.java (line 1358) IPC Server handler 0 on 44019: starting&#60;br /&#62;
 INFO [IPC Server handler 1 on 44019] 2012-06-26 14:52:42,735 Server.java (line 1358) IPC Server handler 1 on 44019: starting&#60;br /&#62;
 INFO [IPC Server handler 2 on 44019] 2012-06-26 14:52:42,736 Server.java (line 1358) IPC Server handler 2 on 44019: starting&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,736 TaskTracker.java (line 792) TaskTracker up at: localhost/127.0.0.1:44019&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,737 TaskTracker.java (line 795) Starting tracker tracker_psvrrh6qa1.informatica.com:localhost/127.0.0.1:44019&#60;br /&#62;
 INFO [IPC Server handler 3 on 44019] 2012-06-26 14:52:42,736 Server.java (line 1358) IPC Server handler 3 on 44019: starting&#60;br /&#62;
 INFO [Map-events fetcher for all reduce tasks on tracker_psvrrh6qa1.informatica.com:localhost/127.0.0.1:44019] 2012-06-26 14:52:42,780 TaskTracker.java (line 960) Starting thread: Map-events fetcher for all reduce tasks on tracker_psvrrh6qa1.informatica.com:localhost/127.0.0.1:44019&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,787 ProcessTree.java (line 63) setsid exited with exit code 0&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,793 TaskTracker.java (line 826)  Using ResourceCalculatorPlugin : org.apache.hadoop.util.LinuxResourceCalculatorPlugin@1547a16f&#60;br /&#62;
 WARN [TASK-TRACKER-INIT] 2012-06-26 14:52:42,797 TaskTracker.java (line 4189) TaskTracker's totalMemoryAllottedForTasks is -1. TaskMemoryManager is disabled.&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,801 IndexCache.java (line 46) IndexCache created with max memory = 10485760&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,808 MetricsSourceAdapter.java (line 90) MBean for source ShuffleServerMetrics registered.&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,811 HttpServer.java (line 578) Port returned by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on 50060&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,811 HttpServer.java (line 583) listener.getLocalPort() returned 50060 webServer.getConnectors()[0].getLocalPort() returned 50060&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,811 HttpServer.java (line 616) Jetty bound to port 50060&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,812 Slf4jLog.java (line 67) jetty-6.1.22&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,981 Slf4jLog.java (line 67) Started SelectChannelConnector@0.0.0.0:50060&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,994 TaskTracker.java (line 1503) FILE_CACHE_SIZE for mapOutputServlet set to : 2000&#60;br /&#62;
 INFO [TASK-TRACKER-INIT] 2012-06-26 14:52:42,996 HadoopTrackerPlugin.java (line 301) Hadoop Task Tracker Started...&#60;br /&#62;
 INFO [IPC Server handler 3 on 8012] 2012-06-26 14:52:43,313 NetworkTopology.java (line 328) Adding a new node: /default-rack/psvrrh6qa1.informatica.com&#60;br /&#62;
 INFO [IPC Server handler 3 on 8012] 2012-06-26 14:52:43,316 JobTracker.java (line 3207) Adding tracker tracker_psvrrh6qa1.informatica.com:localhost/127.0.0.1:44019 to host psvrrh6qa1.informatica.com&#60;br /&#62;
 INFO [CompactionExecutor:5] 2012-06-26 18:52:07,969 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (11 items) in 23 ms&#60;br /&#62;
 INFO [CompactionExecutor:7] 2012-06-26 22:52:07,949 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (11 items) in 3 ms&#60;br /&#62;
 INFO [CompactionExecutor:9] 2012-06-27 02:52:07,965 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (11 items) in 19 ms&#60;br /&#62;
 INFO [CompactionExecutor:11] 2012-06-27 06:52:07,951 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (11 items) in 4 ms&#60;br /&#62;
 INFO [CompactionExecutor:13] 2012-06-27 10:52:07,958 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (11 items) in 11 ms&#60;br /&#62;
 INFO [CompactionExecutor:15] 2012-06-27 14:52:07,975 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (11 items) in 28 ms&#60;br /&#62;
 INFO [Thread[Thread-4,5,main]] 2012-06-27 14:52:12,849 AbstractDelegationTokenSecretManager.java (line 140) Updating the current master key for generating delegation tokens&#60;br /&#62;
 INFO [CompactionExecutor:17] 2012-06-27 18:52:07,951 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (13 items) in 4 ms&#60;br /&#62;
 INFO [CompactionExecutor:19] 2012-06-27 22:52:07,960 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (13 items) in 12 ms&#60;br /&#62;
 INFO [CompactionExecutor:21] 2012-06-28 02:52:07,962 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (13 items) in 14 ms&#60;br /&#62;
 INFO [CompactionExecutor:23] 2012-06-28 06:52:07,960 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (13 items) in 12 ms&#60;br /&#62;
 INFO [CompactionExecutor:25] 2012-06-28 10:52:07,960 AutoSavingCache.java (line 269) Saved cfs-inode-KeyCache (13 items) in 12 ms
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2463</link>
			<pubDate>Thu, 28 Jun 2012 20:08:41 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">2463@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;does the system log show you that JT or TT have been started?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sagrawal_informatica.com on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2461</link>
			<pubDate>Thu, 28 Jun 2012 20:06:19 +0000</pubDate>
			<dc:creator>sagrawal_informatica.com</dc:creator>
			<guid isPermaLink="false">2461@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;This is DSE. I have started it with &#34;-t&#34; option already. I still cannot connect from my java application . Any ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2441</link>
			<pubDate>Thu, 28 Jun 2012 00:45:31 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">2441@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Is it a Cassandra or DSE instance you are talking about? If that is DSE have you started it with -t option to enable Hadoop support?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sagrawal_informatica.com on "Not able to connect to Casandra file system from external java application."</title>
			<link>http://www.datastax.com/support-forums/topic/not-able-to-connect-to-casandra-file-system-from-external-java-application#post-2440</link>
			<pubDate>Thu, 28 Jun 2012 00:38:52 +0000</pubDate>
			<dc:creator>sagrawal_informatica.com</dc:creator>
			<guid isPermaLink="false">2440@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I am from Informatica and we are evaluating Casandra hadoop file system.I see an error running my application:-&#60;/p&#62;
&#60;p&#62;12/06/26 14:57:43 INFO cfs.CassandraFileSystem: CassandraFileSystem.uri : cfs://10.1.43.76:9160&#60;br /&#62;
12/06/26 14:57:43 INFO cfs.CassandraFileSystem: Default block size: 33554432&#60;br /&#62;
12/06/26 14:58:04 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 14:58:04 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 14:58:26 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 14:58:26 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 14:58:48 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 14:58:48 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 14:59:11 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 14:59:11 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 14:59:33 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 14:59:33 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 14:59:55 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 14:59:55 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 15:00:17 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 15:00:17 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 15:00:39 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 15:00:39 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 15:01:01 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 15:01:01 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
12/06/26 15:01:23 WARN util.CassandraProxyClient: Connection failed to Cassandra node: 10.1.43.76:9160 unable to connect to server&#60;br /&#62;
12/06/26 15:01:23 WARN util.CassandraProxyClient: No cassandra ring information found, no other nodes to connect to&#60;br /&#62;
java.io.IOException: Error connecting to node 10.1.43.76:9160 with strategy STICKY.&#60;br /&#62;
      at com.datastax.bdp.util.CassandraProxyClient.initialize(CassandraProxyClient.java:208)&#60;br /&#62;
      at com.datastax.bdp.util.CassandraProxyClient.&#38;lt;init&#38;gt;(CassandraProxyClient.java:180)&#60;br /&#62;
      at com.datastax.bdp.util.CassandraProxyClient.newProxyConnection(CassandraProxyClient.java:119)&#60;br /&#62;
      at com.datastax.bdp.hadoop.cfs.CassandraFileSystemThriftStore.initialize(CassandraFileSystemThriftStore.java:195)&#60;br /&#62;
      at com.datastax.bdp.hadoop.cfs.CassandraFileSystem.initialize(CassandraFileSystem.java:68)&#60;br /&#62;
      at com.informatica.casandra.casandra.main(casandra.java:24)&#60;/p&#62;
&#60;p&#62;My cassandra.yaml looks this this:&#60;/p&#62;
&#60;p&#62;listen_address:&#60;/p&#62;
&#60;p&#62;# Address to broadcast to other Cassandra nodes&#60;br /&#62;
# Leaving this blank will set it to the same value as listen_address&#60;br /&#62;
# broadcast_address: 1.2.3.4&#60;/p&#62;
&#60;p&#62;# The address to bind the Thrift RPC service to -- clients connect&#60;br /&#62;
# here. Unlike ListenAddress above, you *can* specify 0.0.0.0 here if&#60;br /&#62;
# you want Thrift to listen on all interfaces.&#60;br /&#62;
#&#60;br /&#62;
# Leaving this blank has the same effect it does for ListenAddress,&#60;br /&#62;
# (i.e. it will be based on the configured hostname of the node).&#60;br /&#62;
rpc_address: 0.0.0.0&#60;br /&#62;
# port for Thrift to listen for clients on&#60;br /&#62;
rpc_port: 9160&#60;/p&#62;
&#60;p&#62;I tried changing the rpc_address to actual IP address also but it doesn’t work. I can connect from cqlsh &#38;amp; cassandra-cli utility. Java code , we are using is:&#60;/p&#62;
&#60;p&#62;CassandraFileSystem fs = new CassandraFileSystem();&#60;/p&#62;
&#60;p&#62;                  fs.initialize(URI.create(&#34;cfs://10.1.43.76:9160/&#34;), new Configuration());&#60;/p&#62;
&#60;p&#62;             // Prepare some data to write into the file:&#60;br /&#62;
            String s = &#34;this is a sample&#34;;&#60;br /&#62;
            byte[] data = s.getBytes();&#60;/p&#62;
&#60;p&#62;             // Create a new file:&#60;br /&#62;
            Path path = new Path(&#34;testfile&#34;);&#60;br /&#62;
            System.out.println(data);&#60;br /&#62;
            FSDataOutputStream os1 = fs.create(path);&#60;br /&#62;
            os1.write(data);&#60;br /&#62;
            os1.close();
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
