|
@@ -56,8 +56,6 @@ import javax.xml.parsers.ParserConfigurationException;
|
|
|
import javax.xml.parsers.SAXParser;
|
|
|
import javax.xml.parsers.SAXParserFactory;
|
|
|
|
|
|
-import com.google.common.io.Files;
|
|
|
-
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.apache.commons.io.output.NullOutputStream;
|
|
|
import org.apache.commons.logging.Log;
|
|
@@ -87,9 +85,7 @@ import org.apache.log4j.Level;
|
|
|
import org.junit.AfterClass;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.BeforeClass;
|
|
|
-import org.junit.Rule;
|
|
|
import org.junit.Test;
|
|
|
-import org.junit.rules.TemporaryFolder;
|
|
|
import org.xml.sax.InputSource;
|
|
|
import org.xml.sax.SAXException;
|
|
|
import org.xml.sax.helpers.DefaultHandler;
|
|
@@ -116,7 +112,9 @@ public class TestOfflineImageViewer {
|
|
|
// multiple tests.
|
|
|
@BeforeClass
|
|
|
public static void createOriginalFSImage() throws IOException {
|
|
|
- tempDir = Files.createTempDir();
|
|
|
+ tempDir = new File(MiniDFSCluster.getBaseDirectory(), "name1");
|
|
|
+ tempDir.mkdirs();
|
|
|
+
|
|
|
MiniDFSCluster cluster = null;
|
|
|
try {
|
|
|
Configuration conf = new Configuration();
|