Created 08-30-2018 01:46 AM
Problem resolved: the issue was with the overall memory consumption on the HiveServer2.
The hive job submitted do not run in the HS2 JVM, but as an extra java process and the OS was killing it because it could not allocate such amount of memory.