Spark structured streaming Elasticsearch integration issue

ES-hadoop jar version I used is old one elasticsearch-hadoop-2.3.2.jar. we need 6 or above.

Now I use elasticsearch-hadoop-6* or above jars for it to work as a streaming sink.

I have downloaded it from https://artifacts.elastic.co/downloads/elasticsearch-hadoop/elasticsearch-hadoop-7.1.1.zip