hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6645) TestWordStats outputs logs under directories other than target/test-dir
Date Wed, 02 Mar 2016 07:03:18 GMT

    [ 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)

Mime
View raw message