Can't run nodetool on my vagrant virtual cassandra cluster -
basically i'm trying run simple 2 node virtual cassandra cluster experiment with. i'm trying set need run vagrant up
, have cassandra , running.
i've managed actual cluster working (i know because in 1 node create keyspace , table , inserted value able access other node) can't seem nodetool work.
when run
nodetool -h 192.168.10.11 -p 7000 status
i error
nodetool: failed connect '192.168.10.11:7000' - socketexception: 'connection reset'.
the reason i've changed ports around avoid port collisions. (so changed jmx_port 7000 1 node , 7001 another, changed rpc_port , native_transport_port each node using unique port)
ok figured out needed fix nodetool working.
firstly don't need modify jmx port setting @ all. don't need expose forwarded_port.
now on how working:
in cassandra-env.sh there line commented out says:
#jvm_opts="$jvm_opts -djava.rmi.server.hostname=<hostname>
uncomment line , put either hostname or ip of node want nodetool connect or node want connect to. simple that.
Comments
Post a Comment