[
https://issues.apache.org/jira/browse/PIG-5460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882806#comment-17882806
]
Rohini Palaniswamy commented on PIG-5460:
-----------------------------------------
Change should just be
{code:java}
String tokenFile = System.getenv("HADOOP_TOKEN_FILE_LOCATION")
if(tokenFile != null && globalConf.get(MRConfiguration.JOB_CREDENTIALS_BINARY)
== null) {
globalConf.set(MRConfiguration.JOB_CREDENTIALS_BINARY, tokenFile);
globalConf.set("tez.credentials.path", tokenFile);
}
{code}
SecurityHelper.populateTokenCache will take care of reading from that. It would
be even better if you can put the above into a
configureCredentialFile(Configuration conf) method in SecurityHelper instead of
TezDAGBuilder and just call it from there, so that all related code is in one
place.
> Allow Tez to be launched from mapreduce job
> -------------------------------------------
>
> Key: PIG-5460
> URL: https://issues.apache.org/jira/browse/PIG-5460
> Project: Pig
> Issue Type: Improvement
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Minor
> Attachments: pig-5460-v01.patch
>
>
> It's like Oozie but not using Oozie launcher.
> I would like to be able to submit Pig on Tez job from the mapper task.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)