Search in sources :

Example 6 with MultiMasterLocalAlluxioCluster

use of alluxio.master.MultiMasterLocalAlluxioCluster in project alluxio by Alluxio.

the class FileSystemMasterFaultToleranceIntegrationTest method before.

@Before
public final void before() throws Exception {
    mMultiMasterLocalAlluxioCluster = new MultiMasterLocalAlluxioCluster(2, 0);
    mMultiMasterLocalAlluxioCluster.initConfiguration(IntegrationTestUtils.getTestName(getClass().getSimpleName(), mTestName.getMethodName()));
    ServerConfiguration.set(PropertyKey.USER_RPC_RETRY_MAX_DURATION, "60sec");
    ServerConfiguration.set(PropertyKey.USER_RPC_RETRY_MAX_SLEEP_MS, "1sec");
    ServerConfiguration.set(PropertyKey.NETWORK_CONNECTION_SERVER_SHUTDOWN_TIMEOUT, "30sec");
    ServerConfiguration.set(PropertyKey.MASTER_JOURNAL_TAILER_SHUTDOWN_QUIET_WAIT_TIME_MS, "0sec");
    ServerConfiguration.set(PropertyKey.SECURITY_LOGIN_USERNAME, TEST_USER);
    mMultiMasterLocalAlluxioCluster.start();
}
Also used : MultiMasterLocalAlluxioCluster(alluxio.master.MultiMasterLocalAlluxioCluster) Before(org.junit.Before)

Example 7 with MultiMasterLocalAlluxioCluster

use of alluxio.master.MultiMasterLocalAlluxioCluster in project alluxio by Alluxio.

the class MasterFailoverIntegrationTest method before.

@Before
public final void before() throws Exception {
    mMultiMasterLocalAlluxioCluster = new MultiMasterLocalAlluxioCluster(2);
    mMultiMasterLocalAlluxioCluster.initConfiguration(IntegrationTestUtils.getTestName(getClass().getSimpleName(), mTestName.getMethodName()));
    ServerConfiguration.set(PropertyKey.USER_RPC_RETRY_MAX_DURATION, "60sec");
    ServerConfiguration.set(PropertyKey.USER_RPC_RETRY_MAX_SLEEP_MS, "1sec");
    ServerConfiguration.set(PropertyKey.NETWORK_CONNECTION_SERVER_SHUTDOWN_TIMEOUT, "30sec");
    ServerConfiguration.set(PropertyKey.MASTER_JOURNAL_TAILER_SHUTDOWN_QUIET_WAIT_TIME_MS, "0sec");
    ServerConfiguration.set(PropertyKey.MASTER_MOUNT_TABLE_ROOT_UFS, DelegatingUnderFileSystemFactory.DELEGATING_SCHEME + "://" + LOCAL_UFS_PATH);
    mMultiMasterLocalAlluxioCluster.start();
    mFileSystem = mMultiMasterLocalAlluxioCluster.getClient();
}
Also used : MultiMasterLocalAlluxioCluster(alluxio.master.MultiMasterLocalAlluxioCluster) Before(org.junit.Before)

Aggregations

MultiMasterLocalAlluxioCluster (alluxio.master.MultiMasterLocalAlluxioCluster)7 Before (org.junit.Before)5 BaseIntegrationTest (alluxio.testutils.BaseIntegrationTest)2 Test (org.junit.Test)2 LocalAlluxioJobCluster (alluxio.master.LocalAlluxioJobCluster)1 BlockMaster (alluxio.master.block.BlockMaster)1 SleepingUnderFileSystemFactory (alluxio.testutils.underfs.sleeping.SleepingUnderFileSystemFactory)1 UnderFileSystemConfiguration (alluxio.underfs.UnderFileSystemConfiguration)1 UnderFileSystemFactory (alluxio.underfs.UnderFileSystemFactory)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 PrintStream (java.io.PrintStream)1