/** * Gets the authenticated token from either the specified token file or directly from the * configuration, whichever was used when the job was configured. * * @param job * the Hadoop job instance to be configured * @return the principal's authentication token * @since 1.6.0 * @see #setConnectorInfo(JobConf, String, AuthenticationToken) * @see #setConnectorInfo(JobConf, String, String) */ protected static AuthenticationToken getAuthenticationToken(JobConf job) { AuthenticationToken token = OutputConfigurator.getAuthenticationToken(CLASS, job); return ConfiguratorBase.unwrapAuthenticationToken(job, token); }
/** * Gets the authenticated token from either the specified token file or directly from the * configuration, whichever was used when the job was configured. * * @param context * the Hadoop context for the configured job * @return the principal's authentication token * @since 1.6.0 * @see #setConnectorInfo(Job, String, AuthenticationToken) * @see #setConnectorInfo(Job, String, String) */ protected static AuthenticationToken getAuthenticationToken(JobContext context) { AuthenticationToken token = OutputConfigurator.getAuthenticationToken(CLASS, context.getConfiguration()); return ConfiguratorBase.unwrapAuthenticationToken(context, token); }
/** * Gets the authenticated token from either the specified token file or directly from the * configuration, whichever was used when the job was configured. * * @param job * the Hadoop job instance to be configured * @return the principal's authentication token * @since 1.6.0 * @see #setConnectorInfo(JobConf, String, AuthenticationToken) * @see #setConnectorInfo(JobConf, String, String) */ protected static AuthenticationToken getAuthenticationToken(JobConf job) { AuthenticationToken token = OutputConfigurator.getAuthenticationToken(CLASS, job); return ConfiguratorBase.unwrapAuthenticationToken(job, token); }
/** * Gets the authenticated token from either the specified token file or directly from the * configuration, whichever was used when the job was configured. * * @param context * the Hadoop context for the configured job * @return the principal's authentication token * @since 1.6.0 * @see #setConnectorInfo(Job, String, AuthenticationToken) * @see #setConnectorInfo(Job, String, String) */ protected static AuthenticationToken getAuthenticationToken(JobContext context) { AuthenticationToken token = OutputConfigurator.getAuthenticationToken(CLASS, context.getConfiguration()); return ConfiguratorBase.unwrapAuthenticationToken(context, token); }