Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is the traditional way to start a development cluster from source code. Once the package is built, you can start Ozone services by going to the hadoop-ozone/dist/target/ozone-*/ directory. Your Unix shell should expand the '*' wildcard to the correct Ozone version number.

Configuration

Save the minimal snippet to to hadoop-ozone/dist/target/ozone-*/etc/hadoop/ozone-site.xml in the compiled distribution.

Code Block
languagexml
themeRDark
<configuration>
<properties>
<property><name>ozone.enabled</name><value>true<.scm.datanode.id.dir</name><value>/tmp/ozone/data</value></property>
<property><name>ozone.scm.datanode.id<replication</name><value>1</value></property>
<property><name>ozone.metadata.dirs</name><value>/tmp/ozone/data/datanode.id<metadata</value></property>
<property><name>ozone.scm.names</name><value>localhost</value></property>
<property><name>ozone.om.address</name><value>localhost</value></property>
<property><name>ozone.scm.block.client.address</name><value>localhost</value></property>
<property><name>ozone.replication</name><value>1<scm.client.address</name><value>localhost</value></property>
<property><name>ozone.metadatascm.db.dirs</name><value>/tmp/ozone/datascm/metadata<db</value></property>
<property><name>ozone.scm.names</name><value>localhost<.ha.ratis.storage.dir</name><value>/tmp/ozone/scm/ratis</value></property>
<property><name>ozone.om.db.dirs</name><value>/tmp/ozone/om/db</value></property>
<property><name>ozone.om.address</name><value>localhost<.ratis.storage.dir</name><value>/tmp/ozone/om/ratis</value></property>
<property><name>dfs.container.ratis.datanode.storage.dir</name><value>/tmp/ozone/datanode/ratis</value></property>
<property><name>hdds.datanode.dir</name><value>/tmp/ozone/datanode/data</value></property>
</properties>
</configuration>

...

To start ozone, you need to start SCM, OzoneManager and DataNode. In pseudo-cluster mode, all services will be started on localhost.

Note jps (use this command to check if all the daemons are up and running or not)

Code Block
languagebash
themeRDark
  cd ../../ (move up two levels in the directory hierarchy to hadoop-ozone/dist/target/ozone-*/)
  bin/ozone scm --init
  bin/ozone --daemon start scm
  bin/ozone om --init
  bin/ozone --daemon start om
  bin/ozone --daemon start datanode

...

Once you have ozone running you can use these Ozone shell commands to create a volume, bucket and keys. E.g.

Code Block
languagebash
themeRDark
  bin/ozone sh volume create /vol1
  bin/ozone sh bucket create /vol1/bucket1
  dd if=/dev/zero of=/tmp/myfile bs=1024 count=1
  bin/ozone sh key put -t=RATIS -r=ONE /vol1/bucket1/key1 /tmp/myfile
  bin/ozone sh key list /vol1/bucket1

Note: specify replication type (-t) and replication factor (-r) to one for a single node cluster.

Stop Services


Code Block
themeRDark
  bin/ozone --daemon stop om
  bin/ozone --daemon stop scm
  bin/ozone --daemon stop datanode

...

Progress Bar Container
step65
Progress Bar - Hyperlink Step
titleEvaluate Ozone
urlEvaluate Try out Ozone
Progress Bar - Hyperlink Step
titleRunning via DockerHub
urlRunning via DockerHub
Progress Bar - Hyperlink Step
titleRunning via Apache Release
urlRunning via Apache Release
Progress Bar - Hyperlink Step
titleDownloading Sources
urlDownloading Sources
Progress Bar - Hyperlink Step
titleSingle Node Deployment
urlSingle Node Deployment
Progress Bar - Hyperlink Step
titleMulti Node Ozone Cluster
urlMulti Node Ozone Cluster

...