Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Setting HDFS Settings via REST API's resets previously set settings

Setting HDFS Settings via REST API's resets previously set settings

Explorer

Currently using CDH 5.4.5. 

 

I have a curl command that sets some HDFS settings that I need for my cluster.

 

curl -k -X PUT -H 'Content-Type:application/json' -u $ADMIN:$PASSWORD --data \
'{ "roleTypeConfigs" : [ {
"roleType" : "NAMENODE",
"items": [ {
"name" : "namenode_java_heapsize",
"value" : "1073741824"
} ]
}, {
"roleType" : "SECONDARYNAMENODE",
"items":[ {
"name" : "secondary_namenode_java_heapsize",
"value" : "1073741824"
} ]
} ],
"items": [ {
"name":"dfs_namenode_acls_enabled",
"value":"true"
} ]
}' \
$URL/api/v1/clusters/$CLUSTER_NAME/services/hdfs/config

 

 

By doing this any other settings (namenode heap size) I have set by hand for HDFS on my cluster are wiped out. Is there a way that I can preserve the changes I have made my hand, and set settings I need using this rest api?

 

Thanks!!

1 REPLY 1
Highlighted

Re: Setting HDFS Settings via REST API's resets previously set settings

Rising Star