YAML Cassandra Configuration

25 views
Skip to first unread message

Charl van Niekerk

unread,
Jul 20, 2010, 7:21:29 PM7/20/10
to pandra-dev
Hi All,

I'm working off the latest nightly build at time of writing (just
upgraded from Cassandra 0.6.3) and noticed that instead of the old XML
configuration file we now have a cassandra.yaml file. I see Pandra
still only parses the file as XML. Are there any plans for supporting
the new YAML format, or should I downgrade again?

Thanks,
Charl

mjpearson

unread,
Jul 20, 2010, 7:53:28 PM7/20/10
to pandra-dev
Hey Charl, patch is in the Pandra head on github.
PandraCore::loadConfigXML() has been deprecated by
PandraCore::loadConfig().

You'll need to update CASSANDRA_CONF_PATH in config.php also.

hope it works out for you, let us know if not.

-michael

Charl van Niekerk

unread,
Jul 20, 2010, 8:15:19 PM7/20/10
to pandr...@googlegroups.com
On Tue, Jul 20, 2010 at 4:53 PM, mjpearson <mjpe...@gmail.com> wrote:
> Hey Charl, patch is in the Pandra head on github.
> PandraCore::loadConfigXML() has been deprecated by
> PandraCore::loadConfig().
>
> You'll need to update CASSANDRA_CONF_PATH in config.php also.

Wow, quick work! Thanks very much!

> hope it works out for you, let us know if not.

I seem to be having a really strange problem now. Keep getting the
following error upon connect:

TSocket: Could not read 4 bytes from localhost:9160

Cassandra is definitely running and can telnet to that port on my localhost.

Any ideas of what I could try? Checked cassandra/system.log but
nothing past the lines written during startup.

Thanks again,
Charl

mjpearson

unread,
Jul 20, 2010, 8:23:40 PM7/20/10
to pandra-dev
Very strange, what was the last version of Pandra you were running?
Any chance of dumping a code sample to pastebin etc. The only other
thing which changed recently was support for Long Type column
families, but keen to see what you were running prior to todays pull.

-michael

On Jul 20, 5:15 pm, Charl van Niekerk <char...@charlvn.com> wrote:

Charl van Niekerk

unread,
Jul 20, 2010, 10:50:08 PM7/20/10
to pandr...@googlegroups.com
On Tue, Jul 20, 2010 at 5:23 PM, mjpearson <mjpe...@gmail.com> wrote:
> Very strange, what was the last version of Pandra you were running?
> Any chance of dumping a code sample to pastebin etc.  The only other
> thing which changed recently was support for Long Type column
> families, but keen to see what you were running prior to todays pull.

It was the latest version I cloned from git head just after your
previous mail, my version of Cassandra is a development build dated
"2010-07-19_14-25-27" - maybe this build is buggy? Which one are you
testing against at the moment?

mjpearson

unread,
Jul 24, 2010, 1:50:18 AM7/24/10
to pandra-dev
Thanks,

i haven't been able to replicate this problem, however added a patch
to Thrift which may or may not help - it's had mixed success.

Grab the latest (2010-07-23) - Keen to see if the patch works for
you.

-michael

On Jul 20, 7:50 pm, Charl van Niekerk <char...@charlvn.com> wrote:

Charl van Niekerk

unread,
Aug 1, 2010, 11:05:36 AM8/1/10
to pandr...@googlegroups.com
On Sat, Jul 24, 2010 at 7:50 AM, mjpearson <mjpe...@gmail.com> wrote:
> i haven't been able to replicate this problem, however added a patch
> to Thrift which may or may not help - it's had mixed success.
>
> Grab the latest (2010-07-23) -  Keen to see if the patch works for
> you.

Upgraded to Cassandra 0.6.4 and the latest Pandra and seems to be
working fine now! Thanks very much!

Reply all
Reply to author
Forward
0 new messages