-
Notifications
You must be signed in to change notification settings - Fork 55
Config How to
legend edited this page Feb 28, 2017
·
2 revisions
Here is a short example.
# Required
master_host=master
master_port=10086
comm_port=12306
# Worker information
[worker]
info=worker1:4
info=worker2:4The 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.iniIf you want to cache the log messages from Husky, set the log_dir to enable it.
log_dir=/path/to/logIf 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=9000You 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=9000Arguments in the command line will override those specified in the configuration file.