Cannot create new user in shield

Hi Team,

My cluster config is Elasticsearch (1.7.2) & Shield 2.0, Java 1.8
I am unable to create a new user for shield by using the following command

bin/shield/esusers useradd espoweruser -r power_user

I am getting error as below.

Error: Could not find or load main class org.elasticsearch.shield.authc.esusers.tool.ESUsersTool

Please help me to resolve this error.

Thanks,
Ganeshbabu R

Hi Ganeshbabu,

Shield 2.0 will only work with Elasticsearch 2.0. Starting with Shield/Watcher/Marvel 2.0, we have tied the version numbers together to simplify the version compatibility matrix.

To use Shield with Elasticsearch 1.7, you will need to use Shield 1.3.2. First, you'll need to uninstall Shield 2.0:

bin/plugin remove shield

Then you can install Shield 1.3.2:

bin/plugin install elasticsearch/shield/1.3.2

Now esusers should work for you.

Thanks,
Steve

1 Like

Thanks for you response.

Sorry @skearns I have given wrong cluster config my shield version is 1.3 only. Already admin user has been created and it's working fine.
But now I am trying to create power_user for monitor purpose I am getting this error,

Could not find or load main class org.elasticsearch.shield.authc.esusers.tool.ESUsersTool
,

Thanks
Ganeshbabu R

Can anybody help me to resolve this issue?

Regards
Ganeshbabu R

Hi Ganeshbabu,

How did you install ES? What OS are you running?

How and from what directory are you running the esusers command? What user are you running the command as?

Did you make any changes to the installation?

Thanks,
Steve

1 Like

Thanks for your response @skearns

we have fixed this issue. I discussed with the my infra setup team and finally i can able to create new esusers.

Regards,
Ganeshbabu R