|
||||||||||
| 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 java.lang.String |
CONF_PREFIX
|
static java.lang.String |
KERBEROS_AUTH_ENABLED
|
static java.lang.String |
KERBEROS_KEYTAB
|
static java.lang.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(java.lang.String user,
java.lang.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(java.lang.String user,
java.lang.String group,
org.apache.hadoop.conf.Configuration conf)
Return a FileSystem created with the provided user/group. |
org.apache.hadoop.fs.FileSystem |
createFileSystem(java.lang.String user,
java.lang.String group,
java.net.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(java.lang.String user,
java.lang.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 java.lang.String CONF_PREFIX
public static final java.lang.String KERBEROS_AUTH_ENABLED
public static final java.lang.String KERBEROS_KEYTAB
public static final java.lang.String KERBEROS_PRINCIPAL
| Constructor Detail |
|---|
public KerberosHadoopAccessorService()
| Method Detail |
|---|
public void init(org.apache.hadoop.conf.Configuration serviceConf)
throws ServiceException
init in class HadoopAccessorServiceServiceExceptionpublic void destroy()
ServiceService singleton at shutdown time.
destroy in interface Servicedestroy in class HadoopAccessorService
public org.apache.hadoop.mapred.JobClient createJobClient(java.lang.String user,
java.lang.String group,
org.apache.hadoop.mapred.JobConf conf)
throws HadoopAccessorException
createJobClient in class HadoopAccessorServiceconf - JobConf with all necessary information to create the JobClient.
HadoopAccessorException - if the client could not be created.
public org.apache.hadoop.fs.FileSystem createFileSystem(java.lang.String user,
java.lang.String group,
org.apache.hadoop.conf.Configuration conf)
throws HadoopAccessorException
createFileSystem in class HadoopAccessorServiceconf - Configuration with all necessary information to create the FileSystem.
HadoopAccessorException - if the filesystem could not be created.
public org.apache.hadoop.fs.FileSystem createFileSystem(java.lang.String user,
java.lang.String group,
java.net.URI uri,
org.apache.hadoop.conf.Configuration conf)
throws HadoopAccessorException
createFileSystem in class HadoopAccessorServiceuri - file system URI.conf - Configuration with all necessary information to create the FileSystem.
HadoopAccessorException - if the filesystem could not be created.
public void addFileToClassPath(java.lang.String user,
java.lang.String group,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
HadoopAccessorService
addFileToClassPath in class HadoopAccessorServicejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||