You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Simon Chu <si...@gmail.com> on 2010/09/03 02:35:15 UTC
question about Cassandra error
I downloaded cassendra 0.6.5 and ran it, got this error:
bin/cassandra -f
INFO 16:46:06,198 JNA not found. Native methods will be disabled.
INFO 16:46:06,875 DiskAccessMode 'auto' determined to be mmap,
indexAccessMode is mmap
is this an issue?
When I tried to run cassandra cli from the example, I got the following
errors:
cassandra> use Keyspace1 sc 'blah$'
line 1:0 no viable alternative at input 'use'
Invalid Statement (Type: 0)
cassandra> set Standard2['jsmith']['first'] = 'John';
line 1:13 mismatched input '[' expecting DOT
is this a setup issue?
Simon
Re: question about Cassandra error
Posted by Stu Hood <st...@rackspace.com>.
JNA is _not_ necessary to use Cassandra, but the server can perform some operations more efficiently if JNA is in place.
Not sure what is causing the error you are seeing in the CLI though: those statements appear to be valid.
-----Original Message-----
From: "Mike Peters" <ca...@softwareprojects.com>
Sent: Thursday, September 2, 2010 8:27pm
To: user@cassandra.apache.org
Subject: Re: question about Cassandra error
Simon,
See this page: http://www.riptano.com/blog/whats-new-cassandra-065
"Because of licensing issues <http://www.apache.org/legal/3party.html>,
we can't distribute JNA with Cassandra, so you must manually add it to
the Cassandra lib/ directory or otherwise place it on the classpath."
On 9/2/2010 8:35 PM, Simon Chu wrote:
> I downloaded cassendra 0.6.5 and ran it, got this error:
>
> bin/cassandra -f
> INFO 16:46:06,198 JNA not found. Native methods will be disabled.
> INFO 16:46:06,875 DiskAccessMode 'auto' determined to be mmap,
> indexAccessMode is mmap
>
> is this an issue?
>
> When I tried to run cassandra cli from the example, I got the
> following errors:
>
> cassandra> use Keyspace1 sc 'blah$'
> line 1:0 no viable alternative at input 'use'
> Invalid Statement (Type: 0)
> cassandra> set Standard2['jsmith']['first'] = 'John';
> line 1:13 mismatched input '[' expecting DOT
>
> is this a setup issue?
>
> Simon
Re: question about Cassandra error
Posted by Mike Peters <ca...@softwareprojects.com>.
Simon,
See this page: http://www.riptano.com/blog/whats-new-cassandra-065
"Because of licensing issues <http://www.apache.org/legal/3party.html>,
we can't distribute JNA with Cassandra, so you must manually add it to
the Cassandra lib/ directory or otherwise place it on the classpath."
On 9/2/2010 8:35 PM, Simon Chu wrote:
> I downloaded cassendra 0.6.5 and ran it, got this error:
>
> bin/cassandra -f
> INFO 16:46:06,198 JNA not found. Native methods will be disabled.
> INFO 16:46:06,875 DiskAccessMode 'auto' determined to be mmap,
> indexAccessMode is mmap
>
> is this an issue?
>
> When I tried to run cassandra cli from the example, I got the
> following errors:
>
> cassandra> use Keyspace1 sc 'blah$'
> line 1:0 no viable alternative at input 'use'
> Invalid Statement (Type: 0)
> cassandra> set Standard2['jsmith']['first'] = 'John';
> line 1:13 mismatched input '[' expecting DOT
>
> is this a setup issue?
>
> Simon
Re: question about Cassandra error
Posted by Benjamin Black <b...@b3k.us>.
You seem to be typing 0.7 commands on a 0.6 cli. Please follow the
README in the version you are using, e.g.:
set Keyspace1.Standard2['jsmith']['first'] = 'John'
On Thu, Sep 2, 2010 at 5:35 PM, Simon Chu <si...@gmail.com> wrote:
> I downloaded cassendra 0.6.5 and ran it, got this error:
>
> bin/cassandra -f
> INFO 16:46:06,198 JNA not found. Native methods will be disabled.
> INFO 16:46:06,875 DiskAccessMode 'auto' determined to be mmap,
> indexAccessMode is mmap
>
> is this an issue?
>
> When I tried to run cassandra cli from the example, I got the following
> errors:
>
> cassandra> use Keyspace1 sc 'blah$'
> line 1:0 no viable alternative at input 'use'
> Invalid Statement (Type: 0)
> cassandra> set Standard2['jsmith']['first'] = 'John';
> line 1:13 mismatched input '[' expecting DOT
>
> is this a setup issue?
>
> Simon