实际上,我有ElasticSearch5.1.1,并且尝试用以下命令下载kopf插件,我得到了一个类似于..Can的错误,你帮助我解决了这个问题?
C:\Users\896323\Downloads\elasticsearch-5.1.1\elasticsearch-5.1.1\bin>plugin安装lmeneze/ elasticsearch -kopf/2.1.1一个管理已安装的elasticsearch插件的工具
命令
非选项参数:命令
选项描述
错误:未知插件lmeneze/elasticsearch-kopf/2.1.1
发布于 2017-02-15 14:19:12
据我所知,在Elasticsearch版本5中没有可能将站点插件添加到Elasticsearch中,所有站点插件都必须作为kibana插件来实现。插件改变弹性v5
另一方面,kopf创建者正在为elasticsearch > v5开发隔离插件
你可以在这里查一下:
发布于 2016-12-27 13:21:22
您尝试使用的插件与您的elasticsearch版本5.x不兼容。
此外,插件uri“lmeneze/elasticsearch-kopf/2.1.1”没有兼容的依赖性,这将导致您已经提到的错误“未知插件lmeneze/elasticsearch-kopf/2.1.1”。额外的插件uri依赖是不知道的,而不是由生产者所做的。
我试着使用一个本地的kopf,elasticsearch的插件空间,但是没有配置就不能正常工作。
另一个插件头也不能用于es版本5.1,这使得它更糟。
如果有人知道一些好的选择,除了一个自己定制的修改这些插件,我会很高兴。
解决方案1 :
使用一个独立的头插件,如下所述:https://github.com/mobz/elasticsearch-head#running-with-built-in-server
重要的是为您的es-5.x启用cors。
解决方案2 :从这里使用独立的kopf插件:https://github.com/lmenezes/elasticsearch-kopf/blob/master/README.md
第一步
git clone git://github.com/lmenezes/elasticsearch-kopf.git
第二步
修正elasticsearch.yml
#enable cors for standalone plugins
http.cors.enabled: true
http.cors.allow-origin: "*"步骤3在_site/kopf_external_settings.json中为elasticsearch端口添加一个属性。示例
{
"elasticsearch_root_path": "",
"elasticsearch_port": 9200,
"with_credentials": false,
"theme": "dark",
"refresh_rate": 5000
}修改_site/dist/kopf.js的javascript
1-为以行5562开头的端口值添加一个常量
var ES_PORT = 'elasticsearch_port';2-为以行5615开头的属性添加一个getter
this.getElasticsearchPort = function () {
return this.getSettings()[ES_PORT];
};3-将$location.port();替换为ExternalSettingsService.getElasticsearchPort();在线1269
4-避免从在线1215示例开始的版本兼容性警报的紧张量可能是不同的版本,尽管只抛出一次警报。
$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;
}
}
}
);https://stackoverflow.com/questions/41340749
复制相似问题