Support Questions

Find answers, ask questions, and share your expertise

how to configure fs.client.block.write.replace-datanode-on-failure.policy parameter in hdfs in ambari

good morning cloudera community,

 

we are using apache ambari in version 2.6.2.2 and in this version we are using HDP 2.6.5, with that, we need to configure the parameter below in HDFS, but unfortunately we are not finding this option in the HDFS configuration, so we need to know how configure this parameter in HDFS?

 

parameter: dfs.client.block.write.replace-datanode-on-failure.policy=ALWAYS

 

PS: would it be in the "custom hdfs-site" option by clicking on "add property" and adding the parameter in the "properties" box?

 

1 ACCEPTED SOLUTION

Expert Contributor

Hi @yagoaparecidoti ,

 

Yes, as you are using Ambari to manage the cluster, you can add the property as follows :

 

Ambari -> HDFS -> Configs -> Advanced -> Custom hdfs-site -> Add Property
dfs.client.block.write.replace-datanode-on-failure.policy=ALWAYS

View solution in original post

2 REPLIES 2

Cloudera Employee

@yagoaparecidoti 

 

You can add these properties as additional properties in “HDFS Client Configuration Safety Valve for hdfs-site.xml”.


dfs.client.block.write.replace-datanode-on-failure.policy=ALWAYS
dfs.client.block.write.replace-datanode-on-failure.best-effort=true

 

If you found this response assisted with your query, please take a moment to log in and click on  KUDOS 🙂 & ”Accept as Solution" below this post.

 

Thank you.

Expert Contributor

Hi @yagoaparecidoti ,

 

Yes, as you are using Ambari to manage the cluster, you can add the property as follows :

 

Ambari -> HDFS -> Configs -> Advanced -> Custom hdfs-site -> Add Property
dfs.client.block.write.replace-datanode-on-failure.policy=ALWAYS

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.