Issue in writing from SAP HANA Vora to SAP HANA

115 Views Asked by At

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.

1

There are 1 best solutions below

0
On

You need to import SaveMode

import org.apache.spark.sql.SaveMode