quantum-fusion / springboot_swagger_example-master-cassandra

0 stars 0 forks source link

setupPooling for a cluster configuration of either local or remote nodes should be dynamic. #4

Closed quantum-fusion closed 6 years ago

quantum-fusion commented 6 years ago

setupPooling, is improperly displaying list of IPaddress nodes, for pooling cassandra Nodes that are listed in the application.properties file.

In addition, the ip address that is loaded at either startup should display: java -jar ./target/spring-boot-web-0.0.1-SNAPSHOT.jar -Dcassandra_ip=172.17.0.2 -Dcassandra_port=9042

or during REST setup: curl -X POST --header 'Content-Type: application/json' --header 'Accept: text/plain' -d '{ \ "cassandraIpAddress": "129.7.0.1", \ "cassandraPort": "9042" \ }' 'http://localhost:8080/restaurant/testarguments'

Display Ipaddress and cassandra port settings via REST: curl -X POST --header 'Content-Type: application/json' --header 'Accept: text/plain' 'http://localhost:8080/restaurant/reportarguments'

2017-12-11 10:47:38.171 ERROR 32544 --- [ main] g.springframework.cassandra.SessionUtil : setupPooling:cassandraNodes:[Ljava.lang.String;@592e843a

quantum-fusion commented 6 years ago

curl -X POST --header 'Content-Type: application/json' --header 'Accept: text/plain' -d '{ \ "cassandraIpAddress": "18.216.248.106", \ "cassandraPort": "9042" \ }' 'http://localhost:8080/restaurant/testarguments'

Proves that ip addresses of nodes can be updated dynamically.

However, if an IP address is unaccessible to the network, the configuration will fail with NotAccessible or TransportException.

quantum-fusion commented 6 years ago

Currently AWS ports setup for cassandra are not accepting traffic.

quantum-fusion commented 6 years ago

The dynamic configuring of ipaddresses have been fixed, to include command line arguments, and REST api arguments.