You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2015/08/15 10:56:54 UTC
svn commit: r1696027 -
/incubator/singa/site/trunk/content/markdown/quick-start.md
Author: wangsh
Date: Sat Aug 15 08:56:53 2015
New Revision: 1696027
URL: http://svn.apache.org/r1696027
Log:
update zookeeper guide in quick-start
Modified:
incubator/singa/site/trunk/content/markdown/quick-start.md
Modified: incubator/singa/site/trunk/content/markdown/quick-start.md
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/content/markdown/quick-start.md?rev=1696027&r1=1696026&r2=1696027&view=diff
==============================================================================
--- incubator/singa/site/trunk/content/markdown/quick-start.md (original)
+++ incubator/singa/site/trunk/content/markdown/quick-start.md Sat Aug 15 08:56:53 2015
@@ -65,12 +65,29 @@ job configuration file (*job.conf*). If
modules, then you have to register your modules in the [driver
program](user-guide.html).
+#### Start Zookeeper
+
+SINGA uses [zookeeper](https://zookeeper.apache.org/) to coordinate the
+training.
+Please make sure the zookeeper service is on before running SINGA.
+
+If you installed the zookeeper using our thirdparty script, you can
+simply start it by:
+
+ #goto top level folder
+ cd ../..
+ ./bin/zk-service start
+
+Otherwise, if you launched a zookeeper by yourself but not used the
+default port, please edit the `conf/singa.conf`:
+
+ zookeeper_host: "localhost:YOUR_PORT"
+
#### Start Training
Start the training by running:
#goto top level folder
- cd ../..
./bin/singa-run.sh -workspace=examples/cifar10
Note: we have changed the command line arguments from `-cluster.. -model..`
@@ -80,7 +97,6 @@ configuration.
Some training information will be shown on the screen like:
- Starting zookeeper ... already running as process 21660.
Generate host list to SINGA_ROOT/examples/cifar10/job.hosts
Generate job id to SINGA_ROOT/examples/cifar10/job.id [job_id = 1]
Executing : ./singa -workspace=SINGA_ROOT/examples/cifar10 -job=1
@@ -161,7 +177,7 @@ To run SINGA in a cluster,
singa-node3
...
- 2. The zookeeper location must be configured in conf/singa.conf, e.g.,
+ 2. The zookeeper must be on and configured in conf/singa.conf, e.g.,
zookeeper_host: "singa-node1:2181"
@@ -254,26 +270,6 @@ All other settings are the same as runni
./bin/singa-run.sh -model=examples/cifar10/model.conf -cluster=examples/cifar10/cluster.conf
-
-
-#### Training in a cluster
-
-To run the distributed Hogwild framework, configure the cluster.conf as:
-
- nworker_groups: 2
- nserver_groups: 2
-
-and start one process as,
-
- ./bin/singa-run.sh -model=examples/cifar10/model.conf -cluster=examples/cifar10/cluster.conf
-
-and then start another process as,
-
- ./singa -model=examples/cifar10/model.conf -cluster=examples/cifar10/cluster.conf
-
-Note that the two commands are different! The first one will start the zookeeper. Currently we assume
-that the example/cifar10 folder is in NFS.
-
### Run with Mesos
*in working*...