Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, initializer_module):

def get_configuration(self, cluster_id, service_name, component_name, configurations_timestamp=None):
if cluster_id:
if configurations_timestamp and configurations_timestamp != self.configurations_cache.timestamp:
if configurations_timestamp and self.configurations_cache.timestamp < configurations_timestamp:
raise Exception("Command requires configs with timestamp={0} but configs on agent have timestamp={1}".format(configurations_timestamp, self.configurations_cache.timestamp))

metadata_cache = self.metadata_cache[cluster_id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_property_for_active_namenode(hdfs_site, property_name, security_enabled,
name_services = get_nameservices(hdfs_site)
if len(name_services) > 1:
raise Fail('Multiple name services not supported by this function')
name_service = name_services(hdfs_site)[0]
name_service = name_services[0]
active_namenodes = get_namenode_states(hdfs_site, security_enabled, run_user)[0]

if not len(active_namenodes):
Expand Down