THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<topology> <gateway> ... <provider> <role>ha</role> <name>HAProvider</name> <param> <name>webhdfs.ha</name> <value>failover_strategy=BaseStrategy;retryCount=3;timeoutInterval=5000;enabled=true</value> </param> </provider> ... <gateway> ... <service> <role>WEBHDFS</role> <url>machine1.example.com:50070</url> <url>machine2.example.com:50070</url> </service> ... <service> <role>NAMENODE</role> <url>machine1.example.com:50070</url> <url>machine2.example.com:50070</url> </service> ... </topology> |
Parameters description:
- failover_strategy – indicates how to define active service and contains some configuration parameters. Default value is BaseStrategy. BaseStrategy for failover has following parameters:
- retryCount – indicates how many times knox will ping name-node before knox decides that namenode is down.
- timeoutInterval – interval for connection timeout.
- enabled – indicates whether HAProvider is active or not for service.
...