AMBARI-22492. A bad WebHDFS request is issued when starting Hive Metastore addendum (amagyar)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/825b97c5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/825b97c5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/825b97c5 Branch: refs/heads/branch-feature-AMBARI-20859 Commit: 825b97c50ab124a962c731ba0c4113a1b912aaff Parents: fcc92aa Author: Attila Magyar <amag...@hortonworks.com> Authored: Thu Dec 7 11:34:43 2017 +0100 Committer: Attila Magyar <amag...@hortonworks.com> Committed: Thu Dec 7 11:34:43 2017 +0100 ---------------------------------------------------------------------- .../common-services/HIVE/0.12.0.2.0/package/scripts/hive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/825b97c5/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py index 2d5d703..0f4a88a 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py @@ -256,7 +256,7 @@ def setup_hiveserver2(): owner = params.hive_user, group=params.user_group, mode = 01777) - if params.hive_repl_rootdir is not None: + if params.hive_repl_rootdir: params.HdfsResource(params.hive_repl_rootdir, type = "directory", action = "create_on_execute", @@ -335,7 +335,7 @@ def setup_metastore(): owner = params.hive_user, group=params.user_group, mode = 01777) - if params.hive_repl_rootdir is not None: + if params.hive_repl_rootdir: params.HdfsResource(params.hive_repl_rootdir, type = "directory", action = "create_on_execute",