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.