This is an automated email from the ASF dual-hosted git repository.

apucher pushed a commit to branch docker-pinot-quickstart-thirdeye
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to 
refs/heads/docker-pinot-quickstart-thirdeye by this push:
     new 4ddd010  full front and backend support with dedicated db server
4ddd010 is described below

commit 4ddd010c8fe10e082c8c395617d0fc3f2c686c02
Author: Alexander Pucher <[email protected]>
AuthorDate: Tue Mar 3 15:50:02 2020 -0800

    full front and backend support with dedicated db server
---
 docker/images/pinot-thirdeye/bin/start-thirdeye.sh    |  16 +++++++++-------
 .../anomaly-functions/anomalyClassifier.properties    |   0
 .../config/pinot-quickstart/dashboard.yml             |   2 +-
 .../anomaly-functions/anomalyClassifier.properties    |   0
 .../config/pinot-quickstart/detector.yml              |  12 ++++++------
 .../pinot-thirdeye/config/pinot-quickstart/h2db.mv.db | Bin 2949120 -> 0 bytes
 .../config/pinot-quickstart/holiday-loader-key.json   |  13 +++++++++++++
 .../config/pinot-quickstart/persistence.yml           |   2 +-
 8 files changed, 30 insertions(+), 15 deletions(-)

diff --git a/docker/images/pinot-thirdeye/bin/start-thirdeye.sh 
b/docker/images/pinot-thirdeye/bin/start-thirdeye.sh
index de43e25..af1ac78 100755
--- a/docker/images/pinot-thirdeye/bin/start-thirdeye.sh
+++ b/docker/images/pinot-thirdeye/bin/start-thirdeye.sh
@@ -20,18 +20,20 @@
 
 if [[ "$#" -gt 0 ]]
 then
-  CONFIG_DIR=./config/$1
+  CONFIG_DIR="./config/$1"
 else
   CONFIG_DIR="./config/default"
 fi
 
-echo "Running thirdeye backend with config: ${CONFIG_DIR}"
-java -cp "./bin/thirdeye-pinot-1.0-SNAPSHOT.jar" 
org.apache.pinot.thirdeye.anomaly.ThirdEyeAnomalyApplication ${CONFIG_DIR} &
+echo "Starting H2 database server"
+java -cp "./bin/thirdeye-pinot-1.0-SNAPSHOT.jar" org.h2.tools.Server -tcp 
-baseDir "${CONFIG_DIR}/.." &
+sleep 1
 
-sleep 30
-kill %1
+echo "Creating ThirdEye database schema"
+java -cp "./bin/thirdeye-pinot-1.0-SNAPSHOT.jar" org.h2.tools.RunScript -user 
"sa" -password "sa" -url "jdbc:h2:tcp:localhost/h2db" -script 
"zip:./bin/thirdeye-pinot-1.0-SNAPSHOT.jar!/schema/create-schema.sql"
 
-echo "Running thirdeye frontend with config: ${CONFIG_DIR}"
-java -cp "./bin/thirdeye-pinot-1.0-SNAPSHOT.jar" 
org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication ${CONFIG_DIR} &
+echo "Running thirdeye frontend and backend with config: ${CONFIG_DIR}"
+java -cp "./bin/thirdeye-pinot-1.0-SNAPSHOT.jar" 
org.apache.pinot.thirdeye.anomaly.ThirdEyeAnomalyApplication "${CONFIG_DIR}" &
+java -cp "./bin/thirdeye-pinot-1.0-SNAPSHOT.jar" 
org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication 
"${CONFIG_DIR}" &
 
 wait
diff --git 
a/docker/images/pinot-thirdeye/config/ephemeral/detector-config/anomaly-functions/anomalyClassifier.properties
 
b/docker/images/pinot-thirdeye/config/ephemeral/detector-config/anomaly-functions/anomalyClassifier.properties
new file mode 100644
index 0000000..e69de29
diff --git a/docker/images/pinot-thirdeye/config/pinot-quickstart/dashboard.yml 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/dashboard.yml
index 09c4e86..b7b4b47 100644
--- a/docker/images/pinot-thirdeye/config/pinot-quickstart/dashboard.yml
+++ b/docker/images/pinot-thirdeye/config/pinot-quickstart/dashboard.yml
@@ -16,7 +16,7 @@ rootCause:
     - 
org.apache.pinot.thirdeye.dashboard.resources.v2.rootcause.DimensionEntityFormatter
     - 
org.apache.pinot.thirdeye.dashboard.resources.v2.rootcause.ServiceEntityFormatter
     - 
