Skip to main content
skommineni
Gold ⭐️
Aug 11, 2023 11:09 AM UTC
Solved

Setting HDFS Default FS to Ozone FS

Hi Team,

 

Looking for inputs on defaulting HDFS storage to Ozone FS. As part of HDFS configuration from Cloudera Manager, in core-site.xml tried setting the following properties mentioned in : 

https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/ozone-storing-data/topics/ozone-setting-up-ozonefs.html 

https://ozone.apache.org/docs/1.0.0/interface/ofs.html

 

Post restarting the service, SecondaryNameNode fails with below exception :

 

Failed to start secondary namenode
java.io.IOException: This is not a DFS
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getInfoServer(SecondaryNameNode.java:456)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:239)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:194)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:690)

 

However other role types i.e DataNode and NamedNode start up fine. 

Listing the files using the command : 

  • sudo -u hdfs hdfs dfs -ls /

Still list the content from HDFS file system and not from Ozone storage. The same config settings work fine for Hive in defaulting to Ozone from HDFS.

 

Any suggestions on right way of configuring HDFS to Ozone storage is appreciated ? Also is this a supported config scenario ? Thanks.

 

 

amk
amkAnswer
Gold ⭐️
Aug 16, 2023 4:33 PM UTC

Hi  @skommineni

We don't support setting Ozone as the default fs yet (Not fully integrated). This will be supported in future release. As a workaround you can try configuring HA (Active + Standby NN) instead of secondary NN and then set ozone as default fs. 

4 replies

cjervis
Community Manager
Community Manager
Aug 14, 2023 1:11 PM UTC

Welcome to the community @skommineni. Allow me to tag in @amk @rblough and @ChrisGe in case they have any ideas here.

Translate
Keep the questions coming
amk
Gold ⭐️
amkAnswer
Gold ⭐️
Aug 16, 2023 4:33 PM UTC

Hi  @skommineni

We don't support setting Ozone as the default fs yet (Not fully integrated). This will be supported in future release. As a workaround you can try configuring HA (Active + Standby NN) instead of secondary NN and then set ozone as default fs. 

Translate
skommineni
Gold ⭐️
Aug 17, 2023 3:57 AM UTC

Got it..thanks @amk for confirming the same. Will check on the above recommendation.

Translate
VidyaSargur
Community Manager
Community Manager
Aug 17, 2023 5:18 AM UTC

@skommineni, if the recommendation from @amk helps you resolve your issue, can you please mark the appropriate reply as the solution? This will make it easier for others to find the answer in the future. 

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.