Error returned that means unknown

2019-04-26 Thread Long Quanzheng
Hi We found that Cassandra can return timeout error but the actual operation succeeded. https://github.com/gocql/gocql/blob/master/conn.go#L1441 Is there a way to know all those kind of errors? Here is the background why we need this: We are using two phase commit: 1) append data to tableA 2) ex

Failure reason for batch conditional update

2018-09-07 Thread Long Quanzheng
Hi I did a logged batch of conditional update, and sometimes(not always) got failure, and return of conflicting columns show that there is no conflicting value. Is there any other reason that batch can fail? My batch is like: ``` update tblA set col1=1 where pk=1 and col1=1; //to make sure no othe

Re: Error of "You have to be logged in and not anonymous to perform this request"

2017-03-19 Thread Long Quanzheng
u don’t want to use. :-) > > - Max > > On Mar 19, 2017, at 6:56 pm, Long Quanzheng wrote: > > Hi > I can't do any actions even with the superuser "cassandra". > > cassandra@cqlsh> list roles; > Unauthorized: Error from server: code=2100 [Unauthor

Error of "You have to be logged in and not anonymous to perform this request"

2017-03-19 Thread Long Quanzheng
Hi I can't do any actions even with the superuser "cassandra". cassandra@cqlsh> list roles; Unauthorized: Error from server: code=2100 [Unauthorized] message="You have to be logged in and not anonymous to perform this request" cassandra@cqlsh> CREATE USER dba WITH PASSWORD 'bacon' SUPERUSER; Unau

Re: Running cassandra

2017-03-19 Thread Long Quanzheng
0 benjamin roth : > You're welcome! > > 2017-03-19 18:41 GMT+01:00 Long Quanzheng : > >> You are RIGHT! >> It's working after I remove the env variable GREP_OPTIONS. >> >> Thanks! >> >> 2017-03-19 10:08 GMT-07:00 benjamin roth : >> &

Re: Running cassandra

2017-03-19 Thread Long Quanzheng
You are RIGHT! It's working after I remove the env variable GREP_OPTIONS. Thanks! 2017-03-19 10:08 GMT-07:00 benjamin roth : > I once had the same problem. In my case it was the coloured output of grep > that injected ansi codes into the CS startup command. > > Am 19.03.2017 18

Re: Running cassandra

2017-03-19 Thread Long Quanzheng
Hi It still doesn't work. The real problem is this error: Error: Could not find or load main class -ea Thanks Long On Sun, Mar 19, 2017 at 3:16 AM Vinci wrote: > You need to have a log directory to be able to run cassandra. > > mkdir logs > > then start the cassandra process. > > Ori

Running cassandra

2017-03-18 Thread Long Quanzheng
Hi I am trying to get started to play with Cassandra follow this doc: http://cassandra.apache.org/doc/latest/getting_started/installing.html#prerequisites But I always get the error: qlong@~/ws/cas/apache-cassandra-3.10 $ ./bin/cassandra -f Java HotSpot(TM) 64-Bit Server VM warning: Cannot open f

Running cassandra

2017-03-18 Thread Long Quanzheng
Hi anyone, I am trying to get started to play with Cassandra follow this doc: http://cassandra.apache.org/doc/latest/getting_started/installing.html#prerequisites But I always get the error: qlong@~/ws/cas/apache-cassandra-3.10 $ ./bin/cassandra -f Java HotSpot(TM) 64-Bit Server VM warning: Canno