org.apache.pinot.thirdeye.dashboard.resources.v2.rootcause.DefaultEventEntityFormatter
-dashboardHost: "http://thirdeye-dashboard:1426";
+dashboardHost: "http://localhost:1426";
 failureFromAddress: thirdeye@localhost
 failureToAddress: user@localhost
 alerterConfiguration:
diff --git 
a/docker/images/pinot-thirdeye/config/pinot-quickstart/detector-config/anomaly-functions/anomalyClassifier.properties
 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/detector-config/anomaly-functions/anomalyClassifier.properties
new file mode 100644
index 0000000..e69de29
diff --git a/docker/images/pinot-thirdeye/config/pinot-quickstart/detector.yml 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/detector.yml
index 0f0975e..9556cb1 100644
--- a/docker/images/pinot-thirdeye/config/pinot-quickstart/detector.yml
+++ b/docker/images/pinot-thirdeye/config/pinot-quickstart/detector.yml
@@ -17,13 +17,13 @@ alert: false
 autoload: true
 classifier: false
 holidayEventsLoader: false
-monitor: false
+monitor: true
 pinotProxy: false
-scheduler: false
-worker: false
-detectionPipeline: false
-detectionAlert: false
-dashboardHost: "http://thirdeye-dashboard:1426";
+scheduler: true
+worker: true
+detectionPipeline: true
+detectionAlert: true
+dashboardHost: "http://localhost:1426";
 id: 0
 alerterConfiguration:
   smtpConfiguration:
diff --git a/docker/images/pinot-thirdeye/config/pinot-quickstart/h2db.mv.db 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/h2db.mv.db
deleted file mode 100644
index c59e59c..0000000
Binary files a/docker/images/pinot-thirdeye/config/pinot-quickstart/h2db.mv.db 
and /dev/null differ
diff --git 
a/docker/images/pinot-thirdeye/config/pinot-quickstart/holiday-loader-key.json 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/holiday-loader-key.json
new file mode 100644
index 0000000..20c7011
--- /dev/null
+++ 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/holiday-loader-key.json
@@ -0,0 +1,13 @@
+{
+  "type": "service_account",
+  "project_id": "thirdeye-holiday-calendar",
+  "private_key_id": "45a47061e4083b4cf5b5c0f6fd290b78d0cf55c1",
+  "private_key": "-----BEGIN PRIVATE 
KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC+C07IF0JaAnxj\n4Ka2hsZicwkrPmW8kTBS0O6JKzBu96swPnqXXl3paHg+fLxfqwgT6LHwc8Jxrgt7\nBxgoEfKsQfIVow0q2NhuKr3UTHh1sOYpdZPV5zYBd03xzi/5XFMNRg1Tl3n5qRZY\noOpIBLtiL9sm3TscAx9irVnNEJ+mIWbfkIn91Bbw7pSVKrKRzZnF2Y7zJ10m7UXe\nsFW/TrrfnafTER96SgRE3g8VCzh/uyHklUWXlV1KB0BDf8WAbGfNGnf/Y4EEnPLw\niyPN5OcBc59UHhwRsTxe1sDxtA4L7tZH4T/OmJI0Ruxdqa0Gcp2eumdT22HmkQ0F\nm3FAOX6DAgMBAAECggEARVw9KZwLlGxZ194TGoT//Mh9bTH90
 [...]
+  "client_email": 
"thirdeye-holiday-calen...@thirdeye-holiday-calendar.iam.gserviceaccount.com",
+  "client_id": "113574613297321812404",
+  "auth_uri": "https://accounts.google.com/o/oauth2/auth";,
+  "token_uri": "https://oauth2.googleapis.com/token";,
+  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs";,
+  "client_x509_cert_url": 
"https://www.googleapis.com/robot/v1/metadata/x509/thirdeye-holiday-calendar%40thirdeye-holiday-calendar.iam.gserviceaccount.com";
+}
+
diff --git 
a/docker/images/pinot-thirdeye/config/pinot-quickstart/persistence.yml 
b/docker/images/pinot-thirdeye/config/pinot-quickstart/persistence.yml
index efab492..991d18d 100644
--- a/docker/images/pinot-thirdeye/config/pinot-quickstart/persistence.yml
+++ b/docker/images/pinot-thirdeye/config/pinot-quickstart/persistence.yml
@@ -1,5 +1,5 @@
 databaseConfiguration:
-  url: jdbc:h2:./config/h2db
+  url: jdbc:h2:tcp://localhost/h2db
   user: sa
   password: sa
   driver: org.h2.Driver


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to