code: def failover_hdfs(self, active_name, standby_name, force=False):
      
      params = { "force" : "true" and force or "false" }
      args = { ApiList.LIST_KEY : [ active_name, standby_name ] }
      return self._cmd('hdfsFailover', data=[ active_name, standby_name ],
          params = { "force" : "true" and force or "false" })
docs: Initiate a failover of an HDFS NameNode HA pair.
  
      This will make the given stand-by NameNode active, and vice-versa.
  
      @param active_name: name of currently active NameNode.
      @param standby_name: name of NameNode currently in stand-by.
      @param force: whether to force failover.
      @return: Reference to the submitted command.