|
|
|
@ -72,6 +72,28 @@ public final class Constants {
|
|
|
|
|
*/ |
|
|
|
|
public static final String COMMON_PROPERTIES_PATH = "/common.properties"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* alter properties |
|
|
|
|
*/ |
|
|
|
|
public static final String ALERT_PLUGIN_BINDING = "alert.plugin.binding"; |
|
|
|
|
public static final String ALERT_PLUGIN_DIR = "alert.plugin.dir"; |
|
|
|
|
public static final int ALERT_RPC_PORT = 50052; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* registry properties |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_MASTERS = "/nodes/master"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_WORKERS = "/nodes/worker"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_DEAD_SERVERS = "/dead-servers"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_NODE = "/nodes"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_MASTERS = "/lock/masters"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_MASTERS = "/lock/failover/masters"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_WORKERS = "/lock/failover/workers"; |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_STARTUP_MASTERS = "/lock/failover/startup-masters"; |
|
|
|
|
public static final String REGISTRY_PLUGIN_BINDING = "registry.plugin.binding"; |
|
|
|
|
public static final String REGISTRY_PLUGIN_DIR = "registry.plugin.dir"; |
|
|
|
|
public static final String REGISTRY_SERVERS = "registry.servers"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* fs.defaultFS |
|
|
|
|
*/ |
|
|
|
@ -183,58 +205,11 @@ public final class Constants {
|
|
|
|
|
*/ |
|
|
|
|
public static final String RESOURCE_STORAGE_TYPE = "resource.storage.type"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* MasterServer directory registered in zookeeper |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_MASTERS = "/nodes/master"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* WorkerServer directory registered in zookeeper |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_WORKERS = "/nodes/worker"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* all servers directory registered in zookeeper |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_DEAD_SERVERS = "/dead-servers"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* registry node prefix |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_NODE = "/nodes"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* MasterServer lock directory registered in zookeeper |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_MASTERS = "/lock/masters"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* MasterServer failover directory registered in zookeeper |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_MASTERS = "/lock/failover/masters"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* WorkerServer failover directory registered in zookeeper |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_WORKERS = "/lock/failover/workers"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* MasterServer startup failover runing and fault tolerance process |
|
|
|
|
*/ |
|
|
|
|
public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_STARTUP_MASTERS = "/lock/failover/startup-masters"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* comma , |
|
|
|
|
*/ |
|
|
|
|
public static final String COMMA = ","; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* slash / |
|
|
|
|
*/ |
|
|
|
|
public static final String SLASH = "/"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* COLON : |
|
|
|
|
*/ |
|
|
|
@ -416,11 +391,6 @@ public final class Constants {
|
|
|
|
|
*/ |
|
|
|
|
public static final int RPC_PORT = 50051; |
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
* alert rpc port |
|
|
|
|
*/ |
|
|
|
|
public static final int ALERT_RPC_PORT = 50052; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* forbid running task |
|
|
|
|
*/ |
|
|
|
|