Skip to content

Commit

Permalink
Update h2-db.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantshekhar committed Jan 2, 2018
1 parent 545e853 commit f45abc7
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions docs/installation-upgrading/configuration/h2-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ The H2 database is used for storing the metadata of the DataSets, Workflows, Use
Execute the following steps on your CLI:


* Mac/Linux
* cd <install_dir>/sparkflows-fire-1.4.1
* ./create-h2-db.sh
* Mac/Linux::

* Windows
* cd <install_dir>\sparkflows-fire-1.4.1
* .\create-h2-db.bat
cd <install_dir>/sparkflows-fire-1.4.1
./create-h2-db.sh

* Windows::

cd <install_dir>\sparkflows-fire-1.4.1
.\create-h2-db.bat


If you would like to use different values for the db, username, password, update them in <install_dir>/sparkflows-fire-1.4.0/conf/db.properties::
If you would like to use different values for the db, username, password, update them in ``<install_dir>/sparkflows-fire-1.4.0/conf/db.properties``::


spring.datasource.url = jdbc:h2:file:~/firedb
Expand All @@ -42,14 +44,13 @@ If you would like to use different values for the db, username, password, update
Note: firedb is created in the users home directory and the name is firedb.mv.db




Recreating H2 database
----------------------

If you need to recreate the H2 database, follow the steps below to create a new empty H2 DB:
If you need to recreate the H2 database, follow the steps below to create a new empty H2 DB::

* Stop the running Fire server
* Move the existing firedb files to another temp location on your disk.
* Recreate the H2 DB using the steps in the above section for creating a brand new install.
Stop the running Fire server
Move the existing firedb files to another temp location on your disk.
Recreate the H2 DB using the steps in the above section for creating a brand new install.

0 comments on commit f45abc7

Please sign in to comment.