Not able to store data in opensearch from Spark client

I am facing an issue while sending data to Opensearch from spark
Getting below error
22/09/21 15:55:10 TRACE CommonsHttpTransport: Rx @[] [400-Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse"}],"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"illegal_argument_exception","reason":"Malformed content, found extra data after parsing: START_OBJECT"}},"status":400}]

Opensearch version: 2.3.0
Spark version: 3.2.2
Scala version: 2.12
Dependency used: elasticsearch-spark-30_2.12-7.12.0.jar

Can anyone help on this, thanks in advance :slight_smile: