use of alluxio.conf.AlluxioConfiguration 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.AlluxioConfiguration 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);
}
Aggregations