I've been following both the short and long version of the documentation in installing Shield. However, I can't seem to be able to add any users as I'm getting the below error.
Error: Could not find or load main class org.elasticsearch.shield.authc.esusers.tool.ESUsersTool
Below are the exact steps I took in installing Shield
- Created .profile file in home which included
source .profileand verified the path by running
brew info elasticsearchand identified the ES home directory
- In ES home, installed both the license and shield with commands
bin/plugin -i elasticsearch/license/latestfollowed by
bin/plugin -i elasticsearch/shield/latest
- Restarted ES by first running
brew info elasticsearchto get the commands to unload and reload ES
localhost:9200on my browser, authentication required
bin/shield/esusers useradd admin -r adminto add and admin.
This was where I'm getting the mentioned error. Repeated this steps couple of times both on my Mac and Ubuntu. Not too sure where the problem is as my technical knowledge is quite limited plus there seem to be no such post about this particular error anywhere on google.