Migrate, Modernize and Build Java Web Apps on Azure: This live workshop will cover methods to enhance Java application development workflow.
Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.
Owner at Alud Consulting
Białystok, PL
Joined Jun 2011
About
Rafal Kuc is a team leader and software developer. Right now he is a software architect and Solr and Lucene specialist. Mainly focused on Java, but open on every tool and programming language that will make the achievement of his goal easier and faster. Rafal is also one of the founders of solr.pl site where he tries to share his knowledge and help people with their problems.
Stats
Reputation: | 347 |
Pageviews: | 531.2K |
Articles: | 6 |
Comments: | 12 |
Articles
Comments
Nov 12, 2020 · Alan Hohn
Are you sure that the Zookeeper is started along with your Solr instance. The error points to the embedded instance not being available. Maybe you have a standalone Zookeeper? In such case you will have to provide its address and Zookeeper usually runs on port 2181. I would start with checking if the embedded Zookeeper is running along with Solr. You should see a message in Solr logs saying that the embedded Zookeeper is started.
Mar 28, 2019 · Jordan Baker
Hello,
This is because the admin is a readonly. That means that we can't change the password or admin attributes from the UI. This may or may not change, you may want to keep an eye on https://github.com/opendistro-for-elasticsearch/security/issues/10
To change the password now, you need to get to the container, generate a hash and launch a script updating a file. For example:
1. List containers:
$ docker ps
2. Get to the one with Elasticsearch:
$ docker exec -it sematext-test-node1 /bin/bash
3. Generate a hash for your new password, I changed mine to 'blabla'
$ chmod +x /usr/share/elasticsearch/plugins/opendistro_security/tools/hash.sh
$ /usr/share/elasticsearch/plugins/opendistro_security/tools/hash.sh
$ chmod -x /usr/share/elasticsearch/plugins/opendistro_security/tools/hash.sh
You will be asked for the password and in return the script will generate a new password. In my case it was:
$2y$12$pxLvrgCs3RfLGPJnTFkWdOQfYHbAmednfwUqBzAuQo2qGWlPfYp4W
4. Now, update your /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml with the above password
5. Finally the last thing is restarting the security module:
$ /usr/share/elasticsearch/plugins/opendistro_security/tools/securityadmin.sh -cd /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/ -icl -nhnv -cacert /usr/share/elasticsearch/config/root-ca.pem -cert /usr/share/elasticsearch/config/kirk.pem -key /usr/share/elasticsearch/config/kirk-key.pem
Keep in mind that those are paths for Docker, so if you are using RPM it may vary.
Mar 28, 2019 · Jordan Baker
Jun 28, 2012 · Will Soprano
Jun 18, 2012 · Will Soprano
Dec 27, 2011 · Mr B Loid
Dec 27, 2011 · Otis Gospodnetic
Nov 08, 2011 · Gerd Storm
Nov 08, 2011 · mitchp
Aug 01, 2011 · mitchp
Aug 01, 2011 · mitchp
Aug 01, 2011 · mitchp