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

KeyError: 'data_file_directories' #134

Open
AntonAntonyuk opened this issue Oct 19, 2019 · 0 comments
Open

KeyError: 'data_file_directories' #134

AntonAntonyuk opened this issue Oct 19, 2019 · 0 comments

Comments

@AntonAntonyuk
Copy link

hi, when trying backup ,get error :
[10.130.102.129] Executing task 'upload_node_backups'
[10.130.102.129] run: cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20191018162550 --snapshot_keyspaces=test --snapshot_table=recommendations --conf_path=/opt/cassandra/conf --exclude_tables=
Connected (version 2.0, client OpenSSH_7.2p2)
Authentication (publickey) successful!
[10.130.102.129] out: Traceback (most recent call last):
[10.130.102.129] out: File "/home/testbackup/.local/bin/cassandra-snapshotter-agent", line 9, in
[10.130.102.129] out: load_entry_point('cassandra-snapshotter==1.2.0', 'console_scripts', 'cassandra-snapshotter-agent')()
[10.130.102.129] out: File "/home/testbackup/.local/lib/python2.7/site-packages/cassandra_snapshotter/agent.py", line 306, in main
[10.130.102.129] out: args.incremental_backups
[10.130.102.129] out: File "/home/testbackup/.local/lib/python2.7/site-packages/cassandra_snapshotter/agent.py", line 202, in create_upload_manifest
[10.130.102.129] out: data_paths = get_data_path(conf_path)
[10.130.102.129] out: File "/home/testbackup/.local/lib/python2.7/site-packages/cassandra_snapshotter/agent.py", line 185, in get_data_path
[10.130.102.129] out: data_paths = cassandra_configs['data_file_directories']
[10.130.102.129] out: KeyError: 'data_file_directories'
[10.130.102.129] out:

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

Requested: cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20191018162550 --snapshot_keyspaces=test --snapshot_table=recommendations --conf_path=/opt/cassandra/conf --exclude_tables=
Executed: /bin/bash -l -c "cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20191018162550 --snapshot_keyspaces=test --snapshot_table=recommendations --conf_path=/opt/cassandra/conf --exclude_tables="

Aborting.

Fatal error: One or more hosts failed while executing task 'upload_node_backups'

in cassandra.yaml , data_file_directories: not specified
i believe it because of this. is the way to specify it as parameter ? or maybe i do something wrong. any ideas?

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