nupic-default.xml is not meant to be modified directly. Instead, there are a couple of official ways in which a user can override the defaults:
1. Create a copy of nupic-default.xml to a new file called nupic-site.xml containing only the sections you want to override, and set NTA_CONF_PATH environment variable to the directory containing nupic-site.xml. For example, ~/.nupic/nupic-site.xml would contain: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <property> <name>nupic.cluster.database.port</name> <value>3307</value> <description>Port number for the MySQL database server </description> </property> </configuration> And then set NTA_CONF_PATH to ~/.nupic: export NTA_CONF_PATH=~/.nupic 2. Alternatively, you can override configuration directives in the environment. The convention is to prefix the environment variable name with "NTA_CONF_PROP_" and replace "." with "_". For example, "nupic.cluster.database.port" becomes "NTA_CONF_PROP_nupic_cluster_database_port". In your case: export NTA_CONF_PROP_nupic_cluster_database_port=3307 On Wed, Sep 2, 2015 at 6:56 AM, Matias Jensen <[email protected]> wrote: > Hi > > I have just started looking into nupic, and I tried to set up a swarm but > I can only create a MySQL connection with port number 3307. > However, when I tried to change the default port number in the > nupic-dafult.xml, it didn’t change anything when running the test.py and > other swarming scripts and I can’t connect to the MySQL server. I have > tried to look into where the test.py gets its information, but I couldn’t > figure it out. > > Does anybody know what the problem is? > > Thanks, > Matias Frank >
