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 "Jim Plush (JIRA)" <ji...@apache.org> on 2011/06/26 19:55:47 UTC
[jira] [Created] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
-------------------------------------------------------------
Key: MAPREDUCE-2623
URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
Project: Hadoop Map/Reduce
Issue Type: Task
Components: test
Affects Versions: 0.23.0
Reporter: Jim Plush
Priority: Minor
Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J updated MAPREDUCE-2623:
-------------------------------
Attachment: MAPREDUCE-2623.r2.diff
Oops, forgot that reformat was a method flag.
The test case {{TestJobStatusPersistence#testNonPersistence}} fails for me without the patch applied, for some reason. Still investigating that one.
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated MAPREDUCE-2623:
-----------------------------------
Issue Type: Improvement (was: Task)
Hadoop Flags: [Reviewed]
+1 looks good
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066733#comment-13066733 ]
Harsh J commented on MAPREDUCE-2623:
------------------------------------
Failing test {{TestRecoveryManager}} does not seem to be related to the patch. It runs fine locally for me with patch applied:
{code}
$ ant -Dtestcase=TestRecoveryManager test-core
…
[junit] Running org.apache.hadoop.mapred.TestRecoveryManager
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 273.575 sec
…
BUILD SUCCESSFUL
Total time: 4 minutes 57 seconds
{code}
It is probably timing out due to a high amount of time used.
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J updated MAPREDUCE-2623:
-------------------------------
Status: In Progress (was: Patch Available)
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067694#comment-13067694 ]
Hudson commented on MAPREDUCE-2623:
-----------------------------------
Integrated in Hadoop-Mapreduce-trunk #742 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/742/])
MAPREDUCE-2623. Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder. Contributed by Harsh J Chouraria
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1147981
Files :
* /hadoop/common/trunk/mapreduce/CHANGES.txt
* /hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J updated MAPREDUCE-2623:
-------------------------------
Attachment: MAPREDUCE-2623.r1.diff
(Saw it was unassigned, so picked it up!)
This should cover the change. I ran {{TestJobName}}, which uses it, and it succeeded. Lets see if QA says the same…
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055487#comment-13055487 ]
Hadoop QA commented on MAPREDUCE-2623:
--------------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12483918/MAPREDUCE-2623.r1.diff
against trunk revision 1139400.
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these core unit tests:
org.apache.hadoop.cli.TestMRCLI
org.apache.hadoop.fs.TestFileSystem
org.apache.hadoop.mapred.TestClusterMapReduceTestCase
org.apache.hadoop.mapred.TestJobStatusPersistency
-1 contrib tests. The patch failed contrib unit tests.
+1 system test framework. The patch passed system test framework compile.
Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/425//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/425//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/425//console
This message is automatically generated.
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066726#comment-13066726 ]
Hadoop QA commented on MAPREDUCE-2623:
--------------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12483950/MAPREDUCE-2623.r2.diff
against trunk revision 1146517.
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
-1 findbugs. The patch appears to introduce 1 new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these core unit tests:
org.apache.hadoop.cli.TestMRCLI
org.apache.hadoop.fs.TestFileSystem
org.apache.hadoop.mapred.TestRecoveryManager
-1 contrib tests. The patch failed contrib unit tests.
+1 system test framework. The patch passed system test framework compile.
Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/475//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/475//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/475//console
This message is automatically generated.
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J updated MAPREDUCE-2623:
-------------------------------
Fix Version/s: 0.23.0
Status: Patch Available (was: Open)
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated MAPREDUCE-2623:
-----------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I've committed this. Thanks Harsh!
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067173#comment-13067173 ]
Hudson commented on MAPREDUCE-2623:
-----------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #747 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/747/])
MAPREDUCE-2623. Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder. Contributed by Harsh J Chouraria
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1147981
Files :
* /hadoop/common/trunk/mapreduce/CHANGES.txt
* /hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/mapred/ClusterMapReduceTestCase.java
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J updated MAPREDUCE-2623:
-------------------------------
Status: Patch Available (was: In Progress)
Looks like these tests pass on the trunk now, w/ patch:
{code}
[junit] Running org.apache.hadoop.mapred.TestJobStatusPersistency
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 67.398 sec
[junit] Running org.apache.hadoop.mapred.TestClusterMapReduceTestCase
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 64.65 sec
{code}
Marking as PA.
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff, MAPREDUCE-2623.r2.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (MAPREDUCE-2623) Update ClusterMapReduceTestCase
to use MiniDFSCluster.Builder
Posted by "Harsh J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J reassigned MAPREDUCE-2623:
----------------------------------
Assignee: Harsh J
> Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder
> -------------------------------------------------------------
>
> Key: MAPREDUCE-2623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2623
> Project: Hadoop Map/Reduce
> Issue Type: Task
> Components: test
> Affects Versions: 0.23.0
> Reporter: Jim Plush
> Assignee: Harsh J
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2623.r1.diff
>
>
> Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira