I have a Scala program wherein I create a hivecontext and run a hive query from it. The hive query is a multi-table insert query. I am facing issues where the query runs successfully but I cannot see the out being generated. Interesting thing is that if in the multi-table inert query I insert into one table the query is running successfully i.e I can see the out data. For example:
val hiveContext = = new org.apache.spark.sql.hive.HiveContext(sc)
Query that is not generating data:
hiveContext.sql("FROM source_table INSERT INTO destiantion_table_1 PARTITION (...)
INSERT INTO destination_table_2 PARTITION (...)
INSERT INTO destination_table_3 PARTITION (...)")
Query that is working fine:
hiveContext.sql("FROM source_table INSERT INTO destiantion_table_1 PARTITION (...)
I looked into the executor logs there was no error reported for the query that did not execute.
I am running Spark 1.5 on YARN
Let me know if any additional information is required on the above .