How can I check cassandra cluster has a real working function of high availability?

2019-06-15 Thread Nimbus Lin
Dear cassandra's pioneers:
I am a 5 years' newbie,  it is until now that I have time to use cassandra. 
but I cann't check cassandra's high availabily when I stop a seed node or none 
seed DN as CGE or Greenplum.
Would someone can tell me how to check the cassandra's high availability? 
even I change the consistency level from one to local_one, the cqlsh's select 
is always return an error of NoHostAvailable.

 By the way, would you like to answer me other two questions:
2nd question: although cassandrfa's consistency is a per-operation setting, 
isn't there a whole all operations' consistency setting method?
3rd question: how can I can cassandra cluster's running variables as mysql's 
show global variables? such as hidden variable of  auto_bootstrap?

Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com

-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



is there a fast import data tool from oracle to cassandra besides java-coding?

2019-06-19 Thread Nimbus Lin
To cassandra's pioneers:

Dear cassandra's pioneer, is there a fast import data tool from oracle to 
cassandra besides java-coding? I used copy from command to import oracle's date 
to cassandra's timestamp, but cassandra's timestamp validating is too strict to 
 permit a no second part time, such as:  Error1: can't interpret '2019-6-10 
8:17' as a date with format %Y-%m-%d %H:%M:%S.%f%z or as int . after I 
change cassandra type from timestamp to text, it reports Error 2: Error from 
server: code=2200 [Invalid query] message="String didn't validate."would any 
cassandra pioneer can tell me how to solve these two errors or tell me what is 
a mature ETL tool to import data from oracle to cassandra?


Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com

-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



how to solve the 3 compile errors in AbstractRow.java?

2019-07-14 Thread Nimbus Lin
TO: Genius Cassandra's developers, 

   how to solve the 3 compile errors in  AbstractRow.java?

The 3 errors are all because the only 1 line code:

" sb.append(StreamSupport.stream(complexData.spliterator(), false)
  .map(transform != null ? transform : 
cell -> "")
  .collect(Collectors.joining(", ", 
"{", "}")));"

the 1st compile error is
"
The method map(Function) in the type Stream is 
not applicable for the arguments (((transform != null) ? transform : ( 
cell) -> ""))AbstractRow.java
/cassandra-trunk/src/java/org/apache/cassandra/db/rowsline 183Java 
Problem
"
The other 2 compile errors are:
Type mismatch: cannot convert from Function to Function  AbstractRow.java

Type mismatch: cannot convert from String to R  AbstractRow.java


The fastest tempory solving method is commenting out the line, but what are the 
bad effects ?

I would very appreciate your help!

Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com

-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



Isn't there a workable cassandra java source for developing as other big data system?

2019-07-16 Thread Nimbus Lin
To Sir Jeff:
   your method of "ant realclean" doesn't work, but delete the needing 
library in build/jars/.

To other Cassandra's developers:
Hi, is there any Cassandra's developers here ?, would you like to tell 
me which version cassandra's java source is really able to be build and run 
well?  or  how to solve the only  3 compile errors in  AbstractRow.java for 
version 3.11.3?   If cassandra's source is not really free for developing, then 
maybe it is better for me to change to other big data system's source  to 
develop.

   Isn't there a workable cassandra java source for developing  as other 
big data system?
   


Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com

-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



Re: Isn't there a workable cassandra java source for developing as other big data system?

2019-07-16 Thread Nimbus Lin

To Sir Benedict  :

Since  you have compiled corrobartedly, would you like to tell me your 
comiling steps?
I compile as cassandra's official website, which is "ant 
generaate-eclipse-files" first with cassaandra 3.11.3, but failed with the only 
3 errors on a single line in AbstractRow.java.  


Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com



From: Benedict Elliott Smith 
Sent: Tuesday, July 16, 2019 2:01 PM
To: dev@cassandra.apache.org
Subject: Re: Isn't there a workable cassandra java source for developing  as 
other big data system?

3.11.3 compiles just fine, I have just corroborated.  Sir Jeff is in fact a 
Cassandra developer, so please feel free to engage with his question, which was 
designed to help diagnose your problem.


> On 16 Jul 2019, at 14:54, Nimbus Lin  wrote:
>
> To Sir Jeff:
>   your method of "ant realclean" doesn't work, but delete the needing 
> library in build/jars/.
>
> To other Cassandra's developers:
>Hi, is there any Cassandra's developers here ?, would you like to tell 
> me which version cassandra's java source is really able to be build and run 
> well?  or  how to solve the only  3 compile errors in  AbstractRow.java for 
> version 3.11.3?   If cassandra's source is not really free for developing, 
> then maybe it is better for me to change to other big data system's source  
> to develop.
>
>   Isn't there a workable cassandra java source for developing  as other 
> big data system?
>
>
>
> Thank you!
>
> Sincerely
> Nimbuslin(Lin JiaXin)
> Mobile: 0086 180 5986 1565
> Mail: jiaxin...@live.com
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
> For additional commands, e-mail: dev-h...@cassandra.apache.org
>


-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



but there are still the same only 3 compile errors left on the 1 line code in abstractRow.java

2019-07-17 Thread Nimbus Lin
To Sir Michael:

Thank you for your guiding, my steps are:
cd /data/workspace/OxyCentos/HadoopCas/cassandra-trunk
   git clone https://github.com/apache/cassandra.git
   cd cassandra-trunk/
 git checkout -b cassandra-3.11.3
   ant artifacts

The steps all build successfully, and the  returnings info from "ant artifacts" 
is:
BUILD SUCCESSFUL
Total time: 5 minutes 58 seconds
[gloCalHelp.com@gloCalHelp1 cassandra-trunk]$ git status
# On branch cassandra-3.11.3
nothing to commit (working directory clean)
[gloCalHelp.com@gloCalHelp1 cassandra-trunk]$ git log -n1
commit 31d5d870f9f5b56391db46ba6cdf9e0882d8a5c0
Merge: 6bcc60a d52c7b8
Author: Benedict Elliott Smith 
Date:   Mon Jul 16 17:46:37 2018 +0100

Merge branch 'cassandra-3.0' into HEAD

The "ant generate-eclipse-files" 's returnings are:
 [copy] Warning: functions modified in the future.
 [copy] Warning: tokenization modified in the future.

generate-eclipse-files:
[mkdir] Created dir: 
/data/workspace/OxyCentos/HadoopCas/cassandra-trunk/.settings

BUILD SUCCESSFUL
Total time: 12 seconds

then I follow the page you offer's steps are:
Start Eclipse.
Select File->Import->Existing Projects into Workspace->Select git directory.
Make sure “cassandra-trunk” is recognized and selected as a project 

and then from menu Project-> clean -> build only the selected projects..

but there are still the same only 3 errors left on the 1 line code:

1, The method map(Function) in the type Stream 
is not applicable for the arguments (((transform != null) ? transform : ( cell) -> "")) AbstractRow.java
/cassandra-trunk/src/java/org/apache/cassandra/db/rows  line 183Java 
Problem
2, Type mismatch: cannot convert from Function to Function   AbstractRow.java
/cassandra-trunk/src/java/org/apache/cassandra/db/rows  line 183Java 
Problem
3, Type mismatch: cannot convert from String to R   AbstractRow.java
/cassandra-trunk/src/java/org/apache/cassandra/db/rows  line 183Java 
Problem

how to solve the cassandra 3.11.3 source's compiling errors exactly?




Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com



From: Michael Shuler  on behalf of Michael Shuler 

Sent: Tuesday, July 16, 2019 2:28 PM
To: dev@cassandra.apache.org
Subject: Re: Isn't there a workable cassandra java source for developing as 
other big data system?

You have a dirty build environment. Your path of "/cassandra-trunk/src"
in the error and the suggestion on slack that you are trying to build
cassandra-3.11.3 shows me you need to start over fresh. Here you go:

build docs:
http://cassandra.apache.org/doc/latest/development/ide.html

