Modification Methods
Modifying Your Configuration Using the Worker Configuration File
You can modify your configuration using the worker configuration file (config.json). Changes that you make to worker configuration files are persistent. Note that you can only set the attributes in your worker configuration file before initializing your SQream worker, and while your worker is active these attributes are read-only.
The following is an example of a worker configuration file:
{
"cluster": "/home/test_user/sqream_testing_temp/sqreamdb",
"gpu": 0,
"licensePath": "home/test_user/SQream/tests/license.enc",
"machineIP": "127.0.0.1",
"metadataServerIp": "127.0.0.1",
"metadataServerPort": 3105,
"port": 5000,
"useConfigIP": true,
"legacyConfigFilePath": "home/SQream_develop/SqrmRT/utils/json/legacy_congif.json"
}
You can access the legacy configuration file from the legacyConfigFilePath
parameter shown above. If all (or most) of your workers require the same flag settings, you can set the legacyConfigFilePath
attribute to the same legacy file.
Modifying Your Configuration Using a Legacy Configuration File
You can modify your configuration using a legacy configuration file.
The Legacy configuration file provides access to the read/write flags. A link to this file is provided in the legacyConfigFilePath parameter in the worker configuration file.
The following is an example of the legacy configuration file:
{
"developerMode": true,
"reextentUse": false,
"useClientLog": true,
"useMetadataServer": false,
"enablePythonUdfs": true
}