Unable to install Elastic search with Open distro.
commands(from official website of open distro):
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.2.0-amd64.deb
sudo dpkg -i elasticsearch-oss-7.2.0-amd64.deb
wget -qO - https://d3g5vo6xdbdb9a.cloudfront.net/GPG-KEY-opendistroforelasticsearch | sudo apt-key add -
echo "deb https://d3g5vo6xdbdb9a.cloudfront.net/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opendistroforelasticsearch.list
sudo apt-get update
sudo apt install -y opendistroforelasticsearch
OUTPUT:
dpkg: dependency problems prevent configuration of opendistroforelasticsearch:
opendistroforelasticsearch depends on opendistro-security (>= 1.2.0); however:
Package opendistro-security is not configured yet.
opendistroforelasticsearch depends on opendistro-security (<< 1.2.1); however:
Package opendistro-security is not configured yet.
dpkg: error processing package opendistroforelasticsearch (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
opendistro-security
opendistroforelasticsearch
E: Sub-process /usr/bin/dpkg returned an error code (1)
Journal:
058 main ERROR Could not register mbeans java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register") node2 elasticsearch[52189]: at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) node2 elasticsearch[52189]: at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:444) node2 elasticsearch[52189]: at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1805) node2 elasticsearch[52189]: at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:318) node2 elasticsearch[52189]: at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) node2 elasticsearch[52189]: at org.apache.logging.log4j.core.jmx.Server.register(Server.java:393) node2 elasticsearch[52189]: at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:168) node2 elasticsearch[52189]: at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:141) node2 elasticsearch[52189]: at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:558) node2 elasticsearch[52189]: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)