Xpack installation through bash script


(Sandeep Rawat) #1

As per our requirement we have to install xpack through bash script .
[user@dev-elk-0 ~]$ sudo elasticsearch-plugin install < xpack installer file name>

The problem is that the install of x-pack prompts for an answer and we are not able to figure out how to answer the prompt through bash script.Please suggest how we can install xpack through bash script and force the script to install x-pack by skipping the prompt.

Below the install log to show where installer prompt user for Answer [yN]:

-> Downloading file:///tmp/x-pack-5.1.2.zip
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.lang.RuntimePermission accessClassInPackage.com.sun.activation.registries
  • java.lang.RuntimePermission getClassLoader
  • java.lang.RuntimePermission setContextClassLoader
  • java.lang.RuntimePermission setFactory
  • java.security.SecurityPermission createPolicy.JavaPolicy
  • java.security.SecurityPermission getPolicy
  • java.security.SecurityPermission putProviderProperty.BC
  • java.security.SecurityPermission setPolicy
  • java.util.PropertyPermission * read,write
  • java.util.PropertyPermission sun.nio.ch.bugLevel write
  • javax.net.ssl.SSLPermission setHostnameVerifier
    See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
    for descriptions of what these permissions allow and the associated risks.
    Continue with installation? [y/N]y
    ->> Installed x-pack

(Sandeep Rawat) #2

I got the answer in one of the thread.We have to install with --batch flag.
Let me try that :slight_smile:


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.