Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
trunk
-
None
Description
When specifying multiple nameservices in dfs.nameservices, the correct nameservice and HA configuration is not detected resulting in a slow namenode startup and a message of:
'Must wait to leave safemode since High Availability is not enabled.'
This message is seen in:
https://github.com/apache/ambari/blob/6626796191833c77130302653d3afad5f4bf8aec/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py#L186
dfs_ha_nameservices = default("/configurations/hdfs-site/dfs.nameservices", None)
This line should take into account dfs.internal.nameservices and perhaps choosing the first entry in dfs.nameservices if this field is comma separated and if dfs.internal.nameservices is not set.
The change should also be mirrored here:
https://github.com/apache/ambari/blob/291b7cbf5852db3fa37f4f180158d0958241e05b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_windows.py#L45
Attachments
Issue Links
- Is contained by
-
AMBARI-15507 Support for Multiple Nameservices
- Resolved