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

Could not describe schema!! #28

Open
AkashRajvanshi opened this issue Mar 2, 2021 · 3 comments
Open

Could not describe schema!! #28

AkashRajvanshi opened this issue Mar 2, 2021 · 3 comments

Comments

@AkashRajvanshi
Copy link

Hey, I use cain to backup my Cassandra deployment ( I use bitnami chart of Cassandra ). but it will throw an error could not describe schema. Can you please help how can I resolve this??

kubectl logs -f pod/cassandra-backup-test-1614676800-n6lk4                                      
2021/03/02 09:21:14 Backup started!
2021/03/02 09:21:14 Getting clients
2021/03/02 09:21:14 Getting pods
2021/03/02 09:21:14 Testing existence of data-dir
2021/03/02 09:21:14 Backing up schema
2021/03/02 09:21:17 Could not describe schema. make sure a schema exists for keyspace "test" or restore it using "--schema". error in Stream: command terminated with exit code 1
@BeardyC
Copy link

BeardyC commented Apr 9, 2021

I had a similar error but it was due to authentication. Are you using authentication on the cassandra cluster?
In case you have, you'll need to set up cqlshrc on each pod with the [authentication] section so that when cain execs it can connect to the cluster.

@AkashRajvanshi
Copy link
Author

yes, I use authentication on Cassandra. Can you please how should I implement this??

@BeardyC
Copy link

BeardyC commented Apr 12, 2021

Cain execs onto the Cassandra pods and uses cqlsh commands so the credentials need to be set up.

You'll need to add an init script to your helm chart which will load your credentials from a secret and populate the file mentioned above. Documentation for configuration.

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

2 participants