cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Licata (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-12485) Always require replace_address to replace existing token
Date Mon, 17 Oct 2016 18:26:58 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-12485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15582905#comment-15582905
] 

Christopher Licata  edited comment on CASSANDRA-12485 at 10/17/16 6:26 PM:
---------------------------------------------------------------------------

So, as you can see the {{ stress-build }} step completes properly: 

{noformat}
build:
build-test:
    [javac] Compiling 487 source files to /Users/xle012/cstar/cassandra/build/test/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 23 files to /Users/xle012/cstar/cassandra/build/test/classes

stress-build:
    [mkdir] Created dir: /Users/xle012/cstar/cassandra/build/classes/stress
    [javac] Compiling 120 source files to /Users/xle012/cstar/cassandra/build/classes/stress
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/stress

write-poms:

init:

maven-ant-tasks-localrepo:

maven-ant-tasks-download:

maven-ant-tasks-init:

maven-declare-dependencies:

_write-poms:

jar:
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/main/META-INF
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/thrift/META-INF
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/main/META-INF
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/thrift/META-INF
      [jar] Building jar: /Users/xle012/cstar/cassandra/build/apache-cassandra-thrift-4.0-SNAPSHOT.jar
      [jar] Building jar: /Users/xle012/cstar/cassandra/build/apache-cassandra-4.0-SNAPSHOT.jar
    [mkdir] Created dir: /Users/xle012/cstar/cassandra/build/classes/stress/META-INF
      [jar] Building jar: /Users/xle012/cstar/cassandra/build/tools/lib/stress.jar

BUILD SUCCESSFUL
Total time: 40 seconds
{noformat}

However, I am getting the following error when I try to run the Cassandra Stress binaries
manually: 

{noformat}
Christopher Licata ➡ ~/cstar/cassandra/tools/bin [12485-trunk]
± λ sh cassandra-stress                                                                
                                                                                         
                                                                                        1:44PM
- October 17
Error: Could not find or load main class org.apache.cassandra.stress.Stress
{noformat}
And actually I am no longer able to run a local cassandra server on my machine when I start
it from tarball either: 

{noformat}
Christopher Licata ➡ ~/Software/apache-cassandra-3.9/bin
  λ ./cassandra -f     
Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon
{noformat}

Any advice? I am running on OSX.


was (Author: cmlicata):
So, as you can see the {{ stress-build }} step completes properly: 

{noformat}
build:
build-test:
    [javac] Compiling 487 source files to /Users/xle012/cstar/cassandra/build/test/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 23 files to /Users/xle012/cstar/cassandra/build/test/classes

stress-build:
    [mkdir] Created dir: /Users/xle012/cstar/cassandra/build/classes/stress
    [javac] Compiling 120 source files to /Users/xle012/cstar/cassandra/build/classes/stress
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/stress

write-poms:

init:

maven-ant-tasks-localrepo:

maven-ant-tasks-download:

maven-ant-tasks-init:

maven-declare-dependencies:

_write-poms:

jar:
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/main/META-INF
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/thrift/META-INF
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/main/META-INF
     [copy] Copying 1 file to /Users/xle012/cstar/cassandra/build/classes/thrift/META-INF
      [jar] Building jar: /Users/xle012/cstar/cassandra/build/apache-cassandra-thrift-4.0-SNAPSHOT.jar
      [jar] Building jar: /Users/xle012/cstar/cassandra/build/apache-cassandra-4.0-SNAPSHOT.jar
    [mkdir] Created dir: /Users/xle012/cstar/cassandra/build/classes/stress/META-INF
      [jar] Building jar: /Users/xle012/cstar/cassandra/build/tools/lib/stress.jar

BUILD SUCCESSFUL
Total time: 40 seconds
{noformat}

However, I am getting the following error when I try to run the Cassandra Stress binaries
manually: 

{noformat}
Christopher Licata ➡ ~/cstar/cassandra/tools/bin [12485-trunk]
± λ sh cassandra-stress                                                                
                                                                                         
                                                                                        1:44PM
- October 17
Error: Could not find or load main class org.apache.cassandra.stress.Stress
{noformat}

> Always require replace_address to replace existing token
> --------------------------------------------------------
>
>                 Key: CASSANDRA-12485
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12485
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Distributed Metadata
>            Reporter: Paulo Motta
>            Priority: Minor
>              Labels: lhf
>
> CASSANDRA-10134 prevented replace an existing node unless {{\-Dcassandra.replace_address}}
or {{\-Dcassandra.allow_unsafe_replace=true}} is specified.
> We should extend this behavior to tokens, preventing a node from joining the ring if
another node with the same token already existing in the ring, unless {{\-Dcassandra.replace_address}}
or {{\-Dcassandra.allow_unsafe_replace=true}} is specified in order to avoid catastrophic
scenarios.
> One scenario where this can easily happen is if you replace a node with another node
with a different IP, and after some time you restart the original node by mistake. The original
node will then take over the tokens of the replaced node (since it has a newer gossip generation).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message