riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Unable to run a multi-node cluster #705

Closed vasigorc closed 4 years ago

vasigorc commented 4 years ago

Intent

Trying to create a three node cluster with DSE support locally on my Mac.

Prerequisites

Steps to reproduce

  1. ccm create local_vgorcinschi --dse -v 5.1.7 -n 3 --dse-username usr --dse-password pswd
  2. ccm setworkload solr
  3. sudo ifconfig lo0 alias 127.0.0.2 up and sudo ifconfig lo0 alias 127.0.0.3 up
  4. ccm start // gets hung
  5. (trying in a new terminal tab)
    ~ > ccm status
    Cluster: 'local_vgorcinschi'
    ----------------------------
    node1: UP
    node3: UP
    node2: UP

    but testing whether cluster configuration is correct (as advised in the user guide):

    
    ~ > ccm node1 ring

Datacenter: Solr

Address Rack Status State Load Owns Token

127.0.0.1 rack1 Up Normal 90.79 KiB 100.00% -9223372036854775808


Finally I cannot even login to any node but `node1`:

~ > ccm node2 cqlsh Connection error: ('Unable to connect to any servers', {'127.0.0.2': error(None, "Tried connecting to [('127.0.0.2', 9042)]. Last error: timed out")})



I'd appreciate any help.
vasigorc commented 4 years ago

It was McAfee on my Mac that caused this connection issue. Once disabling it, the issue went away.