[ 
https://issues.apache.org/jira/browse/SQOOP-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267230#comment-14267230
 ] 

Richard commented on SQOOP-1971:
--------------------------------

Investigation:
It will fail if doHttpRequest method has not run before running 
addDelegationTokens method, since the strURL, which is set in doHttpRequest 
method, will be used in addDelegationTokens method.
Solution:
Remove this strURL param in ResourceRequest, and add strURL as input in 
addDelegationTokens method. So a valid strURL is needed when running 
addDelegationTokens.

> strURL may not be initialized when calling addDelegationToken 
> --------------------------------------------------------------
>
>                 Key: SQOOP-1971
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1971
>             Project: Sqoop
>          Issue Type: Bug
>          Components: sqoop2-client
>    Affects Versions: 2.0.0
>            Reporter: Jerry Chen
>            Assignee: Richard
>
> strURL is passed and set the value in the doHttpRequest method. 
> addDelegationTokens is a  method which can be called independently. But it 
> uses strURL internally and another method getDelegationTokenService called by 
> addDelegationTokens.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to