Repository: incubator-hawq Updated Branches: refs/heads/master e150dc4e3 -> 3b54677d9
HAWQ-872 Fix HAWQ check fails when kerberos is enabled When kerberos is enabled, we run 'hawq check' without '--kerberos' option, it will give 'global name 'hadoop' is not defined' error. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/3b54677d Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/3b54677d Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/3b54677d Branch: refs/heads/master Commit: 3b54677d9d06d49e40e161daedfe7efa2229fc07 Parents: e150dc4 Author: rlei <r...@pivotal.io> Authored: Wed Jul 6 16:25:30 2016 +0800 Committer: rlei <r...@pivotal.io> Committed: Fri Jul 8 10:45:33 2016 +0800 ---------------------------------------------------------------------- tools/bin/gpcheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/3b54677d/tools/bin/gpcheck ---------------------------------------------------------------------- diff --git a/tools/bin/gpcheck b/tools/bin/gpcheck index 9b7be6a..e9da85a 100755 --- a/tools/bin/gpcheck +++ b/tools/bin/gpcheck @@ -785,11 +785,11 @@ def testHAWQconfig(host): if not options.kerberos: if 'hadoop.security.authentication' in actual_config: if actual_config['hadoop.security.authentication'] != 'simple': - checkFailed(host.hostname, "HAWQ configuration: expected '%s' for '%s', actual value is '%s'" % ('simple', 'hadoop.security.authentication', actual_config[hadoop.security.authentication])) + checkFailed(host.hostname, "HAWQ configuration: expected '%s' for '%s', actual value is '%s'" % ('simple', 'hadoop.security.authentication', actual_config['hadoop.security.authentication'])) if 'hadoop.security.authentication' in hdfs_actual_config: if hdfs_actual_config['hadoop.security.authentication'] != 'simple': - checkFailed(host.hostname, "HAWQ configuration: expected '%s' for '%s', actual value is '%s'" % ('simple', 'hadoop.security.authentication', hdfs_actual_config[hadoop.security.authentication])) + checkFailed(host.hostname, "HAWQ configuration: expected '%s' for '%s', actual value is '%s'" % ('simple', 'hadoop.security.authentication', hdfs_actual_config['hadoop.security.authentication'])) if options.yarn or options.yarn_ha: hawq_yarn_property_exist_list = ['hawq_rm_yarn_address', 'hawq_rm_yarn_scheduler_address', 'hawq_rm_yarn_app_name']