You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Timo Nentwig <ti...@toptarif.de> on 2011/06/05 16:26:51 UTC

CQL/JDBC: Cannot locate cassandra.yaml

$ CLASSPATH=~/sqlshell/lib/ ~/sqlshell/bin/sqlshell org.apache.cassandra.cql.jdbc.CassandraDriver,jdbc:cassandra:foo/bar@localhost:9160/ks

2011-06-05 16:21:54,452 INFO  [main] org.apache.cassandra.cql.jdbc.Connection - Connected to localhost:9160
2011-06-05 16:21:54,517 ERROR [main] org.apache.cassandra.config.DatabaseDescriptor - Fatal configuration error
org.apache.cassandra.config.ConfigurationException: Cannot locate cassandra.yaml
	at org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigURL(DatabaseDescriptor.java:111)
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:121)
	at org.apache.cassandra.config.CFMetaData.fromThrift(CFMetaData.java:642)
	at org.apache.cassandra.cql.jdbc.ColumnDecoder.<init>(ColumnDecoder.java:61)
	at org.apache.cassandra.cql.jdbc.Connection.execute(Connection.java:142)
	at org.apache.cassandra.cql.jdbc.Connection.execute(Connection.java:124)
	at org.apache.cassandra.cql.jdbc.CassandraConnection.<init>(CassandraConnection.java:83)
	at org.apache.cassandra.cql.jdbc.CassandraDriver.connect(CassandraDriver.java:86)
	at org.clapper.sqlshell.DatabaseConnector.connectJDBC(connector.scala:249)
	at org.clapper.sqlshell.DatabaseConnector.connect(connector.scala:175)
	at org.clapper.sqlshell.SQLShell.<init>(SQLShell.scala:168)
	at org.clapper.sqlshell.tool.Tool$.main(tool.scala:96)
	at org.clapper.sqlshell.tool.Tool.main(tool.scala)
Cannot locate cassandra.yaml
Fatal configuration error; unable to start server.  See log for stacktrace.

And BTW how do I specify no user/password? Looking at the code I maybe could type a plain slash but
that's kind of silly.

Re: CQL/JDBC: Cannot locate cassandra.yaml

Posted by Jonathan Ellis <jb...@gmail.com>.
On Sun, Jun 5, 2011 at 9:38 AM, Timo Nentwig <ti...@toptarif.de> wrote:
> Hmm, worked-around that by setting -Dcassandra.config (hmm, the client needs
> the server's config...?).

Yes, this is fixed for 0.8.1.

> Not very verbose :-\ May have something to do with my l/p being just "/" for
> AllowAll.

Correct, that's not a valid ip. See the comments in the

>> And BTW how do I specify no user/password? Looking at the code I maybe
>> could type a plain slash but
>> that's kind of silly.

Yes. This is being fixed in https://issues.apache.org/jira/browse/CASSANDRA-2732

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Re: CQL/JDBC: Cannot locate cassandra.yaml

Posted by Timo Nentwig <ti...@toptarif.de>.
On 6/5/11 16:26, Timo Nentwig wrote:
> $ CLASSPATH=~/sqlshell/lib/ ~/sqlshell/bin/sqlshell org.apache.cassandra.cql.jdbc.CassandraDriver,jdbc:cassandra:foo/bar@localhost:9160/ks
>
> 2011-06-05 16:21:54,452 INFO [main] org.apache.cassandra.cql.jdbc.Connection - Connected to localhost:9160
> 2011-06-05 16:21:54,517 ERROR [main] org.apache.cassandra.config.DatabaseDescriptor - Fatal configuration error
> org.apache.cassandra.config.ConfigurationException: Cannot locate cassandra.yaml

Hmm, worked-around that by setting -Dcassandra.config (hmm, the client needs the server's config...?).

2011-06-05 16:35:20,960 INFO  [main] org.apache.cassandra.config.DatabaseDescriptor - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
Exception in thread "main" org.apache.cassandra.cql.jdbc.DriverResolverException
	at org.apache.cassandra.cql.jdbc.CassandraConnection.<init>(CassandraConnection.java:107)
	at org.apache.cassandra.cql.jdbc.CassandraDriver.connect(CassandraDriver.java:86)
	at org.clapper.sqlshell.DatabaseConnector.connectJDBC(connector.scala:249)
	at org.clapper.sqlshell.DatabaseConnector.connect(connector.scala:175)
	at org.clapper.sqlshell.SQLShell.<init>(SQLShell.scala:168)
	at org.clapper.sqlshell.tool.Tool$.main(tool.scala:96)
	at org.clapper.sqlshell.tool.Tool.main(tool.scala)

Not very verbose :-\ May have something to do with my l/p being just "/" for AllowAll.

> And BTW how do I specify no user/password? Looking at the code I maybe could type a plain slash but
> that's kind of silly.