build steps pasted in slack:#cassandra:
   cd /tmp/
   git clone https://github.com/apache/cassandra.git
   cd cassandra/
   git checkout cassandra-3.11.3
   ant artifacts

BUILD SUCCESSFUL
Total time: 1 minute 32 seconds

--
Kind regards,
Michael

On 7/16/19 9:01 AM, Benedict Elliott Smith wrote:
> 3.11.3 compiles just fine, I have just corroborated.  Sir Jeff is in
> fact a Cassandra developer, so please feel free to engage with his
> question, which was designed to help diagnose your problem.
>
>
>> On 16 Jul 2019, at 14:54, Nimbus Lin  wrote:
>>
>> To Sir Jeff: your method of "ant realclean" doesn't work, but
>> delete the needing library in build/jars/.
>>
>> To other Cassandra's developers: Hi, is there any Cassandra's
>> developers here ?, would you like to tell me which version
>> cassandra's java source is really able to be build and run well?
>> or  how to solve the only  3 compile errors in  AbstractRow.java
>> for version 3.11.3?   If cassandra's source is not really free for
>> developing, then maybe it is better for me to change to other big
>> data system's source  to develop.
>>
>> Isn't there a workable cassandra java source for developing  as
>> other big data system?
>>
>>
>>
>> Thank you!
>>
>> Sincerely Nimbuslin(Lin JiaXin) Mobile: 0086 180 5986 1565 Mail:
>> jiaxin...@live.com
>>
>> -
>>
>>
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
>> For additional commands, e-mail: dev-h...@cassandra.apache.org
>>
>
>
> -
>
>
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
> For additional commands, e-mail: dev-h...@cassandra.apache.org
>


-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



Re: but there are still the same only 3 compile errors left on the 1 line code in abstractRow.java

2019-07-17 Thread Nimbus Lin
Jasonstack:

  Thank you very much for your teaching, now I have solved the compiling 
errors and only a step is left for confirming 
whether the free source is real workable or not, is the step to replace the 
jars in build/dist/?

  The solving method is just to define as below:

 //to simplify the below error line,define the variables
Function< Cell, String> VariableWantedmapper;
Function VariableOriginal =(transform != null 
? transform : cell -> "");

   So I have to say many thanks to you, Cassandra's pioneer engineers and 
Java's compiler's makers.
Is a secret of Java compiler that " a too deep grammar-decode-compiling  " will 
generate some compiling errors? 

>>>Intellij should work just fine ..
 I found Intellij's menu organizing seems weaker than Eclipse, so I have 
been using Eclipse for over 15 years.
Thanks for your teaching.

Thank you!

Sincerely
Nimbuslin(Lin JiaXin)
Mobile: 0086 180 5986 1565
Mail: jiaxin...@live.com



From: Jasonstack Zhao Yang 
Sent: Wednesday, July 17, 2019 6:28 PM
To: dev@cassandra.apache.org
Subject: Re: but there are still the same only 3 compile errors left on the 1 
line code in abstractRow.java

Hi,

It's probably just an Eclipse issue that doesn't properly handle lambda.

Intellij should work just fine or you can add a type cast "(Function)" for Eclipse...



On Wed, 17 Jul 2019 at 16:32, Nimbus Lin  wrote:

