File tree Expand file tree Collapse file tree 6 files changed +1284
-22
lines changed Expand file tree Collapse file tree 6 files changed +1284
-22
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ Data service provides various services to save and fetch data from [Apache Cassa
12
12
* Go to ` CASSANDRA_HOME\bin ` directory and execute the command ` cassandra.bat ` to run cassandra.
13
13
* Cassandra runs on default port 9042.
14
14
* To enabled Authentication for Cassandra database, open ` conf/cassandra.yaml ` configuration file and update the below properties with these values.
15
- * ** authenticator: org.apache.cassandra.auth. PasswordAuthenticator**
16
- * ** authorizer: org.apache.cassandra.auth. CassandraAuthorizer**
15
+ * ** authenticator: PasswordAuthenticator**
16
+ * ** authorizer: CassandraAuthorizer**
17
17
18
18
All the above steps can be executed directly by running below runCassandra gradle task for windows.
19
19
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ dependencies {
55
55
runtime(' com.h2database:h2' )
56
56
testCompile(' org.springframework.boot:spring-boot-starter-test' )
57
57
testCompile(' io.projectreactor:reactor-test' )
58
- apt " org.mapstruct:mapstruct-processor:${ mapstructVersion} "
58
+ annotationProcessor " org.mapstruct:mapstruct-processor:${ mapstructVersion} "
59
59
}
60
60
61
61
dependencyManagement {
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- CQL=" DROP keyspace testdb;
4
- CREATE KEYSPACE testdb WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
5
- ALTER USER cassandra WITH PASSWORD 'admin123';
6
- CREATE USER appuser WITH PASSWORD 'test123';
7
- GRANT ALL ON KEYSPACE testdb TO appuser;"
3
+ CQL=" DROP keyspace $CASSANDRA_APP_KEYSPACE ;
4
+ CREATE KEYSPACE $CASSANDRA_APP_KEYSPACE WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
5
+ CREATE ROLE $CASSANDRA_APP_USERNAME WITH SUPERUSER = false AND LOGIN = true AND PASSWORD = '$CASSANDRA_APP_PASSWORD ';
6
+ GRANT ALL ON KEYSPACE $CASSANDRA_APP_KEYSPACE TO $CASSANDRA_APP_USERNAME ;
7
+ CREATE ROLE $CASSANDRA_ROOT_USERNAME WITH SUPERUSER = true AND LOGIN = true AND PASSWORD = '$CASSANDRA_ROOT_PASSWORD ';
8
+ ALTER ROLE cassandra WITH SUPERUSER = false AND LOGIN = false;
8
9
9
10
until echo $CQL | cqlsh; do
10
11
echo " cqlsh: Cassandra is unavailable to initialize - will retry later"
You can’t perform that action at this time.
0 commit comments