AMBARI-18017. Falcon Service check failed after deleting and adding back falcon after ambari only upgrade 2.2.1.1 -> 2.4.0.0 (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/959cde69 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/959cde69 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/959cde69 Branch: refs/heads/branch-2.4 Commit: 959cde698fad46648a0734839d05524999060b4b Parents: e673a6f Author: Andrew Onishuk <[email protected]> Authored: Thu Aug 4 13:15:37 2016 +0300 Committer: Andrew Onishuk <[email protected]> Committed: Thu Aug 4 13:15:37 2016 +0300 ---------------------------------------------------------------------- .../FALCON/0.5.0.2.1/package/scripts/params_linux.py | 2 +- .../main/resources/stacks/HDP/2.3/services/stack_advisor.py | 4 ++-- .../main/resources/stacks/HDP/2.5/services/stack_advisor.py | 6 ------ 3 files changed, 3 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/959cde69/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/params_linux.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/params_linux.py index 349ebf1..c302eeb 100644 --- a/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/params_linux.py @@ -163,7 +163,7 @@ if has_atlas_in_cluster(): atlas_home_dir = os.environ['METADATA_HOME_DIR'] if 'METADATA_HOME_DIR' in os.environ else format('{stack_root}/current/atlas-server') atlas_hook_cp = atlas_conf_dir + os.pathsep + os.path.join(atlas_home_dir, "hook", "falcon", "*") + os.pathsep elif check_stack_feature(StackFeature.ATLAS_UPGRADE_SUPPORT, stack_version_formatted): - atlas_hook_cp = format('{stack_root}/current/atlas-client/falcon/hook/*') + atlas_hook_cp = format('{stack_root}/current/atlas-client/hook/falcon/*') #endregion hdfs_site = config['configurations']['hdfs-site'] http://git-wip-us.apache.org/repos/asf/ambari/blob/959cde69/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py index 94c3117..eb691eb 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py @@ -744,8 +744,8 @@ class HDP23StackAdvisor(HDP22StackAdvisor): def recommendFalconConfigurations(self, configurations, clusterData, services, hosts): # In 2.5, the classname changed. The 2.5 stack advisor method will # call this with attribute set. 2.3 will use the old method name - if hasattr(self, "__atlasFalconHookClassName"): - atlas_application_class = self.__atlasFalconHookClassName + if hasattr(self, "atlasFalconHookClassName"): + atlas_application_class = self.atlasFalconHookClassName else: atlas_application_class = "org.apache.falcon.atlas.service.AtlasService" putFalconStartupProperty = self.putProperty(configurations, "falcon-startup.properties", services) http://git-wip-us.apache.org/repos/asf/ambari/blob/959cde69/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py index 05c73be..d94cb09 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py @@ -83,12 +83,6 @@ class HDP25StackAdvisor(HDP24StackAdvisor): def recommendFalconConfigurations(self, configurations, clusterData, services, hosts): # Set the classname for the Falcon hook to 2.5 classname = all other 2.3 # stack advisor changes are needed. - self.__atlasFalconHookClassName = "org.apache.atlas.falcon.service.AtlasService" - super(HDP25StackAdvisor,self).recommendFalconConfigurations(configurations, clusterData, services, hosts) - - def recommendFalconConfigurations(self, configurations, clusterData, services, hosts): - # Set the classname for the Falcon hook to 2.5 classname = all other 2.3 - # stack advisor changes are needed. self.atlasFalconHookClassName = "org.apache.atlas.falcon.service.AtlasService" super(HDP25StackAdvisor,self).recommendFalconConfigurations(configurations, clusterData, services, hosts)
