Installing the kopf plugin to search for elastics 5.1.1?

Actually, I have elasticsearch 5.1.1 and tried to download the kopf plugin with the following commands, and I got such an error .. Can I help in solving this problem?

C: \ Users \ 896323 \ Downloads \ elasticsearch-5.1.1 \ elasticsearch-5.1.1 \ bin> install lmenezes / elasticsearch-kopf / 2.1.1 plugin Tool for managing installed elasticsearch plugins

Teams

  • list - Lists of installed elasticsearch plugins
  • install - install the plugin
  • remove - removes the plugin from elasticsearch

Nonparametric Arguments: Command

Parameter Description ------ -----------

  • -h, --help show help
  • -s, --silent show minimal output
  • -v, --verbose show verbose output

ERROR: Unknown plugin lmenezes / elasticsearch-kopf / 2.1.1

+6
source share
2 answers

As far as I know in version Elasticsearch version 5 there is no way to add site plugins to Elasticsearch, all site plugins should be implemented as kibana plugins. Plugin changes elastic v5

In the other hand, the creator of kopf is working on an isolated plugin for elasticsearch> v5

You can check it out here:

https://github.com/lmenezes/cerebro

+2
source

The plugin you are trying to use is incompatible with your version of elicsearch 5.x.

In addition, there is no compatible uri plugin match "lmenezes / elasticsearch-kopf / 2.1.1", which leads to your already mentioned error "Unknown plugin lmenezes / elasticsearch-kopf / 2.1.1". Additional url parameters for plugins are unknown and are not performed by manufacturers.

I tried to use the local kopf outsite plugin for the elasticsearch plugin space, but this does not work correctly without configurations.

An alternative plug-in head is not available for version 5.1, which is even worse.

If someone knows some good alternatives besides their own modification of these plugins, I would be glad.

Solution 1:

Use the standalone main plugin that is described here: https://github.com/mobz/elasticsearch-head#running-with-built-in-server

The important part is to enable cors for your es-5.x

Solution 2: Use the standalone kopf plugin from here: https://github.com/lmenezes/elasticsearch-kopf/blob/master/README.md

  • clone or upload sources
  • enable cors for es-5.x with elasticsearch.yml modification
  • change / configure kopf sources

Step 1

git clone git://github.com/lmenezes/elasticsearch-kopf.git

Step 2

Modify elasticsearch.yml

 #enable cors for standalone plugins http.cors.enabled: true http.cors.allow-origin: "*" 

Step 3 Add a property for the elasticsearch port in _site/kopf_external_settings.json . Sample

 { "elasticsearch_root_path": "", "elasticsearch_port": 9200, "with_credentials": false, "theme": "dark", "refresh_rate": 5000 } 

Change javascript _site / dist / kopf.js

1- Add a constant for the port value starting at line 5562

 var ES_PORT = 'elasticsearch_port'; 

2- Add a getter for a property starting at line 5615

 this.getElasticsearchPort = function () { return this.getSettings()[ES_PORT]; }; 

3 Replace $location.port(); on ExternalSettingsService.getElasticsearchPort(); on line 1269

4 avoid the number of nervous messages warning of version compatibility, starting from line 1215 sample may be a different version, although throw a warning once

  $scope.version = '2.1.2'; $scope.modal = new ModalControls(); var alertedOnce = false; $scope.$watch( function () { return ElasticService.cluster; }, function (newValue, oldValue) { var version = ElasticService.getVersion(); if (version && version.isValid()) { var major = version.getMajor(); if (major != parseInt($scope.version.charAt(0)) && !alertedOnce) { AlertService.warn( 'This version of kopf is not compatible with your ES version', 'Upgrading to newest supported version is recommeded' ); alertedOnce = true; } } } ); 
0
source

Source: https://habr.com/ru/post/1013539/


All Articles