Search in sources :

Example 1 with HcfsTestConnectorInterface

use of org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface in project glusterfs-hadoop by gluster.

the class HcfsTestGetFileBlockLocations method setUp.

@Override
protected void setUp() throws IOException {
    try {
        HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
        Configuration cfg = connector.createConfiguration();
        cfg.writeXml(new FileOutputStream(new File("/tmp/core-site.xml")));
        Configuration.addDefaultResource("/tmp/core-site.xml");
        cfg.writeXml(System.out);
    } catch (Exception e) {
        throw new IOException(e);
    }
    super.setUp();
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) HcfsTestConnectorInterface(org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface) FileOutputStream(java.io.FileOutputStream) IOException(java.io.IOException) File(java.io.File) IOException(java.io.IOException)

Example 2 with HcfsTestConnectorInterface

use of org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface in project glusterfs-hadoop by gluster.

the class HcfsUmaskTest method setup.

@BeforeClass
public static void setup() throws Exception {
    HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
    fs = connector.create();
}
Also used : HcfsTestConnectorInterface(org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface) BeforeClass(org.junit.BeforeClass)

Example 3 with HcfsTestConnectorInterface

use of org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface in project glusterfs-hadoop by gluster.

the class GlusterMultipleVolumeTest method setup.

@BeforeClass
public static void setup() throws Exception {
    HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
    config = connector.createConfiguration();
}
Also used : HcfsTestConnectorInterface(org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface) BeforeClass(org.junit.BeforeClass)

Example 4 with HcfsTestConnectorInterface

use of org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface in project glusterfs-hadoop by gluster.

the class HCFSPerformanceIOTests method setup.

@BeforeClass
public static void setup() throws Exception {
    HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
    fs = connector.create();
}
Also used : HcfsTestConnectorInterface(org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface) BeforeClass(org.junit.BeforeClass)

Example 5 with HcfsTestConnectorInterface

use of org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface in project glusterfs-hadoop by gluster.

the class HcfsFileSystemTest method setup.

@BeforeClass
public static void setup() throws Exception {
    HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
    fs = connector.create();
}
Also used : HcfsTestConnectorInterface(org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface) BeforeClass(org.junit.BeforeClass)

Aggregations

HcfsTestConnectorInterface (org.apache.hadoop.fs.test.connector.HcfsTestConnectorInterface)7 BeforeClass (org.junit.BeforeClass)4 Before (org.junit.Before)2 File (java.io.File)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 Configuration (org.apache.hadoop.conf.Configuration)1