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

Rohith Sharma K S commented on YARN-5208:
-----------------------------------------

Any test case that creates Proxy required to run by enabling 
*hadoop.security.token.service.use_ip* otherwise test case fails with 
UnknownHostException.

Updated the patch with following changes
# In module hadoop-yarn-client, most of the test cases required to enable 
*hadoop.security.token.service.use_ip*. And only one test 
{{TestAMRMClientOnRMRestart}} required to be disable. So, this one test can be 
modified to disable  *hadoop.security.token.service.use_ip* explicitly. 
# The tests TestAMAuthorization TestClientRMTokens are in 
hadoop-yarn-server-resource module. These test case required to run by enabling 
*hadoop.security.token.service.use_ip*. But core-site.xml loaded overrides 
*hadoop.security.token.service.use_ip* value to false. So these 2 test can be 
modified to run by enabling *hadoop.security.token.service.use_ip*

> Run TestAMRMClient TestNMClient TestYarnClient TestClientRMTokens 
> TestAMRMTokens tests with hadoop.security.token.service.use_ip enabled
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-5208
>                 URL: https://issues.apache.org/jira/browse/YARN-5208
>             Project: Hadoop YARN
>          Issue Type: Test
>          Components: test
>            Reporter: Rohith Sharma K S
>            Assignee: Rohith Sharma K S
>            Priority: Blocker
>              Labels: test
>         Attachments: 0001-YARN-5208.patch, 0002-YARN-5208.patch, 
> 0003-YARN-5208.patch, 0004-YARN-5208.patch
>
>
> All YARN test cases are running with *hadoop.security.token.service.use_ip* 
> disabled. As a result few tests {{TestAMRMClient TestNMClient TestYarnClient 
> TestClientRMTokens TestAMRMTokens}} cases are consistently failing because of 
> unable to resolve hostname(see HADOOP-12687 YARN-4306 YARN-4318)
> I would suggest to run tests with *hadoop.security.token.service.use_ip* 
> enabled by default. And for the HA test cases which require mandatory 
> disabling , change test cases as required by setting 
> {code}
> conf.setBoolean(
>         CommonConfigurationKeys.HADOOP_SECURITY_TOKEN_SERVICE_USE_IP, false);
>     SecurityUtil.setConfiguration(conf);
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to