Hello,
I am wrting a simple Unit test, which extends MahoutTestCase. I am using
Mahout 0.9 and Hadoop 1.0.3.
The test is quite simple, it just creates an empty file on HDFS. The entire
coding is the following:
@Test
public void simpleTest() throws IOException{
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
Path filenamePath = new Path("/tmp/tmp.txt");
FSDataOutputStream out = fs.create(filenamePath);
out.close();
}
However, this will fail the MahoutTestCase. In particular, the moment I
added the line 4 (FSDataOutputStream out = fs.create(filenamePath);), this
test would fail.
I am wondering can anyone give me some pointers regarding why this naive
program would fail ?
The error log is attached below.
Thank you very much !
Wei