> To Sir Michael:
>
> Thank you for your guiding, my steps are:
> cd /data/workspace/OxyCentos/HadoopCas/cassandra-trunk
>git clone https://github.com/apache/cassandra.git
>cd cassandra-trunk/
>  git checkout -b cassandra-3.11.3
>ant artifacts
>
> The steps all build successfully, and the  returnings info from "ant
> artifacts" is:
> BUILD SUCCESSFUL
> Total time: 5 minutes 58 seconds
> [gloCalHelp.com@gloCalHelp1 cassandra-trunk]$ git status
> # On branch cassandra-3.11.3
> nothing to commit (working directory clean)
> [gloCalHelp.com@gloCalHelp1 cassandra-trunk]$ git log -n1
> commit 31d5d870f9f5b56391db46ba6cdf9e0882d8a5c0
> Merge: 6bcc60a d52c7b8
> Author: Benedict Elliott Smith 
> Date:   Mon Jul 16 17:46:37 2018 +0100
>
> Merge branch 'cassandra-3.0' into HEAD
>
> The "ant generate-eclipse-files" 's returnings are:
>  [copy] Warning: functions modified in the future.
>  [copy] Warning: tokenization modified in the future.
>
> generate-eclipse-files:
> [mkdir] Created dir:
> /data/workspace/OxyCentos/HadoopCas/cassandra-trunk/.settings
>
> BUILD SUCCESSFUL
> Total time: 12 seconds
>
> then I follow the page you offer's steps are:
> Start Eclipse.
> Select File->Import->Existing Projects into Workspace->Select git
> directory.
> Make sure “cassandra-trunk” is recognized and selected as a project
>
> and then from menu Project-> clean -> build only the selected projects..
>
> but there are still the same only 3 errors left on the 1 line code:
>
> 1, The method map(Function) in the type
> Stream is not applicable for the arguments (((transform != null) ?
> transform : ( cell) -> "")) AbstractRow.java
> /cassandra-trunk/src/java/org/apache/cassandra/db/rows  line 183
> Java Problem
> 2, Type mismatch: cannot convert from Function to Function super Cell,? extends R>   AbstractRow.java
> /cassandra-trunk/src/java/org/apache/cassandra/db/rows  line 183
> Java Problem
> 3, Type mismatch: cannot convert from String to R   AbstractRow.java
>   /cassandra-trunk/src/java/org/apache/cassandra/db/rows  line 183
>   Java Problem
>
> how to solve the cassandra 3.11.3 source's compiling errors exactly?
>
>
>
>
> Thank you!
>
> Sincerely
> Nimbuslin(Lin JiaXin)
> Mobile: 0086 180 5986 1565
> Mail: jiaxin...@live.com
>
>
> 
> From: Michael Shuler  on behalf of Michael Shuler
> 
> Sent: Tuesday, July 16, 2019 2:28 PM
> To: dev@cassandra.apache.org
> Subject: Re: Isn't there a workable cassandra java source for developing
> as other big data system?
>
> You have a dirty build environment. Your path of "/cassandra-trunk/src"
> in the error and the suggestion on slack that you are trying to build
> cassandra-3.11.3 shows me you need to start over fresh. Here you go:
>
> build docs:
> http://cassandra.apache.org/doc/latest/development/ide.html
>
> build steps pasted in slack:#cassandra:
>cd /tmp/
>git clone https://github.com/apache/cassandra.git
>cd cassandra/
>    git checkout cassandra-3.11.3
>ant artifacts
>
> BUILD SUCCESSFUL
> Total

Is there any canssandra genius who can help me to solve the suddenly starup error of "Error: Could not find or load main class -ea"?

2019-12-24 Thread Nimbus Lin
To Cassandra's developers and users:
CC dimo:

 Firstly thanks dimo for his guiding, but as my former mail show, there is 
no -ea variable in the cassandra's startup program and configuration.
And the centos6.9 OS's env also don't have -ea variable. And the cassandra 
startup fail, so I cann't use jinfo to check the cassandra's startup JVM 
environment.
 Since the error  suddenly happen after my customizing cassandra code even 
with the redownload origninal cassandra 3.11.4/3, I resend this error 
to dev mailing list. And the error happen as below:
,My os environment is a vmware's centos6.9 running in  windows10,  I can 
run cassandra 3.11.4's git-clone-src by using "bin/cassandra", but after I 
changed some codes by Eclipse,
 and compile without any error, not only the runnable source version, but also 
the redownloading 3.11.4-bin.tar.gz and 3.11.3 from official website fail to 
startup, 
they suddenly can't run by command of "./bin/cassandra", the steps and logs are 
as below:

