在没有试用许可证的情况下运行Elastic [英] Running Elastic without the Trial License

查看:345
本文介绍了在没有试用许可证的情况下运行Elastic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:
我正在尝试使用弹性堆栈(Elastic,Logstash& Kibana),但我没有钱可付。只要是免费的,我都不介意使用封闭源代码的零件。在这方面,我试图了解弹性许可的工作原理。

Background: I'm trying to use the Elastic stack (Elastic, Logstash & Kibana), but I have no money to pay. I don't mind using the parts that are closed source, as long as they are free. In this regard, I'm trying to understand how Elastic Licensing works.

我们打开了X-Pack 似乎表明,在Elastic 6.3之后,(尽管使用了不同的许可证)中包含了X-Pack代码。我也了解X-Pack的某些部分是免费的,而其他部分则免费。这有点令人困惑。

We Opened X-Pack seems to suggest that after Elastic 6.3 the X-Pack Code is included (though with a different license). I also understand that some parts of X-Pack are free, but other's are not. This is all a bit confusing.

目标:我想使用所有免费的东西,而没有付费的东西来运行Elastic stack。

Objective: I would like to run Elastic stack with all of the free stuff, and none of the paid stuff.

到目前为止我所做的事情:
我在Linux上,但是我选择不使用分发包存储库,即我想使用Elastic Co.提供的下载。对于Elastic和Kibana,我从 https://www.elastic.co/downloads/elasticsearch https://www.elastic.co/downloads/kibana 在大多数情况下,我没有设置任何选项,因此我假设我的设置使用了默认设置。 Elastic和Kibana都启动了,没有任何问题。我现在在命令行上运行它们。

What I have done so far: I'm on Linux but I have chosen not to use the distribution package repositories i.e. I would like to use the downloads provided by Elastic Co. For Elastic and Kibana, I have downloaded and extracted the tar.gz version 6.5.4 GA Release from https://www.elastic.co/downloads/elasticsearch and https://www.elastic.co/downloads/kibana For most part, I did not set any options, so I assume my setup used the defaults. Both Elastic and Kibana started up, without any issues. I'm running these on the commandline for now.

从日志中,我注意到该安装已获得14天的试用版许可证。由于我不想使用许可证,因此使用了删除许可证API ,即我运行了

From the logs, I noticed that the install had been granted a trial version license for 14 days or something like that. Since I did not want to use the license, I used the Delete license API i.e. I ran

curl -X DELETE "localhost:9200/_xpack/license"

这在某种意义上是可行的,即我得到了 { acknowledged:true} 回应。我以为可以摆脱不是免费的xpack内容,但不幸的是,事实并非如此。我仍然在启动中看到一些x-pack的东西。

This worked in a sense i.e. I got the {"acknowledged": true} response. I thought this would get rid of the xpack stuff that was not free, but unfortunately, it didn't. I still saw some of the x-pack stuff in the startup.

然后我尝试做卸载X-Pack 。我知道这是旧的,但是我不知道在新版本中该如何做。无论如何,如果我运行以下命令:

I then tried to do what is mentioned in Uninstalling X-Pack. I know this is old, but I did not know how to do it in the newer version. Anyway, if I run the commands:

bin/elasticsearch-plugin remove x-pack

我得到错误:


错误:插件找不到[x-pacl];运行'elasticsearch-plugin list'到
获取已安装插件的列表

ERROR: plugin [x-pacl] not found; run 'elasticsearch-plugin list' to get the list of installed plugins

然后 elasticsearch-插件列表不返回任何内容。
如果我运行

And elasticsearch-plugin list doesn't return anything. If I run

bin/kibana-plugin remove x-pack

我得到:


由于以下原因无法删除插件错误:您使用的是kibana的标准
分配。请安装仅OSS发行版,以
删除X-Pack功能。

Unable to remove plugin because of error: "You are using the standard distribution of kibana. Please install the OSS-only distribution to remove the X-Pack features."

现在我的Kibana无法运行,抱怨:

Now my Kibana does not run, complaining that:


Elasticsearch集群未响应许可证信息。

Elasticsearch cluster did not respond with license information..

ie它确实启动了,但是当您转到网页时,它告诉我它无法连接到弹性集群

i.e. it does start up, but when you go to the webpage it tells me that it Cannot connect to the Elastic cluster

问题:


  • 什么是仅OSS发行版,该在哪里下载?

  • 无论如何,有没有不使用Elastic的试用版许可证,而是使用
    的所有免费部件(如成本/价格)并且不会使用
    x天后过期?我想使用所有免费的X-Pack物品,而不要使用已付费的X-Pack物品。

推荐答案

自6.5版以来,不再有独立的x-Pack插件,所有x -pack功能集成在Elastic Stack中。

Since version 6.5 there is not a standalone x-Pack plugin anymore, all the x-pack features are integrated in the Elastic Stack.

如果您只想使用免费功能来运行Elastic Stack,这意味着您将使用免费的基本许可证,您需要使用以下行在 elasticsearch.yml 文件中设置许可证(更多信息):

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.

如果只想使用Apache 2.0许可(开放源代码版本)许可的功能来运行堆栈,则需要下载用于Elasticsearch,kibana和Logstash的oss软件包

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.

您可以在此处下载: elasticsearch-oss kibana-oss logstash-oss

You can download it here: elasticsearch-oss,kibana-oss and logstash-oss

您可以在订阅页面中查看OSS版本与Free Basic许可证之间的区别。

You can see the differences between the OSS version and the Free Basic license in the subscriptions page.

这篇关于在没有试用许可证的情况下运行Elastic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