如何用命令行开启数据节点
官方手册上看到的关于启动数据节点的方式是,进入到localhost:8848
控制节点的web页面
,通过页面启动.
https://github.com/dolphindb/...
上述链接中给出可以在控制节点通过startDataNode(["DFS_NODE1", DFS_NODE2","DFS_NODE3","DFS_NODE4"])
启动数据节点,对应的关闭函数是哪个?
但是我想./dolphin
进入命令行界面启动数据节点,命令是怎样的,就像类似启动控制节点和代理节点一样?
回答
在web上启动数据数据节点后,可以到shell中运行
ps -ef |grep dolphindb
例如我服务器上显示如下:
其中下面的命令就是启动了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 8xhtang 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
以上是 如何用命令行开启数据节点 的全部内容, 来源链接: utcz.com/a/63638.html