You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2014/11/08 09:05:56 UTC

ambari git commit: Revert "AMBARI-8197. Configs: hive.server2.authentication=NOSASL, part 2.(vbrodetskyi)"

Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 92e06767c -> bf671fef2


Revert "AMBARI-8197. Configs: hive.server2.authentication=NOSASL, part 2.(vbrodetskyi)"

This reverts commit 92e06767ce0e503172c5eca26324a9bc1d575db7.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bf671fef
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bf671fef
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bf671fef

Branch: refs/heads/branch-1.7.0
Commit: bf671fef2e6b0009e1593b557a2e683dc838709f
Parents: 92e0676
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Sat Nov 8 00:05:22 2014 -0800
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Sat Nov 8 00:05:22 2014 -0800

----------------------------------------------------------------------
 .../services/HIVE/package/scripts/service_check.py  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bf671fef/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/service_check.py
index c03dfc0..bd7537b 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/service_check.py
@@ -34,5 +34,21 @@ class HiveServiceCheck(Script):
     port=int(format("{hive_server_port}"))
     print "Test connectivity to hive server"
 
+    if params.security_enabled:
+      kinitcmd=format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser}; ")
+    else:
+      kinitcmd=None
+
+    try:
+      check_thrift_port_sasl(address, port, params.hive_server2_authentication,
+                             params.hive_server_principal, kinitcmd)
+      print "Successfully connected to %s on port %s" % (address, port)
+    except:
+      print "Connection to %s on port %s failed" % (address, port)
+      exit(1)
+
+    hcat_service_check()
+    webhcat_service_check()
+
 if __name__ == "__main__":
   HiveServiceCheck().execute()