org.apache.tez.client
Class TezClientUtils

java.lang.Object
  extended by org.apache.tez.client.TezClientUtils

public class TezClientUtils
extends Object


Field Summary
static org.apache.hadoop.fs.permission.FsPermission TEZ_AM_DIR_PERMISSION
           
static org.apache.hadoop.fs.permission.FsPermission TEZ_AM_FILE_PERMISSION
           
 
Constructor Summary
TezClientUtils()
           
 
Method Summary
static org.apache.hadoop.fs.FileSystem ensureStagingDirExists(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path stagingArea)
          Verify or create the Staging area directory on the configured Filesystem
static DAGClientAMProtocolBlockingPB getAMProxy(org.apache.hadoop.conf.Configuration conf, String amHost, int amRpcPort, org.apache.hadoop.yarn.api.records.Token clientToAMToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEZ_AM_DIR_PERMISSION

public static final org.apache.hadoop.fs.permission.FsPermission TEZ_AM_DIR_PERMISSION

TEZ_AM_FILE_PERMISSION

public static final org.apache.hadoop.fs.permission.FsPermission TEZ_AM_FILE_PERMISSION
Constructor Detail

TezClientUtils

public TezClientUtils()
Method Detail

ensureStagingDirExists

public static org.apache.hadoop.fs.FileSystem ensureStagingDirExists(org.apache.hadoop.conf.Configuration conf,
                                                                     org.apache.hadoop.fs.Path stagingArea)
                                                              throws IOException
Verify or create the Staging area directory on the configured Filesystem

Parameters:
stagingArea - Staging area directory path
Returns:
the FileSytem for the staging area directory
Throws:
IOException

getAMProxy

@InterfaceAudience.Private
public static DAGClientAMProtocolBlockingPB getAMProxy(org.apache.hadoop.conf.Configuration conf,
                                                                                 String amHost,
                                                                                 int amRpcPort,
                                                                                 org.apache.hadoop.yarn.api.records.Token clientToAMToken)
                                                throws IOException
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All rights reserved.