|
@@ -187,9 +187,6 @@ public class JobConf extends Configuration {
|
|
|
* /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
|
|
|
* -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
|
|
|
*
|
|
|
- * The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
|
|
|
- * control the maximum virtual memory of the child processes.
|
|
|
- *
|
|
|
* The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
|
|
|
* other environment variables to the child processes.
|
|
|
*
|
|
@@ -210,9 +207,6 @@ public class JobConf extends Configuration {
|
|
|
* /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
|
|
|
* -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
|
|
|
*
|
|
|
- * The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
|
|
|
- * control the maximum virtual memory of the map processes.
|
|
|
- *
|
|
|
* The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
|
|
|
* other environment variables to the map processes.
|
|
|
*/
|
|
@@ -230,9 +224,6 @@ public class JobConf extends Configuration {
|
|
|
* /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
|
|
|
* -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
|
|
|
*
|
|
|
- * The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
|
|
|
- * to control the maximum virtual memory of the reduce processes.
|
|
|
- *
|
|
|
* The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
|
|
|
* pass process environment variables to the reduce processes.
|
|
|
*/
|
|
@@ -242,36 +233,32 @@ public class JobConf extends Configuration {
|
|
|
public static final String DEFAULT_MAPRED_TASK_JAVA_OPTS = "-Xmx200m";
|
|
|
|
|
|
/**
|
|
|
- * Configuration key to set the maximum virutal memory available to the child
|
|
|
- * map and reduce tasks (in kilo-bytes).
|
|
|
- *
|
|
|
- * Note: This must be greater than or equal to the -Xmx passed to the JavaVM
|
|
|
- * via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
|
|
|
- *
|
|
|
- * @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
|
|
|
- * {@link #MAPRED_REDUCE_TASK_ULIMIT}
|
|
|
+ * @deprecated
|
|
|
+ * Configuration key to set the maximum virtual memory available to the child
|
|
|
+ * map and reduce tasks (in kilo-bytes). This has been deprecated and will no
|
|
|
+ * longer have any effect.
|
|
|
*/
|
|
|
@Deprecated
|
|
|
public static final String MAPRED_TASK_ULIMIT = "mapred.child.ulimit";
|
|
|
|
|
|
/**
|
|
|
- * Configuration key to set the maximum virutal memory available to the
|
|
|
- * map tasks (in kilo-bytes).
|
|
|
- *
|
|
|
- * Note: This must be greater than or equal to the -Xmx passed to the JavaVM
|
|
|
- * via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.
|
|
|
+ * @deprecated
|
|
|
+ * Configuration key to set the maximum virtual memory available to the
|
|
|
+ * map tasks (in kilo-bytes). This has been deprecated and will no
|
|
|
+ * longer have any effect.
|
|
|
*/
|
|
|
- public static final String MAPRED_MAP_TASK_ULIMIT = JobContext.MAP_ULIMIT;
|
|
|
+ @Deprecated
|
|
|
+ public static final String MAPRED_MAP_TASK_ULIMIT = "mapreduce.map.ulimit";
|
|
|
|
|
|
/**
|
|
|
- * Configuration key to set the maximum virutal memory available to the
|
|
|
- * reduce tasks (in kilo-bytes).
|
|
|
- *
|
|
|
- * Note: This must be greater than or equal to the -Xmx passed to the JavaVM
|
|
|
- * via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.
|
|
|
+ * @deprecated
|
|
|
+ * Configuration key to set the maximum virtual memory available to the
|
|
|
+ * reduce tasks (in kilo-bytes). This has been deprecated and will no
|
|
|
+ * longer have any effect.
|
|
|
*/
|
|
|
- public static final String MAPRED_REDUCE_TASK_ULIMIT =
|
|
|
- JobContext.REDUCE_ULIMIT;
|
|
|
+ @Deprecated
|
|
|
+ public static final String MAPRED_REDUCE_TASK_ULIMIT =
|
|
|
+ "mapreduce.reduce.ulimit";
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -1966,6 +1953,15 @@ public class JobConf extends Configuration {
|
|
|
+ " Instead use " + JobConf.MAPRED_JOB_MAP_MEMORY_MB_PROPERTY
|
|
|
+ " and " + JobConf.MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY);
|
|
|
}
|
|
|
+ if(get(JobConf.MAPRED_TASK_ULIMIT) != null ) {
|
|
|
+ LOG.warn(JobConf.deprecatedString(JobConf.MAPRED_TASK_ULIMIT));
|
|
|
+ }
|
|
|
+ if(get(JobConf.MAPRED_MAP_TASK_ULIMIT) != null ) {
|
|
|
+ LOG.warn(JobConf.deprecatedString(JobConf.MAPRED_MAP_TASK_ULIMIT));
|
|
|
+ }
|
|
|
+ if(get(JobConf.MAPRED_REDUCE_TASK_ULIMIT) != null ) {
|
|
|
+ LOG.warn(JobConf.deprecatedString(JobConf.MAPRED_REDUCE_TASK_ULIMIT));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|