Setting up ofs
Select the Ozone bucket to configure
Select the Ozone bucket on which you want
ofsto reside.If you do not have a designated volume or bucket for
ofs, create them using the required commands:
ozone sh volume create /volume ozone sh bucket create /volume/bucket
ofsfile system implementation classpath is added to CDP services by default. But if an application is unable to instantiate the
ofsfile system class, add the ozone-filesystem-hadoop3.jar to the classpath.
After setting up
ofs, you can run HDFS commands such as the following on Ozone: (Assuming Ozone Service ID is “ozone”)hdfs dfs -ls ofs://ozone/volume/bucket and hdfs dfs -mkdir ofs://ozone/volume/bucket/usersNow, applications such as Hive and Spark can run on this file system after some basic configuration changes.