Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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