Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema backup fails if cassandra rpc_address is not localhost #116

Open
dan-tcell opened this issue Sep 27, 2017 · 0 comments
Open

schema backup fails if cassandra rpc_address is not localhost #116

dan-tcell opened this issue Sep 27, 2017 · 0 comments

Comments

@dan-tcell
Copy link

I'm not sure why we've got it set up this way (likely extra security) but in cassandra.yaml we have rpc_address set to the FQDN hostname, ie. foo.bar.com. So if I say cqlsh alone it fails, but cqlsh foo.bar.com works.

As part of the tool I'm trying to dump the schema, which fails because it assumes cqlsh talks to localhost:

`[foo4] Executing task 'clear_node_snapshot'
[foo4] run: /usr/bin/nodetool clearsnapshot -t "20170927222103"
[foo4] out: Requested clearing snapshot(s) for [all keyspaces] with snapshot name [20170927222103]
[foo4] out:

[foo4] run: /usr/bin/nodetool ring
[foo4] run: echo 'DESCRIBE SCHEMA;' | /usr/bin/cqlsh

Fatal error: run() received nonzero return code 1 while executing!

Requested: echo 'DESCRIBE SCHEMA;' | /usr/bin/cqlsh
Executed: /bin/bash -l -c "echo 'DESCRIBE SCHEMA;' | /usr/bin/cqlsh"

===================================================================================================================== Standard output =====================================================================================================================

Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})

==================================================================================================================================================================`

Perhaps there should be a cassandra_snapshotter setting that allows you to specific the rpc_address? I'm not sure why it's not already looking for that info since it knows about cassandra.yaml (I also tested setting --cassandra-conf-path explicitly, it made no difference).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant