I am trying to install shield plugin. I tried using both offline installation procedure as well as RPM packaged installation. I am using elasticsearch 2.4.1
I installed Oracle Java and also configured JAVA_HOME and alternatives.
Now my java version is Java (TM) SE Runtime Environment 1.8.0_102.
I still have the same error when installing Shield
/etc/elasticsearch folder and all of its contents have : as elasticsearch: elasticsearch. I am running install as root user. I also checked by making /etc/elasticsearch and its contents to root:root but, the same error occurred.
Well I got it worked in very unconventional way.
The plugin was working in my laptop well. So, based on that, I extracted the shield plugin files into respective folders on my machine having issue, and it worked out. Now I could create users, roles and apply field level security, ehich I was originally looking for.
I dont have that verbose output. But, from what I saw, it searched for bin/ in /usr/share/elasticsearch and copied bin/ files from plugin over there. Later on, it tried copying plugin's config/ directory files from /usr/share/elasticsearch/plugins/shield into /etc/elasticsearch/shield. One such file is logging.yml and the error is same as one stated above.
Continue with installation? [y/N]y
Installed shield into /usr/share/elasticsearch/plugins/shield
Found bin, moving to /usr/share/elasticsearch/bin/shield
Installed shield into /usr/share/elasticsearch/bin/shield
Found config, moving to /etc/elasticsearch/shield
ERROR: Error copying config directory [/usr/share/elasticsearch/plugins/shield/config] to [/etc/elasticsearch/shield], cleaning up, reason: FileSystemException:[/etc/elasticsearch/shield/logging.yml: Invalid argument]
ERROR: /etc/elasticsearch/shield/logging.yml: Invalid argument
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.