本文整理了Java中org.apache.hadoop.util.Shell.getUlimitMemoryCommand()
方法的一些代码示例,展示了Shell.getUlimitMemoryCommand()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.getUlimitMemoryCommand()
方法的具体详情如下:
包路径:org.apache.hadoop.util.Shell
类名称:Shell
方法名:getUlimitMemoryCommand
[英]Get the Unix command for setting the maximum virtual memory available to a given child process. This is only relevant when we are forking a process from within the Mapper or the Reducer implementations. Also see Hadoop Pipes and Hadoop Streaming. It also checks to ensure that we are running on a nix platform else (e.g. in Cygwin/Windows) it returns null
.
[中]获取Unix命令,用于设置给定子进程可用的最大虚拟内存。这仅在我们从Mapper或Reducer实现中派生流程时才相关。另请参见Hadoop管道和Hadoop流。它还会检查以确保我们在nix平台上运行,否则(例如在Cygwin/Windows中)它会返回[$0$]。
代码示例来源:origin: com.facebook.hadoop/hadoop-core
return getUlimitMemoryCommand(memoryLimit);
代码示例来源:origin: org.apache.hadoop/hadoop-mapred
/**
* @return
*/
private List<String> getVMSetupCmd() {
int ulimit = getChildUlimit(conf);
if (ulimit <= 0) {
return null;
}
List<String> setup = null;
String[] ulimitCmd = Shell.getUlimitMemoryCommand(ulimit);
if (ulimitCmd != null) {
setup = new ArrayList<String>();
for (String arg : ulimitCmd) {
setup.add(arg);
}
}
return setup;
}
代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core
String[] ulimitCmd = Shell.getUlimitMemoryCommand(conf);
List<String> setup = null;
if (ulimitCmd != null) {
代码示例来源:origin: com.facebook.hadoop/hadoop-core
String[] ulimitCmd = Shell.getUlimitMemoryCommand(getChildUlimit(conf));
List<String> setup = null;
if (ulimitCmd != null) {
内容来源于网络,如有侵权,请联系作者删除!