This contains all information to run an application
Jar file container in the cluster
Jar file container in the cluster
A meaningful name to represent this jar
Where the jar file is stored.
This contains context information when starting an AppMaster
This contains context information when starting an AppMaster
application instance id assigned, it is unique in the cluster
The username who submitted this application
Resouce allocated to start this AppMaster daemon. AppMaster are allowed to request more resource from Master.
application Jar. If the jar is already in classpath, then it can be None.
The proxy to master actor, it bridges the messages between appmaster and master
AppMaster are required to send this data to Master by when doing RegisterAppMaster.
Each job, streaming or not streaming, need to provide an Application class.
Each job, streaming or not streaming, need to provide an Application class. The master uses this class to start AppMaster.
Used for verification.
Used for verification. All AppMaster must extend this interface
Data Source of ClusterConfig
Data Source of ClusterConfig
Please use ClusterConfigSource.apply(filePath) to construct this object
Serves as the context to start an Executor JVM.
JVM configurations to start an Executor JVM.
JVM configurations to start an Executor JVM.
When executor is created by a worker JVM, executor automatically inherits parent worker's classpath. Sometimes, you still want to add some extra classpath, you can do this by specify classPath option.
java arguments like -Dxx=yy
Executor main class name like org.apache.gearpump.xx.AppMaster
Executor command line arguments
application jar
Akka config used to initialize the actor system of this executor. It uses org.apache.gearpump.util.Constants.GEARPUMP_CUSTOM_CONFIG_FILE to pass the config to executor process
Immutable configuration
All Gearpump application should use this class to load configurations.
All Gearpump application should use this class to load configurations.
Compared with Akka built-in com.typesafe.config.ConfigFactory, this class also resolve config from file gear.conf and geardefault.conf.
Overriding order:
System Properties > Custom configuration file (by using system property -Dgearpump.config.file) > > gear.conf > geardefault.conf > reference.conf
This contains all information to run an application
The name of this application
The class name of AppMaster Actor
user configuration.
User provided cluster config, it overrides gear.conf when starting new applications. In most cases, you should not need to change it. If you do really need to change it, please use ClusterConfigSource(filePath) to construct the object, while filePath points to the .conf file.