Start and Stop
This guide describes how to start and stop an Ozone cluster, assuming it has already been configured and initialized.
Startup the cluster
Run the following command on each SCM host:
ozone --daemon start scmRun the following command on each OM host:
ozone --daemon start omAt this point Ozone's name services, the Ozone Manager, and the block service SCM are both running.
Now we need to start the Datanodes. Please run the following command on each Datanode.
ozone --daemon start datanodeWait until SCM exits safe mode
ozone admin safemode wait -t 240At this point SCM, Ozone Manager and Datanodes are up and running and are ready to serve requests.
Starting Optional Services
If you need to start optional services like the Recon server, S3 Gateway, or HttpFS Gateway, you can start them separately:
ozone --daemon start recon
ozone --daemon start s3g
ozone --daemon start httpfsShortcut
If you want to make your life simpler, you can just run:
start-ozone.shThis assumes that you have set up the workers file correctly and ssh configuration that allows ssh-ing to all Datanodes.
- You are expected to list all hostnames or IP addresses in your
${OZONE_CONF_DIR}/workersfile, one per line. - You have passwordless SSH access configured from the control node to all other nodes in the cluster.
Stopping the Cluster
To stop all core services, you can use the stop-ozone.sh script from your SCM or OM node:
stop-ozone.shTo stop services individually, you can run the following commands on their respective nodes:
ozone --daemon stop scm
ozone --daemon stop om
ozone --daemon stop datanodeTo stop optional services, run the following commands on their respective nodes:
ozone --daemon stop recon
ozone --daemon stop s3g
ozone --daemon stop httpfs评论
登录后参与评论
KnowForge