|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.service.HadoopAccessorService
org.apache.oozie.service.KerberosHadoopAccessorService
public class KerberosHadoopAccessorService
The HadoopAccessorService returns HadoopAccessor instances configured to work on behalf of a user-group.
The default accessor used is the base accessor which just injects the UGI into the configuration instance used to create/obtain JobClient and ileSystem instances. The HadoopAccess class to use can be configured in theoozie-site.xml
using the oozie.service.HadoopAccessorService.accessor.class
property.
Field Summary | |
---|---|
static String |
CONF_PREFIX
|
static String |
KERBEROS_AUTH_ENABLED
|
static String |
KERBEROS_KEYTAB
|
static String |
KERBEROS_PRINCIPAL
|
Fields inherited from class org.apache.oozie.service.HadoopAccessorService |
---|
JOB_TRACKER_WHITELIST, NAME_NODE_WHITELIST |
Constructor Summary | |
---|---|
KerberosHadoopAccessorService()
|
Method Summary | |
---|---|
void |
addFileToClassPath(String user,
String group,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.conf.Configuration conf)
Add a file to the ClassPath via the DistributedCache. |
org.apache.hadoop.fs.FileSystem |
createFileSystem(String user,
String group,
org.apache.hadoop.conf.Configuration conf)
Return a FileSystem created with the provided user/group. |
org.apache.hadoop.fs.FileSystem |
createFileSystem(String user,
String group,
URI uri,
org.apache.hadoop.conf.Configuration conf)
Return a FileSystem created with the provided user/group for the specified URI. |
org.apache.hadoop.mapred.JobClient |
createJobClient(String user,
String group,
org.apache.hadoop.mapred.JobConf conf)
Return a JobClient created with the provided user/group. |
void |
destroy()
Destroy the service. |
void |
init(org.apache.hadoop.conf.Configuration serviceConf)
|
Methods inherited from class org.apache.oozie.service.HadoopAccessorService |
---|
getInterface, init, validateJobTracker, validateNameNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONF_PREFIX
public static final String KERBEROS_AUTH_ENABLED
public static final String KERBEROS_KEYTAB
public static final String KERBEROS_PRINCIPAL
Constructor Detail |
---|
public KerberosHadoopAccessorService()
Method Detail |
---|
public void init(org.apache.hadoop.conf.Configuration serviceConf) throws ServiceException
init
in class HadoopAccessorService
ServiceException
public void destroy()
Service
Service
singleton at shutdown time.
destroy
in interface Service
destroy
in class HadoopAccessorService
public org.apache.hadoop.mapred.JobClient createJobClient(String user, String group, org.apache.hadoop.mapred.JobConf conf) throws HadoopAccessorException
createJobClient
in class HadoopAccessorService
conf
- JobConf with all necessary information to create the JobClient.
HadoopAccessorException
- if the client could not be created.public org.apache.hadoop.fs.FileSystem createFileSystem(String user, String group, org.apache.hadoop.conf.Configuration conf) throws HadoopAccessorException
createFileSystem
in class HadoopAccessorService
conf
- Configuration with all necessary information to create the FileSystem.
HadoopAccessorException
- if the filesystem could not be created.public org.apache.hadoop.fs.FileSystem createFileSystem(String user, String group, URI uri, org.apache.hadoop.conf.Configuration conf) throws HadoopAccessorException
createFileSystem
in class HadoopAccessorService
uri
- file system URI.conf
- Configuration with all necessary information to create the FileSystem.
HadoopAccessorException
- if the filesystem could not be created.public void addFileToClassPath(String user, String group, org.apache.hadoop.fs.Path file, org.apache.hadoop.conf.Configuration conf) throws IOException
HadoopAccessorService
addFileToClassPath
in class HadoopAccessorService
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |