org.apache.oozie.action.hadoop
Class HCatCredentials

java.lang.Object
  extended by org.apache.oozie.action.hadoop.Credentials
      extended by org.apache.oozie.action.hadoop.HCatCredentials

public class HCatCredentials
extends Credentials

Credentials implementation to store in jobConf, HCat-specific properties such as Principal and Uri User specifies these credential properties along with the action configuration The jobConf is used further to pass credentials to the tasks while running Oozie server should be configured to use this Credentials class by including it via property 'oozie.credentials.credentialclasses' User can extend the parent class to implement own class as well for handling custom token-based credentials and add to the above server property


Constructor Summary
HCatCredentials()
           
 
Method Summary
 void addtoJobConf(org.apache.hadoop.mapred.JobConf jobconf, CredentialsProperties props, ActionExecutor.Context context)
          This is the interface for all the Credentials implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatCredentials

public HCatCredentials()
Method Detail

addtoJobConf

public void addtoJobConf(org.apache.hadoop.mapred.JobConf jobconf,
                         CredentialsProperties props,
                         ActionExecutor.Context context)
                  throws Exception
Description copied from class: Credentials
This is the interface for all the Credentials implementation. Any new credential implementaion must implement this function. This function should modify the jobconf which will be used further to pass the credentials to the tasks while running it. Credentials properties and context is also provided by that user can get all the necessary configuration.

Specified by:
addtoJobConf in class Credentials
Parameters:
jobconf - job conf where the token will insert into
props - properties for getting credential token or certificate
context - workflow context
Throws:
Exception - thrown if failed


Copyright © 2013 Apache Software Foundation. All Rights Reserved.