I am trying to write data from HANA Vora to HANA.
I used the code as in HANA academy , https://github.com/saphanaacademy/Vora/blob/master/Vora_Writing2HANA.txt
However I get error , when I execute the below line :
hana_datardd.write.format("com.sap.spark.hana").mode(SaveMode.Overwrite).options(HANA_LOAD_OPTIONS).save()
The error says “error: not found: value SaveMode “
Below is the screen shot of the error.
Hana Vora writing to HANA error
Please can me guide me on writing data from HANA Vora to HANA.
Thanks in advance.
You need to import SaveMode