You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2018/03/26 11:18:33 UTC

[ambari] branch trunk updated: [AMBARI-23308] Ticket cache file is delete before balancer access it during rebalance HDFS operation (dsen)

This is an automated email from the ASF dual-hosted git repository.

dsen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4d86ea1  [AMBARI-23308] Ticket cache file is delete before balancer access it during rebalance HDFS operation (dsen)
4d86ea1 is described below

commit 4d86ea1a3c1895b808417e0e24ca61be871c26cd
Author: Dmytro Sen <ds...@apache.org>
AuthorDate: Wed Mar 21 13:17:17 2018 +0200

    [AMBARI-23308] Ticket cache file is delete before balancer access it during rebalance HDFS operation (dsen)
---
 .../common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py      | 6 ------
 ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py    | 4 ----
 2 files changed, 10 deletions(-)

diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
index da8488c..9172213 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
@@ -314,12 +314,6 @@ class NameNodeDefault(NameNode):
              "operation earlier. The process may take a long time to finish (hours, even days). If the problem persists "
              "please consult with the HDFS administrators if they have triggred or killed the operation.")
 
-    if params.security_enabled:
-      # Delete the kerberos credentials cache (ccache) file
-      File(ccache_file_path,
-           action = "delete",
-      )
-      
   def get_log_folder(self):
     import params
     return params.hdfs_log_dir
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
index 4e54a8d..2982f8a 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
@@ -1269,10 +1269,6 @@ class TestNamenode(RMFTestCase):
                               wait_for_finish=False
                               )
 
-    self.assertResourceCalled('File', ccache_path,
-                              action = ['delete'],
-                              )
-
     self.assertNoMoreResources()
 
   @patch("os.path.isfile")

-- 
To stop receiving notification emails like this one, please contact
dsen@apache.org.