HADOOP-11587. TestMapFile#testMainMethodMapFile creates test files in hadoop-common project root. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
9b0ba59b82
commit
bc5aa7d0b1
|
@ -917,6 +917,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HADOOP-10953. NetworkTopology#add calls NetworkTopology#toString without
|
HADOOP-10953. NetworkTopology#add calls NetworkTopology#toString without
|
||||||
holding the netlock (Liang Xie via Colin P. McCabe)
|
holding the netlock (Liang Xie via Colin P. McCabe)
|
||||||
|
|
||||||
|
HADOOP-11587. TestMapFile#testMainMethodMapFile creates test files in
|
||||||
|
hadoop-common project root. (Xiaoyu Yao via wheat9)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -602,10 +602,9 @@ public class TestMapFile {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMainMethodMapFile() {
|
public void testMainMethodMapFile() {
|
||||||
String path = new Path(TEST_DIR, "mainMethodMapFile.mapfile").toString();
|
|
||||||
String inFile = "mainMethodMapFile.mapfile";
|
String inFile = "mainMethodMapFile.mapfile";
|
||||||
String outFile = "mainMethodMapFile.mapfile";
|
String path = new Path(TEST_DIR, inFile).toString();
|
||||||
String[] args = { path, outFile };
|
String[] args = { path, path };
|
||||||
MapFile.Writer writer = null;
|
MapFile.Writer writer = null;
|
||||||
try {
|
try {
|
||||||
writer = createWriter(inFile, IntWritable.class, Text.class);
|
writer = createWriter(inFile, IntWritable.class, Text.class);
|
||||||
|
|
Loading…
Reference in New Issue