You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gu...@apache.org on 2019/10/15 00:47:17 UTC

[pulsar-manager] branch master updated: Make default environment persistent (#197)

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

guangning pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-manager.git


The following commit(s) were added to refs/heads/master by this push:
     new fc0c422  Make default environment persistent (#197)
fc0c422 is described below

commit fc0c4225efdde3bd474035e7437d3f829b0650d5
Author: Enrico Olivelli <eo...@gmail.com>
AuthorDate: Tue Oct 15 02:47:10 2019 +0200

    Make default environment persistent (#197)
    
    - By default start embedded HerdDB in standalone embedded mode
    - By default persist data locally
    - Update HerdDB client/server to 0.12.2
    - Add more examples in the default application.properties
---
 .gitignore                                |  1 +
 gradle.properties                         |  2 +-
 src/main/resources/application.properties | 23 +++++++++++++++--------
 3 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/.gitignore b/.gitignore
index 0e3afd8..a892a4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,4 @@ build/
 *.db
 front-end/data/
 *.log
+dbdata
diff --git a/gradle.properties b/gradle.properties
index 52301f6..5e3de66 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -14,4 +14,4 @@ apiMockitoVersion=1.7.1
 mockitoJunit4Version=1.7.1
 gsonVersion=2.8.2
 postgresqlVersion=42.2.5
-herddbVersion=0.12.0
+herddbVersion=0.12.2
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 1e2e276..f92afb6 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -35,13 +35,20 @@ mybatis.type-aliases-package=io.streamnative.pulsar.manager
 #spring.datasource.password=
 
 # HerdDB JDBC Driver
- spring.datasource.driver-class-name=herddb.jdbc.Driver
- HerdDB - local in memory-only (check docs for starting an embedded server or embedded replicated server)
- spring.datasource.url=jdbc:herddb:server:localhost:7000?server.base.dir=.
- spring.datasource.schema=classpath:/META-INF/sql/herddb-schema.sql
- spring.datasource.username=sa
- spring.datasource.password=hdb
- spring.datasource.initialization-mode=always
+spring.datasource.driver-class-name=herddb.jdbc.Driver
+# HerdDB - local in memory-only
+#spring.datasource.url=jdbc:herddb:local
+# HerdDB - start embedded server, data persisted on local disk (directory 'dbdata'), listening on localhost:7000
+spring.datasource.url=jdbc:herddb:server:localhost:7000?server.start=true&server.base.dir=dbdata
+# HerdDB - connect to standalone server at localhost:7000
+#spring.datasource.url=jdbc:herddb:server:localhost:7000
+# HerdDB - connect to cluster, uses ZooKeeper for service discovery
+#spring.datasource.url=jdbc:herddb:zookeeper:localhost:2181/herd
+
+spring.datasource.schema=classpath:/META-INF/sql/herddb-schema.sql
+spring.datasource.username=sa
+spring.datasource.password=hdb
+spring.datasource.initialization-mode=always
 
 # postgresql configuration
 #spring.datasource.driver-class-name=org.postgresql.Driver
@@ -57,7 +64,7 @@ zuul.routes.lookup.url=http://localhost:8080/lookup/
         
 # pagehelper plugin
 #pagehelper.helperDialect=sqlite
-# force 'mysql' for HerdDB
+# force 'mysql' for HerdDB, comment out for postgresql
 pagehelper.helperDialect=mysql
 
 backend.directRequestBroker=true