PS C:\Users\user\Desktop\cass\backend\rf_dash> py .\manage.py sync_cassandra
Traceback (most recent call last):
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django_cassandra_engine\connection.py", line 76, in register
connection.get_connection(name=self.alias)
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\cassandra\cqlengine\connection.py", line 247, in get_connection
raise CQLEngineException("Connection name '{0}' doesn't exist in the registry.".format(name))
cassandra.cqlengine.CQLEngineException: Connection name 'default' doesn't exist in the registry.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\Desktop\cass\backend\rf_dash\manage.py", line 22, in <module>
main()
File "C:\Users\user\Desktop\cass\backend\rf_dash\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django\core\management\__init__.py", line 420, in execute
django.setup()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django\apps\registry.py", line 116, in populate
app_config.import_models()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django_cassandra_engine\apps.py", line 60, in import_models
self.connect()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django_cassandra_engine\apps.py", line 57, in connect
conn.connect()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django_cassandra_engine\base\__init__.py", line 109, in connect
self.connection = CassandraConnection(self.alias, **settings)
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django_cassandra_engine\connection.py", line 72, in __init__
self.register()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\django_cassandra_engine\connection.py", line 92, in register
connection.register_connection(
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\cassandra\cqlengine\connection.py", line 201, in register_connection
conn.setup()
File "C:\Users\user\Desktop\cass\venv\rf_dashboard\lib\site-packages\cassandra\cqlengine\connection.py", line 109, in setup
self.session = self.cluster.connect()
File "cassandra\cluster.py", line 1730, in cassandra.cluster.Cluster.connect
File "cassandra\cluster.py", line 1766, in cassandra.cluster.Cluster.connect
File "cassandra\cluster.py", line 1753, in cassandra.cluster.Cluster.connect
File "cassandra\cluster.py", line 3569, in cassandra.cluster.ControlConnection.connect
File "cassandra\cluster.py", line 3614, in cassandra.cluster.ControlConnection._reconnect_internal
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', {'10.71.19.90:9042': OperationTimedOut('errors=Timed out creating connection (5 seconds), last_host=None')})
If I'm missing something, kindly guide me on how to properly connect to Cassandra using django-cassandra-engine
I'm getting this error:
Django settings:
If I'm missing something, kindly guide me on how to properly connect to Cassandra using django-cassandra-engine