[gloCalHelp.com@gloCalHelp5 apache-cassandra-3.11.4]$ ./bin/cassandra & [1] 
5872 [gloCalHelp.com@gloCalHelp5 apache-cassandra-3.11.4]$ classname is+ 
org.apache.cassandra.service.CassandraDaemon +CLASSPATH 
is+./bin/../conf:./bin/../build/classes/main:./bin/../build/classes/thrift:./bin/../lib/airline-0.6.jar:./bin/../lib/antlr-runtime-3.5.2.jar:./bin/../lib/apache-cassandra-3.11.4.jar:./bin/../lib/apache-cassandra-thrift-3.11.4.jar:./bin/../lib/asm-5.0.4.jar:./bin/../lib/caffeine-2.2.6.jar:./bin/../lib/cassandra-driver-core-3.0.1-shaded.jar:./bin/../lib/commons-cli-1.1.jar:./bin/../lib/commons-codec-1.9.jar:./bin/../lib/commons-lang3-3.1.jar:./bin/../lib/commons-math3-3.2.jar:./bin/../lib/compress-lzf-0.8.4.jar:./bin/../lib/concurrentlinkedhashmap-lru-1.4.jar:./bin/../lib/concurrent-trees-2.4.0.jar:./bin/../lib/disruptor-3.0.1.jar:./bin/../lib/ecj-4.4.2.jar:./bin/../lib/guava-18.0.jar:./bin/../lib/HdrHistogram-2.1.9.jar:./bin/../lib/high-scale-lib-1.0.6.jar:./bin/../lib/hppc-0.5.4.jar:./bin/../lib/jackson-core-asl-1.9.13.jar:./bin/../lib/jackson-mapper-asl-1.9.13.jar:./bin/../lib/jamm-0.3.0.jar:./bin/../lib/javax.inject.jar:./bin/../lib/jbcrypt-0.3m.jar:./bin/../lib/jcl-over-slf4j-1.7.7.jar:./bin/../lib/jctools-core-1.2.1.jar:./bin/../lib/jflex-1.6.0.jar:./bin/../lib/jna-4.2.2.jar:./bin/../lib/joda-time-2.4.jar:./bin/../lib/json-simple-1.1.jar:./bin/../lib/jstackjunit-0.0.1.jar:./bin/../lib/libthrift-0.9.2.jar:./bin/../lib/log4j-over-slf4j-1.7.7.jar:./bin/../lib/logback-classic-1.1.3.jar:./bin/../lib/logback-core-1.1.3.jar:./bin/../lib/lz4-1.3.0.jar:./bin/../lib/metrics-core-3.1.5.jar:./bin/../lib/metrics-jvm-3.1.5.jar:./bin/../lib/metrics-logback-3.1.5.jar:./bin/../lib/netty-all-4.0.44.Final.jar:./bin/../lib/ohc-core-0.4.4.jar:./bin/../lib/ohc-core-j8-0.4.4.jar:./bin/../lib/reporter-config3-3.0.3.jar:./bin/../lib/reporter-config-base-3.0.3.jar:./bin/../lib/sigar-1.6.4.jar:./bin/../lib/slf4j-api-1.7.7.jar:./bin/../lib/snakeyaml-1.11.jar:./bin/../lib/snappy-java-1.1.1.7.jar:./bin/../lib/snowball-stemmer-1.3.0.581.1.jar:./bin/../lib/ST4-4.0.8.jar:./bin/../lib/stream-2.5.2.jar:./bin/../lib/thrift-server-0.3.7.jar:./bin/../lib/jsr223//.jar

Error: Could not find or load main class -ea
[1]+ Done ./bin/cassandra
[gloCalHelp.com@gloCalHelp5 apache-cassandra-3.11.4]$ free -m
 total used free shared buffers cached Mem:
4567 801 3766 5 20 190 -/+ buffers/cache: 590 3977 Swap: 1031 0 1031
and the main class CassandraDaemon and classpath are there as 
":./bin/../lib/apache-cassandra-3.11.4.jar:",

I would very appreciate your guiding. Thank you ahead.

Sincerely yours,
Georgelin
www_8ems_...@sina.com
website: gloCalHelp.com
mobile:0086 180 5986 1565


-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org