Chapter 3.  Configuration

Table of Contents

Mandatory
Databases
Non-mandatory
Spark
Machine learning

Sample files are not yet available.

Configure with stockstat.xml: See sample file stockstat.xml, it contains the complete configuration structure.

Mandatory

Databases

You may choose to connect to PostgreSQL directly with Hibernate, then set database.hibernate enable=true. Or you may connect to PostgreSQL more indirectly via Spark, then set database.spark enable=true, but then you will also need to add a Spark service pointed to by the configuration database.spark.sparkmaster Hibernate connection is default localhost jdbc postgres, but is settable with connection.url. With eventual environment variable SPARK_DRIVER_HOST ( = `hostname -i`), set the ip of the spark client (for Kubernetes based).