You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Adamantios Corais <ad...@gmail.com> on 2015/10/16 10:32:27 UTC

How to read data from local cassandra cluster

Hi,

I have install Cassandra locally (DataStax Enterprise to be specific).
Everything seems to work ok. For example, I can upload a test file into CFS
or open a Spark REPL.

However, when it comes to my very own Spark application, I can't understand
how to modify sc.textFile("/user/testuser/words.txt") so that I can read
the file I just uploaded to my local DataStax installation.

How should I refer to the associated host?



*// Adamantios*

Re: How to read data from local cassandra cluster

Posted by Ryan Svihla <rs...@foundev.pro>.
Sorry I forgot one /
cfs:///filename






On Sun, Oct 18, 2015 at 3:14 PM -0700, "Ryan Svihla" <rs...@foundev.pro> wrote:










Not a Cassandra question so this isn't the right list, but you can just upload the file to CFS and then access it by the path "cfs://filename".
However, since you have DSE you may want to contact support for help with pathing in DSE using CFS and Spark.
-Ryan Svihla




On Fri, Oct 16, 2015 at 1:33 AM -0700, "Adamantios Corais" <ad...@gmail.com> wrote:











Hi,
I have install Cassandra locally (DataStax Enterprise to be specific). Everything seems to work ok. For example, I can upload a test file into CFS or open a Spark REPL.
However, when it comes to my very own Spark application, I can't understand how to modify sc.textFile("/user/testuser/words.txt") so that I can read the file I just uploaded to my local DataStax installation. 
How should I refer to the associated host?

// Adamantios

Re: How to read data from local cassandra cluster

Posted by Ryan Svihla <rs...@foundev.pro>.
Not a Cassandra question so this isn't the right list, but you can just upload the file to CFS and then access it by the path "cfs://filename".
However, since you have DSE you may want to contact support for help with pathing in DSE using CFS and Spark.
-Ryan Svihla




On Fri, Oct 16, 2015 at 1:33 AM -0700, "Adamantios Corais" <ad...@gmail.com> wrote:











Hi,
I have install Cassandra locally (DataStax Enterprise to be specific). Everything seems to work ok. For example, I can upload a test file into CFS or open a Spark REPL.
However, when it comes to my very own Spark application, I can't understand how to modify sc.textFile("/user/testuser/words.txt") so that I can read the file I just uploaded to my local DataStax installation. 
How should I refer to the associated host?

// Adamantios