Jelajahi Sumber

AMBARI-9955: Ambari-Server and Ambari-Agent fail to start on Windows (jluniya)

Jayush Luniya 10 tahun lalu
induk
melakukan
ef262ecf2a

+ 1 - 1
ambari-common/src/main/python/resource_management/core/shell.py

@@ -23,7 +23,6 @@ Ambari Agent
 __all__ = ["non_blocking_call", "checked_call", "call", "quote_bash_args", "as_user", "as_sudo"]
 __all__ = ["non_blocking_call", "checked_call", "call", "quote_bash_args", "as_user", "as_sudo"]
 
 
 import os
 import os
-import pty
 import select
 import select
 import sys
 import sys
 import logging
 import logging
@@ -137,6 +136,7 @@ def _call(command, logoutput=None, throw_on_failure=True,
   for placeholder, replacement in PLACEHOLDERS_TO_STR.iteritems():
   for placeholder, replacement in PLACEHOLDERS_TO_STR.iteritems():
     command = command.replace(placeholder, replacement.format(env_str=env_str))
     command = command.replace(placeholder, replacement.format(env_str=env_str))
 
 
+  import pty
   master_fd, slave_fd = pty.openpty()
   master_fd, slave_fd = pty.openpty()
 
 
   # --noprofile is used to preserve PATH set for ambari-agent
   # --noprofile is used to preserve PATH set for ambari-agent

+ 0 - 4
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py

@@ -183,10 +183,6 @@ class NameNode(Script):
     threshold = name_node_parameters['threshold']
     threshold = name_node_parameters['threshold']
     _print("Starting balancer with threshold = %s\n" % threshold)
     _print("Starting balancer with threshold = %s\n" % threshold)
 
 
-    if params.security_enabled:
-      Execute(format("{kinit_path_local} -kt {hdfs_user_keytab} {hdfs_principal_name}"),
-              user = params.hdfs_user)
-
     def calculateCompletePercent(first, current):
     def calculateCompletePercent(first, current):
       return 1.0 - current.bytesLeftToMove/first.bytesLeftToMove
       return 1.0 - current.bytesLeftToMove/first.bytesLeftToMove