I am trying to add or set hive runtime parameters while submitting a job. But it is not working it at all. It is working fine when we try to run and insert into hive console. But it not working in spark-shell.
It is running blank. Nothing is getting inserted into table
val sqlAgg =
s"""
|set tez.task.resource.memory.mb=5000;
|SET hive.tez.container.size=6656;
|SET hive.tez.java.opts=-Xmx5120m;
|set hive.optimize.ppd=true;
|set hive.execution.engine=tez;
|INSERT INTO table Partition(JobID=$jobId)
|SELECT
|UUID() AS Key,
|a,
|b,
|SUM(dc_1) AS dc,
|FROM tablenametask where jobid=$jobId
|GROUP BY
|a,
|b,
|c
""".stripMargin
hive.executeUpdate(sqlAgg)