Which Spark JAR use for Opensearch?

Hello,

I use this version of spark connector :
spark2/3.1.4.0-315/lib/elasticsearch-spark-20_2.11-7.9.1.jar

On Dashboard, it’s ok for scroll.
If i try with cli Spark (same user), i have error about permission…

I don’t know what s the problem ?

Thanks for help

it seems work if i put

indices:data/read/scroll
indices:data/read/scroll/clear

at cluster level permission in my role app1_writer
(My role contains, crud on index pattern in indices level permission)