Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

cd /usr/local/ranger-2.0.0-SNAPSHOT-elasticsearch-plugin
./enable-elasticsearch-plugin.sh


d.Configure the security policy file of Elasticsearch to run ranger plugin

add the following configuration to $ELASTICSEARCH_HOME/config/jvm.options:

-Djava.security.policy=$ELASTICSEARCH_HOME/plugins/ranger-elasticsearch-plugin/plugin-security.policy


e.Create Elasticsearch service in Ranger Admin web portal

PROPERTY VALUE 
Service Nameelasticsearchdev
Usernameelasticsearch
Elasticsearch URLhttp://IP:9200


ef.Restart Elasticsearch

Note that Ranger Elasticsearch plugin should be installed in each Elasticsearch master node and data node,
we should restart the total Elasticsearch cluster.


fg.Verify install result

  • Check whether the elasticsearch_elasticsearchdev.json file exists under the /etc/ranger/elasticsearchdev/policycache directory.
  • Check the Elasticsearch plugin status on the Plugins tab page of the Audit function in Ranger Admin web portal.