数据节点
启动数据节点
通过执行ChubaoFS的二进制文件并用“-c”参数指定的配置文件来启动一个DATANODE进程。注意datanode的实例最少需要4个
- nohup cfs-server -c datanode.json &
配置参数
举例:
- {
- "role": "datanode",
- "listen": "6000",
- "prof": "6001",
- "localIP":"192.168.31.174",
- "logDir": "/export/Logs/datanode",
- "logLevel": "info",
- "raftHeartbeat": "9095",
- "raftReplica": "9096",
- "raftDir": "/export/Logs/datanode/raft",
- "consulAddr": "http://consul.prometheus-cfs.local",
- "exporterPort": 9512,
- "masterAddr": [
- "10.196.30.200:80",
- "10.196.31.141:80",
- "10.196.31.173:80"
- ],
- "rack": "",
- "disks": [
- "/data0:21474836480",
- "/data1:21474836480"
- ]
- }