Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

404 error while configuring argument to roleConfgGroups in hdfs(hdfs-DATANODE-BASE) group

avatar
New Contributor

Hi ALL,

 

I am trying to setup and configure cloudera hadoop cluster using API call in CM version 5.4.5. I have created and configure cluster and HDFS service using API calls.

When I am trying to configure arguments to "hdfs-DATANODE-BASE"  roleConfgGroups, it gives 404 error. I can able to configure arguments for other roleConfigGroups(eg.hdfs-NAMENODE-BASE, hdfs-SECONDARYNAMENODE-BASE) using same api call.

The hdfs-DATANODE-BASE" roleConfgGroups is available. Below is the curl api call to configure arguments to roleconfiggroups:

 

#curl -i -u admin:admin -X PUT  -H "content-type:application/json" -d '{"items":[{"name":"dfs_data_dir_list","value":"/data/dn1,/data/dn2,/data/dn3"},{"name":"dfs_datanode_failed_volumes_tolerated","value":"1"}]}'  http://localhost:7180/api/v10/clusters/TestCluster/services/hdfs/roleConfgGroups/hdfs-DATANODE-BASE/...

 

 

please help to fix it.

 

Thanks,

Bagal

1 ACCEPTED SOLUTION

avatar
Cloudera Employee

Hi Bagal,

 

In the URL, I think you are missing a "i" in roleConfigGroups. You have http://localhost:7180/api/v10/clusters/TestCluster/services/hdfs/roleConfgGroups/hdfs-DATANODE-BASE/config. Give it a shot with the "i" in there and let me know if it works.

 

Regards,

Justin

View solution in original post

1 REPLY 1

avatar
Cloudera Employee

Hi Bagal,

 

In the URL, I think you are missing a "i" in roleConfigGroups. You have http://localhost:7180/api/v10/clusters/TestCluster/services/hdfs/roleConfgGroups/hdfs-DATANODE-BASE/config. Give it a shot with the "i" in there and let me know if it works.

 

Regards,

Justin