单节点,配置流数据持久化无效问题

我在 dolphindb.cfg 中添加了 如下内容,

maxPubConnections=20
persisitenceDir="C:\DevTools\DolphinDB\Data\Streaming"
persistenceWorkerNum=0
maxPersistenceQueueDepth=1000
maxMsgNumPerBlock=10
maxPubQueueDepthPerSite=10

但是在 GUI 中执行如下命令:

enableTablePersistence(ticks,true, true, 1000000)

提示错误:

To enable table persistence, turn on the persistence manager by specifying the configuration parameter persistenceDir for the publisher node.

请问,哪里有问题?谢谢

请先 登录 后评论

最佳答案 2021-09-24 17:32

persisitenceDir改成persistenceDir,单词拼错了

请先 登录 后评论

其它 2 个回答

Vishvesh Upadhyay

use / instead of \ it will solve the problem.


so the correct path would be "C:/DevTools/DolphinDB/Data/Streaming"

请先 登录 后评论
Boye

需要去掉引号,斜杠用/或\\

persisitenceDir=C:/DevTools/DolphinDB/Data/Streaming
请先 登录 后评论