use of alluxio.conf.InstancedConfiguration in project alluxio by Alluxio.
the class JobShell method main.
/**
* Main method, starts a new JobShell.
*
* @param argv array of arguments given by the user's input from the terminal
*/
public static void main(String[] argv) throws IOException {
int ret;
InstancedConfiguration conf = new InstancedConfiguration(ConfigurationUtils.defaults());
if (!ConfigurationUtils.masterHostConfigured(conf) && argv.length > 0) {
System.out.println(ConfigurationUtils.getMasterHostNotConfiguredMessage("Alluxio job shell"));
System.exit(1);
}
try (JobShell shell = new JobShell(conf)) {
ret = shell.run(argv);
}
System.exit(ret);
}
use of alluxio.conf.InstancedConfiguration in project alluxio by Alluxio.
the class AlluxioWorkerMonitor method main.
/**
* Starts the Alluxio worker monitor.
*
* @param args command line arguments, should be empty
*/
public static void main(String[] args) {
if (args.length != 0) {
LOG.info("java -cp {} {}", RuntimeConstants.ALLUXIO_JAR, AlluxioWorkerMonitor.class.getCanonicalName());
LOG.warn("ignoring arguments");
}
AlluxioConfiguration conf = new InstancedConfiguration(ConfigurationUtils.defaults());
HealthCheckClient client = new WorkerHealthCheckClient(NetworkAddressUtils.getConnectAddress(NetworkAddressUtils.ServiceType.WORKER_RPC, conf), ONE_MIN_EXP_BACKOFF, conf);
if (!client.isServing()) {
System.exit(1);
}
System.exit(0);
}
use of alluxio.conf.InstancedConfiguration in project alluxio by Alluxio.
the class AlluxioJobWorkerMonitor method main.
/**
* Starts the Alluxio job_worker monitor.
*
* @param args command line arguments, should be empty
*/
public static void main(String[] args) {
if (args.length != 0) {
LOG.info("java -cp {} {}", RuntimeConstants.ALLUXIO_JAR, AlluxioJobWorkerMonitor.class.getCanonicalName());
LOG.warn("ignoring arguments");
}
AlluxioConfiguration conf = new InstancedConfiguration(ConfigurationUtils.defaults());
HealthCheckClient client = new JobWorkerHealthCheckClient(NetworkAddressUtils.getConnectAddress(NetworkAddressUtils.ServiceType.JOB_WORKER_RPC, conf), AlluxioWorkerMonitor.ONE_MIN_EXP_BACKOFF, conf);
if (!client.isServing()) {
System.exit(1);
}
System.exit(0);
}
use of alluxio.conf.InstancedConfiguration in project alluxio by Alluxio.
the class HdfsFileInputStreamIntegrationTest method createUfsInStream.
private void createUfsInStream(ReadType readType) throws Exception {
InstancedConfiguration conf = new InstancedConfiguration(ServerConfiguration.copyProperties());
conf.set(PropertyKey.USER_FILE_READ_TYPE_DEFAULT, readType.name());
FileSystem fs = FileSystem.Factory.create(conf);
FileSystemTestUtils.createByteFile(fs, UFS_ONLY_FILE, WritePType.THROUGH, FILE_LEN);
mUfsInputStream = new HdfsFileInputStream(fs, new AlluxioURI(UFS_ONLY_FILE), null);
}
Aggregations