|
@@ -83,9 +83,10 @@ public class YarnConfiguration extends Configuration {
|
|
|
/** The address of the applications manager interface in the RM.*/
|
|
|
public static final String RM_ADDRESS =
|
|
|
RM_PREFIX + "address";
|
|
|
+ public static final int DEFAULT_RM_PORT = 8040;
|
|
|
public static final String DEFAULT_RM_ADDRESS =
|
|
|
- "0.0.0.0:8040";
|
|
|
-
|
|
|
+ "0.0.0.0:" + DEFAULT_RM_PORT;
|
|
|
+
|
|
|
/** The number of threads used to handle applications manager requests.*/
|
|
|
public static final String RM_CLIENT_THREAD_COUNT =
|
|
|
RM_PREFIX + "client.thread-count";
|
|
@@ -103,7 +104,9 @@ public class YarnConfiguration extends Configuration {
|
|
|
/** The address of the scheduler interface.*/
|
|
|
public static final String RM_SCHEDULER_ADDRESS =
|
|
|
RM_PREFIX + "scheduler.address";
|
|
|
- public static final String DEFAULT_RM_SCHEDULER_ADDRESS = "0.0.0.0:8030";
|
|
|
+ public static final int DEFAULT_RM_SCHEDULER_PORT = 8030;
|
|
|
+ public static final String DEFAULT_RM_SCHEDULER_ADDRESS = "0.0.0.0:" +
|
|
|
+ DEFAULT_RM_SCHEDULER_PORT;
|
|
|
|
|
|
/** Number of threads to handle scheduler interface.*/
|
|
|
public static final String RM_SCHEDULER_CLIENT_THREAD_COUNT =
|
|
@@ -113,12 +116,16 @@ public class YarnConfiguration extends Configuration {
|
|
|
/** The address of the RM web application.*/
|
|
|
public static final String RM_WEBAPP_ADDRESS =
|
|
|
RM_PREFIX + "webapp.address";
|
|
|
- public static final String DEFAULT_RM_WEBAPP_ADDRESS = "0.0.0.0:8088";
|
|
|
+
|
|
|
+ public static final int DEFAULT_RM_WEBAPP_PORT = 8088;
|
|
|
+ public static final String DEFAULT_RM_WEBAPP_ADDRESS = "0.0.0.0:" +
|
|
|
+ DEFAULT_RM_WEBAPP_PORT;
|
|
|
|
|
|
public static final String RM_RESOURCE_TRACKER_ADDRESS =
|
|
|
RM_PREFIX + "resource-tracker.address";
|
|
|
+ public static final int DEFAULT_RM_RESOURCE_TRACKER_PORT = 8025;
|
|
|
public static final String DEFAULT_RM_RESOURCE_TRACKER_ADDRESS =
|
|
|
- "0.0.0.0:8025";
|
|
|
+ "0.0.0.0:" + DEFAULT_RM_RESOURCE_TRACKER_PORT;
|
|
|
|
|
|
/** Are acls enabled.*/
|
|
|
public static final String YARN_ACL_ENABLE =
|
|
@@ -133,7 +140,9 @@ public class YarnConfiguration extends Configuration {
|
|
|
/** The address of the RM admin interface.*/
|
|
|
public static final String RM_ADMIN_ADDRESS =
|
|
|
RM_PREFIX + "admin.address";
|
|
|
- public static final String DEFAULT_RM_ADMIN_ADDRESS = "0.0.0.0:8141";
|
|
|
+ public static final int DEFAULT_RM_ADMIN_PORT = 8141;
|
|
|
+ public static final String DEFAULT_RM_ADMIN_ADDRESS = "0.0.0.0:" +
|
|
|
+ DEFAULT_RM_ADMIN_PORT;
|
|
|
|
|
|
/**Number of threads used to handle RM admin interface.*/
|
|
|
public static final String RM_ADMIN_CLIENT_THREAD_COUNT =
|
|
@@ -250,7 +259,9 @@ public class YarnConfiguration extends Configuration {
|
|
|
/** Address where the localizer IPC is.*/
|
|
|
public static final String NM_LOCALIZER_ADDRESS =
|
|
|
NM_PREFIX + "localizer.address";
|
|
|
- public static final String DEFAULT_NM_LOCALIZER_ADDRESS = "0.0.0.0:4344";
|
|
|
+ public static final int DEFAULT_NM_LOCALIZER_PORT = 4344;
|
|
|
+ public static final String DEFAULT_NM_LOCALIZER_ADDRESS = "0.0.0.0:" +
|
|
|
+ DEFAULT_NM_LOCALIZER_PORT;
|
|
|
|
|
|
/** Interval in between cache cleanups.*/
|
|
|
public static final String NM_LOCALIZER_CACHE_CLEANUP_INTERVAL_MS =
|
|
@@ -288,7 +299,9 @@ public class YarnConfiguration extends Configuration {
|
|
|
|
|
|
/** NM Webapp address.**/
|
|
|
public static final String NM_WEBAPP_ADDRESS = NM_PREFIX + "webapp.address";
|
|
|
- public static final String DEFAULT_NM_WEBAPP_ADDRESS = "0.0.0.0:9999";
|
|
|
+ public static final int DEFAULT_NM_WEBAPP_PORT = 9999;
|
|
|
+ public static final String DEFAULT_NM_WEBAPP_ADDRESS = "0.0.0.0:" +
|
|
|
+ DEFAULT_NM_WEBAPP_PORT;
|
|
|
|
|
|
/** How often to monitor containers.*/
|
|
|
public final static String NM_CONTAINER_MON_INTERVAL_MS =
|