Describes the service configuration files that Warden supports.
The warden.conf configuration file is associated with the standard
services that are provided by HPE Ezmeral Data Fabric. Warden supports service
monitoring for additional services.
Each of these supported services requires a configuration file,
warden.<servicename>.conf, which is included with the package for
that service. When you install any of these service packages, its corresponding
configuration file is stored in /opt/mapr/conf/conf.d. The
configuration files and their packages are as follows:
warden.collectd.confwarden.drill-bits.confwarden.elasticsearch.confwarden.fluentd.confwarden.gateway.confwarden.grafana.confwarden.hue.confwarden.httpfs.confwarden.hbasethrift.confwarden.hbase-rest.confwarden.historyserver.confwarden.hivemeta.confwarden.hs2.confwarden.kibana.confwarden.nodemanager.confwarden.oozie.confwarden.opentsdb.confwarden.resourcemanager.confwarden.sentry.confwarden.spark-master.confYou can configure the following properties in the
warden.<servicename>.conf file:
serviceName:N[depServiceName].Values for N =
1 or allstart command.stop command.BACKGROUND or
INLINE.MAPR_MAPREDUCE_MODE=default. You can include a
comma-separated list of environment variables.
For example,
service.env=MAPR_MAPREDUCE_MODE=default,ABC=1,XYZ=2. For example,
service.process.type=JAVA indicates that the process is a
Java process.
service.ui.port property. For
example, enter /service1 for this property and then
enter 8080 in the service.ui.port
property to provide the following UI link for this service in the MCS:
http://<hostname>:8080/service1service.uri
property.The following memory parameters are used to reserve memory for the service:
The service.<servicename>.heapsize.percent parameter
controls the percentage of system memory allocated to the named
service.
The service.<servicename>.heapsize.max parameter
defines the maximum heapsize used when invoking the
service.
The service.<servicename>.heapsize.min parameter
defines the minimum heapsize used when invoking the
service.
For example, the service.command.gateway.heapsize.percent,
service.command.gateway.heapsize.max, and
service.command.gateway.heapsize.min parameters in the
warden.gateway.conf file control the amount of memory that Warden
allocates to the gateway service before allocating memory to other services.
The actual heap size used when
invoking a service is a combination of the three parameters
according to the formula max(heapsize.min, min(heapsize.max,
total-memory * heapsize.percent / 100)).
The hiveserver2 configuration
file, warden.hs2.conf, looks like this:
services=hs2:1
service.displayname=HiveServer2
service.command.start=/opt/mapr/hive/hive-0.13/bin/hive --start --service hiveserver2
service.command.stop=/opt/mapr/hive/hive-0.13/bin/hive --stop --service hiveserver2
service.command.type=BACKGROUND
service.command.monitorcommand=/opt/mapr/hive/hive-0.13/bin/hive --status --service hiveserver2
service.port=9083
service.ui.port=9083
service.uri=about
service.logs.location=/tmp/mapr
service.process.type=JAVA
When hiveserver2 is installed, the warden.hs2.conf
file is placed in the directory /opt/mapr/conf/conf.d. If Warden is
running, it detects the file and starts the service. If Warden is not running, the file
is picked up when Warden starts. Warden monitors the service and displays the status on
the Control System UI.