Programming Interfaces

Multi-Protocol Support

Ozone is a multi-protocol file system. There are different protocols by which users can access data on Ozone.

Java API

Ozone ships with its own client library that supports RPC. For generic use cases the S3 compatible REST interface also can be used instead of the Ozone client. Creating an Ozone client The Ozone client factory creates the ozone client. To get a RPC client we can call OzoneClient ozClient = OzoneClientFactory.getRpcClient(); If the user want to create a client based on the configuration, then they can call. OzoneClient ozClient = OzoneClientFactory.

Java API

Ozone File System

The Hadoop compatible file system interface allows storage backends like Ozone to be easily integrated into Hadoop eco-system. Ozone file system is an Hadoop compatible file system. Setting up the Ozone file system To create an ozone file system, we have to choose a bucket where the file system would live. This bucket will be used as the backend store for OzoneFileSystem. All the files and directories will be stored as keys in this bucket.

Ozone File System

S3 Protocol

Ozone provides S3 compatible REST interface to use the object store data with any S3 compatible tools. Getting started S3 Gateway is a separated component which provides the S3 compatible APIs. It should be started additional to the regular Ozone components. You can start a docker based cluster, including the S3 gateway from the release package. Go to the compose/ozones3 directory, and start the server: docker-compose up -d You can access the S3 gateway at http://localhost:9878

S3 Protocol