hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masatake Iwasaki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6525) Fix test failure of TestMiniMRClientCluster.testRestart
Date Tue, 27 Oct 2015 08:50:27 GMT

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

Masatake Iwasaki commented on MAPREDUCE-6525:
---------------------------------------------

{{MiniMRYarnClusterAdapter#restart}} creates new MiniMRYarnCluster with configuration of existing
MiniMRYarnCluster. MiniMRYarnCluster tries to copy the value of {{JHAdminConfig.MR_HISTORY_ADDRESS}}
in the configuration of JobHistoryServer (updated by using {{Configuration#updateConnectAddr}})
in startup.
{code}
      //need to do this because historyServer.init creates a new Configuration
      getConfig().set(JHAdminConfig.MR_HISTORY_ADDRESS,
                      historyServer.getConfig().get(JHAdminConfig.MR_HISTORY_ADDRESS));
      MRWebAppUtil.setJHSWebappURLWithoutScheme(getConfig(),
          MRWebAppUtil.getJHSWebappURLWithoutScheme(historyServer.getConfig()));
{code}

According to the log of minicluster, the updated value seems not yet to be visible at above
point.

before restart:
{noformat}
2015-10-27 17:27:52,825 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(248))
- MiniMRYARN ResourceManager address: centos7:0
2015-10-27 17:27:52,825 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(250))
- MiniMRYARN ResourceManager web address: centos7:0
2015-10-27 17:27:52,825 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(252))
- MiniMRYARN HistoryServer address: centos7:0
2015-10-27 17:27:52,826 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(254))
- MiniMRYARN HistoryServer web address: localhost:0
{noformat}

after restart:
{noformat}
2015-10-27 17:27:55,330 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(198))
- MiniMRYARN ResourceManager address: localhost:45359
2015-10-27 17:27:55,330 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(200))
- MiniMRYARN ResourceManager web address: centos7:34289
2015-10-27 17:27:55,331 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(202))
- MiniMRYARN HistoryServer address: localhost:52822
2015-10-27 17:27:55,331 INFO  [main] v2.MiniMRYarnCluster (MiniMRYarnCluster.java:serviceStart(204))
- MiniMRYARN HistoryServer web address: localhost:57028
{noformat}


> Fix test failure of TestMiniMRClientCluster.testRestart
> -------------------------------------------------------
>
>                 Key: MAPREDUCE-6525
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6525
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>




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

Mime
View raw message