Skip to content
legend edited this page Feb 28, 2017 · 2 revisions

Config How-to

Here is a short example.

# Required
master_host=master
master_port=10086
comm_port=12306

# Worker information
[worker]
info=worker1:4
info=worker2:4

The example above shows all parameters required by Husky itself. Master will run on a machine named "master". 8 threads will be started, 4 on worker1, and another 4 on worker2. Master listens to 10086, and workers listen to 12306. To run Husky with this configuration, please do the following,

./program --conf=/path/to/config.ini

If you want to cache the log messages from Husky, set the log_dir to enable it.

log_dir=/path/to/log

If Husky is compiled with HDFS support, one may want to provide HDFS information as well. For example, the following in the configuration file tells Husky the host and port of the HDFS namenode.

hdfs_namenode=master
hdfs_namenode_port=9000

You may also pass the arguments in the command line. For example,

./program --conf=/path/to/config.ini --log_dir=/path/to/log --hdfs_namenode=master --hdfs_namenode_port=9000

Arguments in the command line will override those specified in the configuration file.

Clone this wiki locally