Elasticsearch load through beeline

we see this peculiar issue when loading data through es-hadoop connector

es version we use 7.11.2

jars added, we see the same behavior when the jar path is either local or hdfs
elasticsearch-hadoop-7.11.2.jar;
commons-httpclient-3.0.1.jar;

The below sequence of operation does not work

  1. Connect to beeline
  2. Add elastic search jar and http client jar
  3. Run insert statement ----> fails with unable to authenticate user [******] for REST request [/]

The below sequence of operation works every time

  1. Connect to beeline
  2. Run insert statement ---->fails with Error in loading storage handler.org.elasticsearch.hadoop.hive.EsStorageHandler
  3. Add elastic search jar and http client jar
  4. Rerun insert statement ---> success

The first sequence of operations works fine in hive cli.

Has anyone faced this, any suggestion experts?

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