Hi, we are using the Java Transport Client against an Elasticsearch 6.8.
But we are going to install a new cluster with an Elasticsearch 7.4 and are going to connect the application to it.
We know that the Java High Level REST Client is recommended instead, we will migrate the code, but in a 2nd phase.
As the X-Pack changed I have some important doubts about licenses.
I have checked the Elastic subscriptions but it is in some cases too general regarding security.
My questions are the following:
Is the Java Transport Client supported in Open Source version?
Is the Java Transport Client supported in Basic license version?
If it is supported in Open Source version, then what are the elasticsearch.yml configuration properties I should configure to enable it?
Is there any other more detailed documentation about the options supported by each License/Subscription type and also Open Source?
When you use the basic and trial licenses, the Elasticsearch security features are disabled by default.
Regarding setting the property xpack.security.enabled to true in the elasticsearch.yml. This make me doubt if it is supported in Open Source and Basic versions to set the value to true:
If you have a basic or trial license, the default value for this setting is false. If you have a gold or higher license, the default value is true. Therefore, it is a good idea to explicitly add this setting to avoid confusion about whether security features are enabled.
By default, the Elasticsearch security features are disabled when you have a basic or trial license.
If you have gold or higher licenses, the default value is true
Maybe all of those sentences are just meaning "remember to set the true value if you are not using a paid license" but for me it is confusing not seeing anywhere in the documentation if Transport is supported or not in Open Source and Basic license.
Actually the option Open Source does not appear in none of those sentences.
So:
My doubts make sense or the sentences just mean what I say at the end?
In 2nd case, what about Open Source? Will it support the Java Transport Client?
It seems you are mixing two concepts, use of transport client and whether the Elasticsearch cluster can be secured or not.
The transport client works against secured and unsecured Elasticsearch clusters. It therefore works against open-source clusters where security features are not included and clusters that use the default distribution where security features are now included and available with the free Basic license.
We need to keep the Java Transport Client in a 1st phase, then we will migrate the new REST one.
That is not the point of this question. We know about its deprecation in v8, but we cannot do it now.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.