com.cloudera.api.model
Class ApiEnableNnHaArguments

java.lang.Object
  extended by com.cloudera.api.model.ApiEnableNnHaArguments

public class ApiEnableNnHaArguments
extends Object

Arguments used for Enable NameNode High Availability command.


Constructor Summary
ApiEnableNnHaArguments()
           
 
Method Summary
 String getActiveFcName()
          Name of the FailoverController role to be created on Active NameNode's host (Optional).
 String getActiveNnName()
          Name of the NameNode role that is going to be made Highly Available.
 Set<ApiJournalNodeArguments> getJns()
          Arguments for the JournalNodes to be created during the command.
 String getNameservice()
          Nameservice to be used while enabling Highly Available.
 String getQjName()
          Name of the journal located on each JournalNodes' filesystem.
 String getStandbyFcName()
          Name of the FailoverController role to be created on Standby NameNode's host (Optional).
 List<String> getStandbyNameDirList()
          List of directories for the new Standby NameNode.
 String getStandbyNnHostId()
          Id of the host on which new Standby NameNode will be created.
 String getStandbyNnName()
          Name of the new Standby NameNode role that will be created during the command (Optional).
 String getZkServiceName()
          Name of the ZooKeeper service to be used for Auto-Failover.
 boolean isClearExistingJnEditsDir()
          Boolean indicating if the existing edits directories for the JournalNodes for the specified nameservice should be cleared during the workflow.
 boolean isClearExistingStandbyNameDirs()
          Boolean indicating if the existing name directories for Standby NameNode should be cleared during the workflow.
 boolean isForceInitZNode()
          Boolean indicating if the ZNode should be force initialized if it is already present.
 void setActiveFcName(String activeFcName)
           
 void setActiveNnName(String activeNnName)
           
 void setClearExistingJnEditsDir(boolean clearExistingJnEditsDir)
           
 void setClearExistingStandbyNameDirs(boolean clearExistingStandbyNameDirs)
           
 void setForceInitZNode(boolean forceInitZNode)
           
 void setJns(Set<ApiJournalNodeArguments> jns)
           
 void setNameservice(String nameservice)
           
 void setQjName(String qjName)
           
 void setStandbyFcName(String standbyFcName)
           
 void setStandbyNameDirList(List<String> standbyNameDirList)
           
 void setStandbyNnHostId(String standbyNnHostId)
           
 void setStandbyNnName(String standbyNnName)
           
 void setZkServiceName(String zkServiceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiEnableNnHaArguments

public ApiEnableNnHaArguments()
Method Detail

getActiveNnName

public String getActiveNnName()
Name of the NameNode role that is going to be made Highly Available.


setActiveNnName

public void setActiveNnName(String activeNnName)

getStandbyNnName

public String getStandbyNnName()
Name of the new Standby NameNode role that will be created during the command (Optional).


setStandbyNnName

public void setStandbyNnName(String standbyNnName)

getStandbyNnHostId

public String getStandbyNnHostId()
Id of the host on which new Standby NameNode will be created.


setStandbyNnHostId

public void setStandbyNnHostId(String standbyNnHostId)

getStandbyNameDirList

public List<String> getStandbyNameDirList()
List of directories for the new Standby NameNode. If not provided then it will use same dirs as Active NameNode.


setStandbyNameDirList

public void setStandbyNameDirList(List<String> standbyNameDirList)

getNameservice

public String getNameservice()
Nameservice to be used while enabling Highly Available. It must be specified if Active NameNode isn't configured with it. If Active NameNode is already configured, then this need not be specified. However, if it is still specified, it must match the existing config for the Active NameNode.


setNameservice

public void setNameservice(String nameservice)

getQjName

public String getQjName()
Name of the journal located on each JournalNodes' filesystem. This can be optionally provided if the config hasn't already been set for the Active NameNode. If this isn't provided and Active NameNode doesn't also have the config, then nameservice is used by default. If Active NameNode already has this configured, then it much match the existing config.


setQjName

public void setQjName(String qjName)

getActiveFcName

public String getActiveFcName()
Name of the FailoverController role to be created on Active NameNode's host (Optional).


setActiveFcName

public void setActiveFcName(String activeFcName)

getStandbyFcName

public String getStandbyFcName()
Name of the FailoverController role to be created on Standby NameNode's host (Optional).


setStandbyFcName

public void setStandbyFcName(String standbyFcName)

getZkServiceName

public String getZkServiceName()
Name of the ZooKeeper service to be used for Auto-Failover. This MUST be provided if HDFS doesn't have a ZooKeeper dependency. If the dependency is already set, then this should be the name of the same ZooKeeper service, but can also be omitted in that case.


setZkServiceName

public void setZkServiceName(String zkServiceName)

getJns

public Set<ApiJournalNodeArguments> getJns()
Arguments for the JournalNodes to be created during the command. Must be provided only if JournalNodes don't exist already in HDFS.


setJns

public void setJns(Set<ApiJournalNodeArguments> jns)

isForceInitZNode

public boolean isForceInitZNode()
Boolean indicating if the ZNode should be force initialized if it is already present. Useful while re-enabling High Availability. (Default: TRUE)


setForceInitZNode

public void setForceInitZNode(boolean forceInitZNode)

isClearExistingStandbyNameDirs

public boolean isClearExistingStandbyNameDirs()
Boolean indicating if the existing name directories for Standby NameNode should be cleared during the workflow. Useful while re-enabling High Availability. (Default: TRUE)


setClearExistingStandbyNameDirs

public void setClearExistingStandbyNameDirs(boolean clearExistingStandbyNameDirs)

isClearExistingJnEditsDir

public boolean isClearExistingJnEditsDir()
Boolean indicating if the existing edits directories for the JournalNodes for the specified nameservice should be cleared during the workflow. Useful while re-enabling High Availability. (Default: TRUE)


setClearExistingJnEditsDir

public void setClearExistingJnEditsDir(boolean clearExistingJnEditsDir)


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.