Configuring HDFS federation
Perform this task to configure HDFS federation for HDFS 2.x.
About this task
To enable this feature, you must first configure and format HSFS federation, and then configure IBM® Spectrum Symphony. Here are the configuration requirements for IBM Spectrum Symphony:
- The hosts in the NameNode resource group and Secondary NameNode resource group must be consistent with the HDFS configuration.
- In the service profiles of NameNode and Secondary NameNode, the value of MinInstances and MaxInstances must be the same, and equal to the number of namespaces.
Procedure
Example
...
<ego:EnvironmentVariable name="DATANODE_SERVICE">DataNode</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="SECONDARYNODE_SERVICE">SecondaryNode</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="NAMESPACE_BASE_NAME">namespace</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="FEDERATION_VIP_ENABLE">true</ego:EnvironmentVariable>
...
Secondary
Name Node service
profile:
...
<ego:EnvironmentVariable name="DATANODE_SERVICE">DataNode</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="SECONDARYNODE_SERVICE">SecondaryNode</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="NAMESPACE_BASE_NAME">namespace</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="FEDERATION_VIP_ENABLE">true</ego:EnvironmentVariable>
Data
Node service
profile:
...
<ego:EnvironmentVariable name="NAMENODE_SERVICE">NameNode</ego:EnvironmentVariable>
<ego:EnvironmentVariable name="FEDERATION_VIP_ENABLE">true</ego:EnvironmentVariable>
...