Console

如何启动

通过执行使用-c参数构建的ChubaoFS的服务器二进制文件来启动控制台进程,并指定配置文件

  1. nohup cfs-server -c console.json &

Configurations

Properties
KeyTypeDescriptionMandatory
rolestringRole of process and must be set to consoleYes
logDirstringPath for log file storageYes
logLevelstringLevel operation for logging. Default is errorNo
listenstringPort of TCP network to be listen, default is 80Yes
masterAddrstring sliceAddresses of master serverYes
objectNodeDomainstringobject domain for sign url for downYes
master_instancestringthe tag for monitorYes
monitor_addrstringPrometheus the addressYes
dashboard_addrstringconsole menu forward to GrafanaYes
monitor_appstringthe tag for monitor, it same as master configYes
monitor_clusterstringthe tag for monitor, it same as master configYes

Example:

  1. {
  2. "role": "console",
  3. "logDir": "/cfs/log/",
  4. "logLevel": "debug",
  5. "listen": "80",
  6. "masterAddr": [
  7. "192.168.0.11:17010",
  8. "192.168.0.12:17010",
  9. "192.168.0.13:17010"
  10. ],
  11. "master_instance": "192.168.0.11:9066",
  12. "monitor_addr": "http://192.168.0.102:9090",
  13. "dashboard_addr": "http://192.168.0.103",
  14. "monitor_app": "cfs",
  15. "monitor_cluster": "spark"
  16. }

Notice

  • 你可以通过这个网址来访问console http://127.0.0.1:80
  • 在console里默认用户名是 root 密码 ChubaoFSRoot
  • 如果你的系统是升级来的可能发生密码格式不兼容, 你可以通过 curl -H “Content-Type:application/json” -X POST –data ‘{“id”:”testuser”,”pwd”:”12345”,”type”:2}’ “http://10.196.59.198:17010/user/create” 创建一个新用户来登陆