Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Manjaro Linux with a remote Cassandra
Description
The constructor of CassandraSchema which takes username and password parameters, but not the port ignores the username and password when delegating to the main constructor. Hence, the main constructor tries to establish an unauthenticated connection
Steps to reproduce:
- Configure a model.json like the following:
{ version: '1.0', defaultSchema: 'twissandra', schemas: [ { name: 'twissandra', type: 'custom', factory: 'org.apache.calcite.adapter.cassandra.CassandraSchemaFactory', operand: { host: 'localhost', keyspace: 'twissandra' username: 'cassandra' password: 'cassandra' } } ] }
- Disable unauthenticated connections to the cassandra instance (but make sure username and password in the model.json are correct, and that Cassandra listens on the default port, i.e. 9042)
- Use the model.json to connect to your Cassandra instance
Expected behaviour
The connection is established using the username and password as given in the JSON
Actual behaviour
The connection fails, because the connection was tried without using authentication
Attachments
Issue Links
- links to