Set parent query options in child queries.

Change-Id: Ieadf70cd919e1ae19cda88fd808e5d82ea234be1
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1994
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: jenkins
IMPALA-827: Add an option for directories created by INSERT to inherit
their parent's permissions

This patch adds --insert_inherit_permissions. If true, all
new partition directories created by INSERT will inherit their
permissions from their parent. When false, the directories are created
with the default permissions.

Change-Id: Ib2b4c251e51ea5048387169678e8dde34ecfe5f6
(cherry picked from commit e50e0b78c9db38beb3c33c15b86e030cb9fe97c0)
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1981
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: jenkins
Mark TestUdfs.test_mem_limits to run serially

This was causing other tests to fail with process mem limit exceeded.

Change-Id: I1407b0896052aece691c681827994961b09d8103
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2001
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: jenkins
Log runtime state errors to the impalad log as well

These errors should be displayed in the shell, but this doesn't always
work and doesn't help non-shell clients.

Change-Id: Ib77d08cfa208a5e18bc77fa9567678a9cffe5d0d
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2002
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins