Skip to main content
noekmc
Silver ⭐️⭐️⭐️
August 9, 2022
Solved

Cloudera Manager not apply the changes later restart service

Hi team I am new to CDP , I have a problem with the ldap changes in the cloudera manager service.

It requests a restart of the service after applying the changes , this restart is applied but the changes are not applied.

Can you help me , to identify the problem .

rki_
rki_Answer
Gold ⭐️
August 10, 2022

Hi @noekmc 

 

The alert saying "Requires Server Restart" for the config properties is expected to be there to help administrators to run the "systemctl restart cloudera-scm-server" on the CM host whenever they change the configs and even post changing the config and restarting the CM server. So, how are you validating that the config has not taken affect?

 

To confirm this, you can simply login to the CM database and run a select query on the "configs" table to check if the properties are there.

 

For eg, on my postgresDB,

 

# sudo -u postgres psql

postgres=# \c scm

scm=# select attr, value, host_id, service_id from configs where attr like 'ldap%';
attr | value | host_id | service_id
--------------+--------+---------+------------
ldap_type | LDAP | |
ldap_bind_pw | abcdef | |
ldap_bind_dn | robin | |
(3 rows)

 

So even after I have added some random values for LDAP in CM UI, the UI will show ""Requires Server Restart" for the already changed properties.

9 replies

rki_
Gold ⭐️
Gold ⭐️
August 9, 2022

Hi @noekmc , Could you let us know what exact config change you have made and to which location/safety valve you have added that config.

Translate
noekmc
noekmcAuthor
Silver ⭐️⭐️⭐️
August 9, 2022

the changed parameters are:

 

ldap_type

ldap_url

ldap_bind_dn

ldap_bind_pw

ldap_bind_dn_monitoring
ldap_bind_pw_monitoring
nt_doman
ldap_user_search_filer
ldap_user_search_base
ldap_group_search_base
ad_ldap_port
ad_ldaps_port
parcel_users_groups_permissions

the next image shows the restart notification to apply changes, but it has already been applied several times.

noekmc_0-1660072480098.png

 



Translate
rki_
Gold ⭐️
Gold ⭐️
August 9, 2022

Hi,

What is the version of CDP you are using. Have you restarted the Cloudera Manager server as documented here along with "Test Connection to verify whether the LDAP information you have provided is valid."

Translate
noekmc
noekmcAuthor
Silver ⭐️⭐️⭐️
August 9, 2022

cdp version is 7.4.4

Translate
araujo
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
August 9, 2022

@noekmc ,

 

How are you restarting Cloudera Manager?

This restart must be done from the command line, on the CM host:

sudo systemctl restart cloudera-scm-server

 

Cheers,

André

 

Translate
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
noekmc
noekmcAuthor
Silver ⭐️⭐️⭐️
August 9, 2022

@araujo
this command was applied previously

sudo systemctl restart cloudera-scm-server

message remains, restart is required

Regards ,
Eugenio

Translate
rki_
Gold ⭐️
rki_Answer
Gold ⭐️
August 10, 2022

Hi @noekmc 

 

The alert saying "Requires Server Restart" for the config properties is expected to be there to help administrators to run the "systemctl restart cloudera-scm-server" on the CM host whenever they change the configs and even post changing the config and restarting the CM server. So, how are you validating that the config has not taken affect?

 

To confirm this, you can simply login to the CM database and run a select query on the "configs" table to check if the properties are there.

 

For eg, on my postgresDB,

 

# sudo -u postgres psql

postgres=# \c scm

scm=# select attr, value, host_id, service_id from configs where attr like 'ldap%';
attr | value | host_id | service_id
--------------+--------+---------+------------
ldap_type | LDAP | |
ldap_bind_pw | abcdef | |
ldap_bind_dn | robin | |
(3 rows)

 

So even after I have added some random values for LDAP in CM UI, the UI will show ""Requires Server Restart" for the already changed properties.

Translate
noekmc
noekmcAuthor
Silver ⭐️⭐️⭐️
August 16, 2022

Hi guys , problem reporting

In Cloudera Manager , Now Ldap is funtional but the message " Restart service " persist .

Regards!

Translate
rki_
Gold ⭐️
Gold ⭐️
August 16, 2022

Hi @noekmc , Are you referring to the below "Restart service" highlighted option that you see under ldap_url? If yes, it is expected and you can refer my earlier comment. noekmc_0-1660072480098.png

Translate