[ 
https://issues.apache.org/jira/browse/GOBBLIN-1301?focusedWorklogId=505937&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-505937
 ]

ASF GitHub Bot logged work on GOBBLIN-1301:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Oct/20 21:59
            Start Date: 28/Oct/20 21:59
    Worklog Time Spent: 10m 
      Work Description: li-ygerchikov commented on a change in pull request 
#3139:
URL: https://github.com/apache/incubator-gobblin/pull/3139#discussion_r513787406



##########
File path: 
gobblin-modules/gobblin-azkaban/src/main/java/org/apache/gobblin/azkaban/AzkabanJobLauncher.java
##########
@@ -175,18 +169,14 @@ public AzkabanJobLauncher(String jobId, Properties props)
     this.props
         .setProperty(ConfigurationKeys.JOB_TRACKING_URL_KEY, 
Strings.nullToEmpty(conf.get(AZKABAN_LINK_JOBEXEC_URL)));
 
-    if (props.containsKey(JOB_TYPE) && 
JOB_TYPES_WITH_AUTOMATIC_TOKEN.contains(props.getProperty(JOB_TYPE))) {
-      // Necessary for compatibility with Azkaban's hadoopJava job type
-      // http://azkaban.github.io/azkaban/docs/2.5/#hadoopjava-type
-      LOG.info(
-          "Job type " + props.getProperty(JOB_TYPE) + " provides Hadoop tokens 
automatically. Using provided tokens.");
-      if (System.getenv(HADOOP_TOKEN_FILE_LOCATION) != null) {
-        this.props.setProperty(MAPREDUCE_JOB_CREDENTIALS_BINARY, 
System.getenv(HADOOP_TOKEN_FILE_LOCATION));
-      }
+    if (System.getenv(HADOOP_TOKEN_FILE_LOCATION) != null) {

Review comment:
       Yes, this should work. I just wander if there may be situations when the 
env var is set, but the file is either missing or obsolete or does not contain 
the right tokens... How much of this could (and is worth) checking? E.g. 
checking that the file exists should be fairly trivial.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 505937)
    Time Spent: 1h  (was: 50m)

> Add Azkaban OAuth token support
> -------------------------------
>
>                 Key: GOBBLIN-1301
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1301
>             Project: Apache Gobblin
>          Issue Type: Improvement
>          Components: gobblin-core
>            Reporter: Alex Prokofiev
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to