Hello,
I am trying to configure a super user for the data centres.
nodetool status -:
Datacenter: dc1 =============== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 45.77.132.94 6.3 GiB 1 ? e4c87c7c-64af-464b-bde5-2d68994f061e rack1 UN 45.63.124.195 6.3 GiB 1 ? 80b67f04-96aa-4738-8aae-de6a3fc736e8 rack1 Datacenter: dc2 =============== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 198.13.32.77 7.26 GiB 1 ? c8241814-beb3-49c7-badb-cbe3eae7d092 rack1
root@guest:~# dsetool status DC: dc1 Workload: Cassandra Graph: yes ======================================================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Owns VNodes Rack Health [0,1] UN 45.77.132.94 6.3 GiB ? 1373838195836017537 rack1 1.00 UN 45.63.124.195 6.3 GiB ? 3927092362494960728 rack1 1.00 DC: dc2 Workload: Search Graph: no ====================================================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Owns VNodes Rack Health [0,1] UN 198.13.32.77 7.26 GiB ? 1464414249938006771 rack1 0.80
desc system_auth and dse_secutiry -:
updated from SimpleStrategy to NetworkTopologyStategy with dc1 - 2, dc2 - 1.
Before update, I was getting NoHostAvailable error in cqlsh in Solr server. After updating the strategy, I can see the user that I created in dc1, along with cassandra.
I can also login with the user in the solr dc.
Connected to sample at 198.13.32.77:9042. [cqlsh 5.0.1 | DSE 6.7.4 | CQL spec 3.4.5 | DSE protocol v2] Use HELP for help. myUser@cqlsh> list roles; role | super | login | options -----------+-------+-------+--------- cassandra | True | True | {} myUser | True | True | {} (2 rows)
In Code, creating solr index by -:
val solrClient = new SolrClient("http://" + "myUser" + ":" + "password" + "@" + "solr" + "/sample.table")
When I pass the created user from the code to create solr client it throws an error -:
{"code":500,"body":{"api":"MapFeeder","message":" There is an issue, internal server error occured","getMessage":"IOException occurred when talking to server at: http://myUser:password@198.13.32.77:8983/solr/sample.table"}}
I can see the user and even perform cqlsh login with that user in Solr node, but it throws error when I pass it through http.
Also when I pass the default cassandra user instead of the user I created, everything works out.
Is there anything that I am missing? Please let me know more details are required.