Skip to content

Commit

Permalink
remove manual inserts to node tables, some wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jan 10, 2019
1 parent c3e84a7 commit aa8bbef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
3 changes: 0 additions & 3 deletions symmetric-assemble/src/asciidoc/setup.ad
Expand Up @@ -25,9 +25,6 @@ endif::pro[]
include::setup/engine-properties.ad[]

ifndef::pro[]
=== Master Node Setup

include::setup/master-node-setup.ad[]

=== Adding Nodes

Expand Down
15 changes: 7 additions & 8 deletions symmetric-assemble/src/asciidoc/tutorials/demo.ad
Expand Up @@ -27,12 +27,12 @@ ifndef::pro[]
Once SymmetricDS has been installed, we will need to populate the database with the demo configuration and sym tables. To do this, execute the following steps:


* First, open a command prompt and navigate to the `samples` subdirectory of your SymmetricDS installation.
* Next we need to move over the `corp-000.properties`, `store-001.properties` and `store-002.properties` files from the `samples/` folder to the `engines/` folder. Each properties file in the engines directory represents a SymmetricDS node. To do this, run the following:
* Open a command prompt and navigate to the `samples` subdirectory of your SymmetricDS installation.
* Copy the `corp-000.properties`, `store-001.properties` and `store-002.properties` files from the `samples/` folder to the `engines/` folder. Each properties file in the engines directory represents a SymmetricDS node.
+
[source,cli]
----
mv corp-000.properties store-001.properties store-002.properties ../engines
cp corp-000.properties store-001.properties store-002.properties ../engines
----
+
* Create the sample tables for items, prices, and sales, in the root database by executing the following command:
Expand All @@ -42,22 +42,21 @@ mv corp-000.properties store-001.properties store-002.properties ../engines
../bin/dbimport --engine corp-000 --format XML --alter-case create_sample.xml
----
+
* Next, create the SymmetricDS tables. Tables are automatically created when the server starts for the first time. There is
also a utility that can be used to create the SymmetricDS tables. Please run the following.
* Create the SymmetricDS tables.
+
[source, cli]
----
../bin/symadmin --engine corp-000 create-sym-tables
----
+
* Load the SymmetricDS configuration and sample item and transaction data into the root node database by executing:
* Load the SymmetricDS configuration and sample data into the root node database.
+
[source, cli]
----
../bin/dbimport --engine corp-000 insert_sample.sql
----

We will now start the SymmetricDS instance. All three nodes run in the same instance. From the command prompt,
Start the SymmetricDS instance. All three nodes run in the same instance. From the command prompt,
navigate to the SymmetricDS home directory and run the following command.

[source, cli]
Expand All @@ -72,7 +71,7 @@ The log output will go to both the command line and the `logs/symmetric.log`. L

[source, cli]
----
2015-01-10 10:28:09,604 INFO [corp-000] [AbstractSymmetricEngine] [symmetric-engine-startup-0] Started SymmetricDS
INFO [corp-000] [AbstractSymmetricEngine] [symmetric-engine-startup-0] Started SymmetricDS
----

* Watch the logging output of the store nodes to see it successfully register with the corp node.
Expand Down

0 comments on commit aa8bbef

Please sign in to comment.