Elasticsearch failed to install multiple plugins in one command - elasticsearch

As stated in documentation, plugins can be installed through the following command:
$ sudo bin/elasticsearch-plugin install analysis-icu
However, when installing with more than one plugins, the system prompted the followings
$ sudo bin/elasticsearch-plugin install analysis-icu repository-s3
ERROR: Found multiple arguments for option [arguments], but you asked for only one
https://github.com/elastic/elasticsearch/blob/master/docs/plugins/plugin-script.asciidoc

As of the latest version ES 7.5.2, you can only install one plugin at a time.
The ability to install multiple plugins at once has been added very recently and will only be available from ES 7.6 onwards, which has not yet been released. 7.6 should be coming out anytime now since there are only 2 issues and 4 PRs left open. Stay tuned...

Related

Automate installation of package maintainer's version during Elasticsearch upgrade

I am running a shell script that installs elasticsearch. I was previously running 7.x on the ec2 instance and I'm upgrading to version 8.
When I run the script, I get the message that a configuration file has changed with the below instructions.
Since I can't select anything, it defaults to keeping my current version and that's not what I want.
I want to install the package maintainer's version.How can I run my script to automate the process?
Instruction that pops up during installation
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
**deployment script that handles elasticsearch installation **
Yes | Sudo DEBIAN_FRONTEND=noninteractive apt-get install elasticsearch
Yes|Sudo apt-get
I tried adding a yes to my sudo apt-get hoping to automate every interaction. I also turned off Debian interaction.
Yes | Sudo DEBIAN_FRONTEND=noninteractive apt-get install elasticsearch

How to download PPA through proxy on Debian WSL?

I am trying to download/install php7.2 on Debian which is installed on my WSL (Windows Subsystem for Linux), through my company's proxy.
I have been able to download apt packages by using this solution : https://askubuntu.com/questions/89437/how-to-install-packages-with-apt-get-on-a-system-connected-via-proxy
The problem now is that I need ppa from sudo add-apt-repository ppa:ondrej/php cause php > 7.0 is not available anymore with sudo apt-get install and I tried many solutions but no one worked for me. Every solution tested by the asker of https://unix.stackexchange.com/questions/361213/unable-to-add-gpg-key-with-apt-key-behind-a-proxy were tried and the answers too.
So, there is my last obstacle :
$ sudo -E add-apt-repository ppa:ondrej/php
Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included. Only
Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases
(https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu
release, they won't be provided.
Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa
You can get more information about the packages at https://deb.sury.org
BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting
CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
or ppa:ondrej/nginx
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating
regularly: https://donate.sury.org/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmpw9sj_dvp/pubring.gpg' created
gpg: keyserver receive failed: No name

Is there a ingest-attachment plugin for Elasticsearch-6.4.2?

Recently i'm using Elasticsearch-6.4.2 and i want to add the Ingest-Attachment plugin into the my Elasticsearch,so that I've went to the official website and download the plugin,however,i only found the plugin for Elasticsearch-6.4.3 and cannot support my version.
You can simply run the following command and the right version will be installed:
bin/elasticsearch-plugin install ingest-attachment
Otherwise, you can also download it from here: https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-6.4.2.zip
And then simply install it like this with the offline file:
bin/elasticsearch-plugin install file:///path/to/ingest-attachment-6.4.2.zip

Issue trying to install ElasticSearch plugins in Mac OS El Capitan

I've been trying to install marvel plugin in elastic search.
I've already installed ElasticSearch as following:
brew update
brew install elasticsearch
This installed the 2.3.1 version.
Accordingly to the instructions, to install a plugin I had to go to the ES folder/bin and use the plugin script.
But in that folder there was no plugin script that helped me install the plugins. All there was in the bin folder was the elasticsearch script.
Thanks in advance for any help you can provide me.
For Mac OS, the plugin executable should be available in /usr/local/opt/elasticsearch/bin/plugin
Follow next command and see where plugin system is installed brew list elasticsearch|grep -m1 plugin

Ambari install script location(s)

I'm setting up a HDP 2.1 cluster with Apache Ambari. All servers run SLES 11 SP3. The setup fails if I select to install Ganglia because of some dependencies:
Installing package apache2?mod_php* ('/usr/bin/zypper --quiet install --auto-agree-with-licenses --no-confirm apache2?mod_php*')
Problem: apache2-mod_php53-5.3.17-0.27.1.x86_64 conflicts with apache2-mod_php5 provided by apache2-mod_php5-5.2.14-0.7.30.50.1.x86_64
Solution 1: Following actions will be done:
do not install apache2-mod_php5-5.2.14-0.7.30.50.1.x86_64
deinstallation of php5-5.2.14-0.7.30.50.1.x86_64
deinstallation of php5-xmlwriter-5.2.14-0.7.30.50.1.x86_64
[... more PHP 5.2.x packages ...]
Solution 2: do not install apache2-mod_php53-5.3.17-0.27.1.x86_64
Apparently the Regex picks the 5.3 version, a 5.2 version would be available though.
So my question is: Where is the install script stored, that Ambari is running here? I would like to replace the regex with the correct version of the package.
Information about what packages are to be installed is stored in
/var/lib/ambari-server/resources/stacks/HDP/2.0.6/services/GANGLIA/metainfo.xml
Change the value and restart the Ambari Server for the changes to take effect.

Resources