Cannot locate cassandra.yaml

666 views
Skip to first unread message

bytor...@gmail.com

unread,
Aug 30, 2013, 7:38:32 PM8/30/13
to aureliu...@googlegroups.com
So I have gotten further getting Titan and Frames to startup in my Spring application. I got past the .properties file thing, but not using a .properties file anymore and having to ahrd code the values and change them whenever I change environments.

But now it says it cannot find my cassandra.yaml file, even though I am giving it the hard coded exact location of that file

It states


"Cannot locate /usr/local/etc/cassandra/cassandra.yaml"

And as you can see in the posted screen grab the file is there in that location.


So I am at a loss again. Thanks for your help


Mark


David

unread,
Sep 3, 2013, 10:43:47 AM9/3/13
to aureliu...@googlegroups.com
This could be completely unrelated, but here is another thread where someone is using Spring, and didn't have to hard code their properties.
Don't know if once you change this, this also helps igure out your yaml problem.  I don't use Spring, so can't say.

https://groups.google.com/forum/#!searchin/aureliusgraphs/spring/aureliusgraphs/b_weVRMlz-g/_B0vXPFhU_QJ

bytor...@gmail.com

unread,
Sep 3, 2013, 4:02:43 PM9/3/13
to aureliu...@googlegroups.com
Yes, that is my post. but unrelated. One is how to load in the titan properties with Spring. This is about how to set a particular property to point to my cassandra.yaml file. So different things. 

Mark

bytor...@gmail.com

unread,
Sep 3, 2013, 4:03:57 PM9/3/13
to aureliu...@googlegroups.com
Unfortunately, I can't find any documentation that shows how this works, regardless of Spring. Just how do you create the instances in Java code to run Titan with 1) embedded Cassandra and 2) not embedded Cassandra, where it shows the pathing to find files etc too.

Thanks

Mark

Harsh Kumar

unread,
Sep 4, 2013, 12:18:30 AM9/4/13
to aureliu...@googlegroups.com
Hi Mark,

Are you sure you are setting the path right?

It is supposed to be set as follows

        Configuration conf = new BaseConfiguration();
        conf.setProperty("storage.backend","embeddedcassandra");
        conf.setProperty("storage.cassandra-config-dir" , "file:///home/ehhhkkr/cassandra.yaml");

Some people miss out the "file:///" part.

bytor...@gmail.com

unread,
Sep 4, 2013, 3:28:23 AM9/4/13
to aureliu...@googlegroups.com
I believe I got it working. I had to use file/// then the path to get the file to load correctly.

Thanks

Mark
Reply all
Reply to author
Forward
0 new messages