I am running hive merge command using Spark HiveContext in 1.6.3 spark version, but it is failing with below error.
2017-09-11 18:30:33 Driver [INFO ] ParseDrive
Spark doesn't support UPDATES or DELETES so exception is an expected behavior.
UPDATES
DELETES
To use MERGE operation you will need to execute it through the HIVE JDBC since MERGE is not supported by Spark SQL as of this day.
MERGE