Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

如何用命令行开启数据节点

官方手册上看到的关于启动数据节点的方式是,进入到localhost:8848控制节点的web页面,通过页面启动.

https://github.com/dolphindb/...
上述链接中给出可以在控制节点通过
startDataNode(["DFS_NODE1", DFS_NODE2","DFS_NODE3","DFS_NODE4"])启动数据节点,对应的关闭函数是哪个?
但是我想./dolphin进入命令行界面启动数据节点,命令是怎样的,就像类似启动控制节点和代理节点一样?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

在web上启动数据数据节点后,可以到shell中运行

ps -ef |grep dolphindb

例如我服务器上显示如下:
image.png
其中下面的命令就是启动了2个数据节点:

xhtang   152290      1  2 Oct26 ?        00:55:57 ./dolphindb -home /home/xhtang/dolphindb_test/server/data/P2-datanode1 -logFile /home/xhtang/dolphindb_test/server/log/P2-datanode1.log -jobLogFile /home/xhtang/dolphindb_test/server/log/P2-datanode1_job.log -keyPath /home/xhtang/dolphindb_test/server/data/P2-agent/keys -publicName 115.239.209.224 -volumes /hdd/hdd6/seis,/hdd/hdd7/seis,/hdd/hdd8/seis,/hdd/hdd9/seis -subPort 24110 -console 0 -mode datanode -localSite 192.168.1.13:24116:P2-datanode1 -webLoginRequired 0 -lanCluster 1 -perfMonitoring 1 -sites 192.168.1.14:24116:P3-datanode1,192.168.1.14:24118:P3-datanode2,192.168.1.13:24118:P2-datanode2,192.168.1.13:24116:P2-datanode1,192.168.1.12:24118:P1-datanode2,192.168.1.12:24116:P1-datanode1 -maxMemSize 64 -localExecutors 31 -dataSync 1 -maxPubConnections 5 -dfsReplicationFactor 2 -workerNum 32 -diskIOConcurrencyLevel 4 -newValuePartitionPolicy add -enableHTTPS 0 -subThrottle 1 -maxPartitionNumPerQuery 9999999999 -persistenceDir /hdd/hdd5/streamseis -config /noconfig -controllerSite 192.168.1.12:24112:controller -maxSubConnections 64 -chunkCacheEngineMemSize 8
xhtang   152291      1  2 Oct26 ?        00:58:04 ./dolphindb -home /home/xhtang/dolphindb_test/server/data/P2-datanode2 -logFile /home/xhtang/dolphindb_test/server/log/P2-datanode2.log -jobLogFile /home/xhtang/dolphindb_test/server/log/P2-datanode2_job.log -keyPath /home/xhtang/dolphindb_test/server/data/P2-agent/keys -publicName 115.239.209.224 -volumes /hdd/hdd1/seis,/hdd/hdd2/seis,/hdd/hdd3/seis,/hdd/hdd4/seis -subPort 24119 -console 0 -mode datanode -localSite 192.168.1.13:24118:P2-datanode2 -webLoginRequired 0 -lanCluster 1 -perfMonitoring 1 -sites 192.168.1.14:24116:P3-datanode1,192.168.1.14:24118:P3-datanode2,192.168.1.13:24118:P2-datanode2,192.168.1.13:24116:P2-datanode1,192.168.1.12:24118:P1-datanode2,192.168.1.12:24116:P1-datanode1 -maxMemSize 64 -localExecutors 31 -dataSync 1 -maxPubConnections 5 -dfsReplicationFactor 2 -workerNum 32 -diskIOConcurrencyLevel 4 -newValuePartitionPolicy add -enableHTTPS 0 -subThrottle 1 -maxPartitionNumPerQuery 9999999999 -persistenceDir /hdd/hdd5/streamseis -config /noconfig -controllerSite 192.168.1.12:24112:controller -maxSubConnections 64 -chunkCacheEngineMemSize 8

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...