elasticsearch - 在没有试用许可证的情况下运行 Elastic
问题描述
背景: 我正在尝试使用 Elastic 堆栈(Elastic、Logstash 和 Kibana),但我没有钱支付。我不介意使用封闭源代码的部分,只要它们是免费的。在这方面,我试图了解 Elastic Licensing 的工作原理。
我们打开 X-Pack似乎暗示在 Elastic 6.3 之后包含 X-Pack 代码(尽管使用不同的许可证)。我也知道 X-Pack 的某些部分是免费的,但其他部分不是。这有点令人困惑。
目标: 我想用所有免费的东西来运行 Elastic stack,而不是付费的东西。
到目前为止我所做的: 我在 Linux 上,但我选择不使用分发包存储库,即我想使用 Elastic Co. 提供的下载。对于 Elastic 和 Kibana,我已经下载并解压缩了 tar.gz来自https://www.elastic.co/downloads/elasticsearch和https://www.elastic.co/downloads/kibana的6.5.4 GA 版本在大多数情况下,我没有设置任何选项,所以我假设我的设置使用默认值。Elastic 和 Kibana 都启动了,没有任何问题。我现在在命令行上运行这些。
从日志中,我注意到安装已获得 14 天或类似的试用版许可证。由于我不想使用许可证,所以我使用了删除许可证 API ,即我运行
curl -X DELETE "localhost:9200/_xpack/license"
这在某种意义上是有效的,即我得到了{"acknowledged": true}响应。我认为这会摆脱 xpack 不是免费的东西,但不幸的是,它没有。我仍然在初创公司中看到了一些 x-pack 的东西。
然后我尝试执行Uninstalling X-Pack中提到的操作。我知道这是旧的,但我不知道如何在较新的版本中做到这一点。无论如何,如果我运行命令:
bin/elasticsearch-plugin remove x-pack
我得到错误:
错误:未找到插件 [x-pacl];运行“elasticsearch-plugin list”以获取已安装插件的列表
并且 elasticsearch-plugin list
不返回任何东西。如果我跑
bin/kibana-plugin remove x-pack
我得到:
由于错误无法删除插件:“您使用的是 kibana 的标准发行版。请安装 OSS-only 发行版以删除 X-Pack 功能。”</p>
现在我的 Kibana 没有运行,抱怨说:
Elasticsearch 集群没有响应许可证信息。
即它确实启动了,但是当你转到网页时它告诉我它无法连接到弹性集群
问题:
- 什么是 OSS-only 发行版,我在哪里下载?
- 无论如何不使用弹性的试用版许可证并使用所有免费的部分(如成本/价格)并且不会在 x 天后过期?我想使用所有免费的 X-Pack 东西,而不是使用付费的 X-Pack 东西。
解决方案
Since version 6.5 there is not a standalone x-Pack plugin anymore, all the x-pack features are integrated in the Elastic Stack.
If you want to run the Elastic Stack using only the free features, which means that you will use the free basic license, you need to set your license in the elasticsearch.yml
file using the line below (more info):
xpack.license.self_generated.type: basic
This will disable the trial and enable only the free features.
If you want to run the stack using only the features licensed under Apache 2.0 license (the open source version), you need to download the oss packages for elasticsearch, kibana and logstash.
You can download it here: elasticsearch-oss,kibana-oss and logstash-oss
You can see the differences between the OSS version and the Free Basic license in the subscriptions page.
推荐阅读
- puppeteer - 避免木偶检测
- ruby-on-rails - 由于缓存目录将所有权更改为 root,Rails 6 应用程序失败
- mysql - 过滤掉OR的MySql注入
- python - 在 python 上发送带有 pushover 的格式化列表
- php - #only server-side# 如何获取保存到此服务器上 png-file 的 php 代码的 echo-html-div-result?
- unit-testing - 您可以为单元测试编写单元测试吗?
- r - 如何搜索数据集并将其与另一个数据集合并?
- c - 如何使 C 中的 qsort 函数更通用
- python - Python SQLite3 问题搜索表
- r - 如何在 R 中的 data.table 列中对最长的公共子字符串进行矢量化