YARN-5159. Wrong Javadoc tag in MiniYarnCluster. Contributed by Andras Bokor.
This commit is contained in:
parent
382dff7475
commit
6cf017558a
@ -97,16 +97,20 @@ import org.apache.hadoop.yarn.webapp.util.WebAppUtils;
|
|||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* <p>
|
||||||
* Embedded Yarn minicluster for testcases that need to interact with a cluster.
|
* Embedded Yarn minicluster for testcases that need to interact with a cluster.
|
||||||
* <p/>
|
* </p>
|
||||||
|
* <p>
|
||||||
* In a real cluster, resource request matching is done using the hostname, and
|
* In a real cluster, resource request matching is done using the hostname, and
|
||||||
* by default Yarn minicluster works in the exact same way as a real cluster.
|
* by default Yarn minicluster works in the exact same way as a real cluster.
|
||||||
* <p/>
|
* </p>
|
||||||
* If a testcase needs to use multiple nodes and exercise resource request
|
* <p>
|
||||||
|
* If a testcase needs to use multiple nodes and exercise resource request
|
||||||
* matching to a specific node, then the property
|
* matching to a specific node, then the property
|
||||||
* {@YarnConfiguration.RM_SCHEDULER_INCLUDE_PORT_IN_NODE_NAME} should be set
|
* {@value org.apache.hadoop.yarn.conf.YarnConfiguration#RM_SCHEDULER_INCLUDE_PORT_IN_NODE_NAME}
|
||||||
* <code>true</code> in the configuration used to initialize the minicluster.
|
* should be set <code>true</code> in the configuration used to initialize
|
||||||
* <p/>
|
* the minicluster.
|
||||||
|
* </p>
|
||||||
* With this property set to <code>true</code>, the matching will be done using
|
* With this property set to <code>true</code>, the matching will be done using
|
||||||
* the <code>hostname:port</code> of the namenodes. In such case, the AM must
|
* the <code>hostname:port</code> of the namenodes. In such case, the AM must
|
||||||
* do resource request using <code>hostname:port</code> as the location.
|
* do resource request using <code>hostname:port</code> as the location.
|
||||||
@ -736,8 +740,9 @@ public class MiniYARNCluster extends CompositeService {
|
|||||||
* @param timeout Time to wait (sleeps in 10 ms intervals) in milliseconds.
|
* @param timeout Time to wait (sleeps in 10 ms intervals) in milliseconds.
|
||||||
* @return true if all NodeManagers connect to the (Active)
|
* @return true if all NodeManagers connect to the (Active)
|
||||||
* ResourceManager, false otherwise.
|
* ResourceManager, false otherwise.
|
||||||
* @throws YarnException
|
* @throws YarnException if there is no active RM
|
||||||
* @throws InterruptedException
|
* @throws InterruptedException if any thread has interrupted
|
||||||
|
* the current thread
|
||||||
*/
|
*/
|
||||||
public boolean waitForNodeManagersToConnect(long timeout)
|
public boolean waitForNodeManagersToConnect(long timeout)
|
||||||
throws YarnException, InterruptedException {
|
throws YarnException, InterruptedException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user