Issue:
When I issue the command:
dsetool stop_core_reindex <keyspace>.<core>
I receive an error stating connection refused.
Some dsetool commands use the same interface/port that the solr admin ui utilizes, which is 8983 by default. You can verify this with:
automaton@ip-10-101-32-78:~$ netstat -tulpn | grep -i listen
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:7080 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:7081 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:8778 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:7437 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:43505 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:8081 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:9042 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:7447 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8983 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:7000 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:5598 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:5599 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:7199 0.0.0.0:* LISTEN -
tcp 0 0 10.101.32.78:8609 0.0.0.0:* LISTEN -
tcp6 0 0 :::61621 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::18080 :::* LISTEN 15244/java
In this case, the default is:
tcp 0 0 0.0.0.0:8983 0.0.0.0:* LISTEN -
However, in your environment you may have locked this down a bit, so your output could read:
tcp 0 0 172.28.219.42:8983 0.0.0.0:* LISTEN 152025/java
Solution:
If your netstat output looks similar to the above, specifying ip, then you should run the command as:
dsetool -h 172.28.219.42 stop_core_reindex <keyspace>.<core>