You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Akira AJISAKA (JIRA)" <ji...@apache.org> on 2016/03/02 08:03:18 UTC

[jira] [Commented] (MAPREDUCE-6645) TestWordStats outputs logs under directories other than target/test-dir

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

Akira AJISAKA commented on MAPREDUCE-6645:
------------------------------------------

The test creates directories which does not start with target/test-dir.
{code}
  private final static String MEAN_OUTPUT = "build/data/mean_output";
  private final static String MEDIAN_OUTPUT = "build/data/median_output";
  private final static String STDDEV_OUTPUT = "build/data/stddev_output";
{code}
The code should be replaced by
{code}
  private final static String BASEDIR =
      System.getProperty("test.build.data", "target/test-dir"));
  private final static String MEAN_OUTPUT = BASEDIR + "/mean_output";
  (snip)
{code}
In addition, we should delete these directories by {{@AfterClass}}.

> TestWordStats outputs logs under directories other than target/test-dir
> -----------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6645
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6645
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>            Reporter: Akira AJISAKA
>              Labels: newbie
>




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