Migrating from Elasticsearch 2 to 6

I'm in the process of migrating an application from 2.4.6 server to a 6.3.2 server. I have a Java process that currently indexes data on the 2.4.6 server using the Shield plugin for authentication. As part of the migration, I would like the same process to also index the data on the 6.3.2 server.

Problem: Can you create one Java process that can talk to both 2.4.6 and 6.3.2 servers?

  1. Possible Solution #1: Use the latest Jar
    Is it possible to connect to the 2.4.6 server using the 6.3.2 client? It doesn't seem to work as trying to use shield settings/plugins results in errors establishing the connection.

  2. Possible Solution #2: Use both jars
    Anyone have experience or tips setting up Java to use both JARs? The problem is that Java does not (easily) allow accessing org.elasticsearch.elasticsearch jars of completely different versions at the same time.

Thanks in advance!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.