congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DefaultContainerExecutor.getApplicationDir
Code IndexAdd Tabnine to your IDE (free)

How to use
getApplicationDir
method
in
org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor

Best Java code snippets using org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.getApplicationDir (Showing top 8 results out of 315)

origin: io.hops/hadoop-yarn-server-nodemanager

/**
 * Initialize the local directories for a particular user.
 * <ul>
 * <li>$local.dir/usercache/$user/appcache/$appid</li>
 * </ul>
 * @param localDirs 
 */
void createAppDirs(List<String> localDirs, String user, String appId, String userFolder)
  throws IOException {
 boolean initAppDirStatus = false;
 FsPermission appperms = new FsPermission(APPDIR_PERM);
 for (String localDir : localDirs) {
  Path fullAppDir = getApplicationDir(new Path(localDir), userFolder, appId);
  // create $local.dir/usercache/$user/appcache/$appId
  try {
   createDir(fullAppDir, appperms, true, user);
   initAppDirStatus = true;
  } catch (IOException e) {
   LOG.warn("Unable to create app directory " + fullAppDir.toString(), e);
  }
 }
 if (!initAppDirStatus) {
  throw new IOException("Not able to initialize app directories "
    + "in any of the configured local directories for app "
    + appId.toString());
 }
}
origin: ch.cern.hadoop/hadoop-yarn-server-nodemanager

/**
 * Initialize the local directories for a particular user.
 * <ul>
 * <li>$local.dir/usercache/$user/appcache/$appid</li>
 * </ul>
 * @param localDirs 
 */
void createAppDirs(List<String> localDirs, String user, String appId)
  throws IOException {
 boolean initAppDirStatus = false;
 FsPermission appperms = new FsPermission(APPDIR_PERM);
 for (String localDir : localDirs) {
  Path fullAppDir = getApplicationDir(new Path(localDir), user, appId);
  // create $local.dir/usercache/$user/appcache/$appId
  try {
   createDir(fullAppDir, appperms, true, user);
   initAppDirStatus = true;
  } catch (IOException e) {
   LOG.warn("Unable to create app directory " + fullAppDir.toString(), e);
  }
 }
 if (!initAppDirStatus) {
  throw new IOException("Not able to initialize app directories "
    + "in any of the configured local directories for app "
    + appId.toString());
 }
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-nodemanager

/**
 * Initialize the local directories for a particular user.
 * <ul>
 * <li>$local.dir/usercache/$user/appcache/$appid</li>
 * </ul>
 * @param localDirs 
 */
void createAppDirs(List<String> localDirs, String user, String appId)
  throws IOException {
 boolean initAppDirStatus = false;
 FsPermission appperms = new FsPermission(APPDIR_PERM);
 for (String localDir : localDirs) {
  Path fullAppDir = getApplicationDir(new Path(localDir), user, appId);
  // create $local.dir/usercache/$user/appcache/$appId
  try {
   createDir(fullAppDir, appperms, true, user);
   initAppDirStatus = true;
  } catch (IOException e) {
   LOG.warn("Unable to create app directory " + fullAppDir.toString(), e);
  }
 }
 if (!initAppDirStatus) {
  throw new IOException("Not able to initialize app directories "
    + "in any of the configured local directories for app "
    + appId.toString());
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-nodemanager

FsPermission appperms = new FsPermission(APPDIR_PERM);
for (String localDir : localDirs) {
 Path fullAppDir = getApplicationDir(new Path(localDir), user, appId);
origin: com.github.jiayuhan-it/hadoop-yarn-server-nodemanager

 Path curBase = getApplicationDir(new Path(localDir),
   user, appId);
 long space = 0L;
 randomPosition -= availableOnDisk[dir++];
appStorageDir = getApplicationDir(new Path(localDirs.get(dir)),
  user, appId);
origin: ch.cern.hadoop/hadoop-yarn-server-nodemanager

 Path curBase = getApplicationDir(new Path(localDir),
   user, appId);
 long space = 0L;
 randomPosition -= availableOnDisk[dir++];
appStorageDir = getApplicationDir(new Path(localDirs.get(dir)),
  user, appId);
origin: io.hops/hadoop-yarn-server-nodemanager

 Path curBase = getApplicationDir(new Path(localDir),
   userFolder, appId);
 long space = 0L;
 randomPosition -= availableOnDisk[dir++];
appStorageDir = getApplicationDir(new Path(localDirs.get(dir)),
  userFolder, appId);
origin: org.apache.hadoop/hadoop-yarn-server-nodemanager

 Path curBase = getApplicationDir(new Path(localDir), user, appId);
 long space = 0L;
 try {
int dir = pickDirectory(randomPosition, availableOnDisk);
return getApplicationDir(new Path(localDirs.get(dir)), user, appId);
org.apache.hadoop.yarn.server.nodemanagerDefaultContainerExecutorgetApplicationDir

Popular methods of DefaultContainerExecutor

  • buildCommandExecutor
    Create a new ShellCommandExecutor using the parameters.
  • containerIsAlive
    Returns true if the process with the specified pid is alive.
  • copyFile
    Copy a file using the #lfs FileContext.
  • createAppDirs
    Initialize the local directories for a particular user. * $local.dir/usercache/$user/appcache/$a
  • createAppLogDirs
    Create application log directories on all disks.
  • createContainerLogDirs
    Create application log directories on all disks.
  • createDir
    Use the #lfs FileContext to create the target directory.
  • createUserCacheDirs
    Initialize the local cache directories for a particular user. * $local.dir/usercache/$user *
  • createUserLocalDirs
    Initialize the local directories for a particular user. * * $local.dir/usercache/$user
  • getAppcacheDir
  • getConf
  • getDiskFreeSpace
  • getConf,
  • getDiskFreeSpace,
  • getFileCacheDir,
  • getLocalWrapperScriptBuilder,
  • getPaths,
  • getPidFilePath,
  • getRunCommand,
  • getUserCacheDir,
  • getWorkingDir

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now