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; } } } );