Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1961 | 06-15-2020 05:23 AM | |
| 15935 | 01-30-2020 08:04 PM | |
| 2100 | 07-07-2019 09:06 PM | |
| 8208 | 01-27-2018 10:17 PM | |
| 4657 | 12-31-2017 10:12 PM |
03-15-2018
09:41 AM
@jay thank you , another little equation regrading that in configs.sh in order to set new value we do that ( for example ) /var/lib/ambari-server/resources/scripts/configs.sh set localhost HDP yarn.timeline-service.recovery.enabled true what is the syntax for configs.py?
... View more
03-15-2018
09:28 AM
hi all, Until HDP version - 2.6.4 we can use the configs.sh as the following example ( in this example we print all variables that relevant to the config type - yarn-site ) cluster name - HDP config type - yarn-site ambari server - localhost /var/lib/ambari-server/resources/scripts/configs.sh get localhost HDP yarn-site
########## Performing 'GET' on (Site:yarn-site, Tag:version1512057597218)
"properties" : {
"hadoop.registry.rm.enabled" : "true",
.
.
.
from 2.6.4 version ( and include config.sh isn't supported ) /var/lib/ambari-server/resources/scripts/configs.py get localhost HDP yarn-site
Usage: configs.py [options]
configs.py: error: One of required options is not passed so we using now the configs.py instead but seems that flags in configs.sh not as in configs.py what is the right syntax to use the configs.py in order to get all variable according to the config type as we do on configs.sh ? /var/lib/ambari-server/resources/scripts/configs.py get localhost HDP yarn-site
Usage: configs.py [options]
configs.py: error: One of required options is not passed
... View more
Labels:
03-14-2018
11:10 AM
from ambari GUI when we look on the JournalNodes status we see that JournalNodes
3
/
3 its mean all JournalNodes are alive and status is OK in case one of the JN is down then we need to see like this - JournalNode 2/3 , so my question is how to verify the Journal node by API or command Example from ambari GUI
... View more
Labels:
03-14-2018
10:59 AM
we want to verify by API or any approach by script / command that ZKFailoverController is started ( status green from ambari GUI ) in our cluster ZKFailoverController is on master01 and master03 machines so how to identify ZKFailoverController is started (green state ) on master01 and master03 machines ? example from Ambari GUI
... View more
Labels:
03-14-2018
07:35 AM
@Jay again thasnk you so much yours remarks are very useful to us , and your knowledge is empresive
... View more
03-14-2018
07:17 AM
ok Jay , so I will do the workaround in order to enable the ambari-server backup ( create empty folders - stack-recommendations , bootstrap)
... View more
03-14-2018
06:36 AM
Dear Jay thank you so much for all explains , just one last idea that I was thinking about this, in order to enable the ambari-server backup please tell me please you opinion? as you see here when we backup the ambari we get error because the missing folders /usr/sbin/ambari-server backup
Using python /usr/bin/python
Backing up Ambari File System state... *this will not backup the server database*
Backup requested.
No path specified. Will use /var/lib/ambari-server/Ambari_State_Backup.zip
Backup process initiated.
Error while validating folders. Folder /var/run/ambari-server/bootstrap/ does not exist. so as workaround I create empty folders as: mkdir /var/run/ambari-server/stack-recommendations mkdir /var/run/ambari-server/bootstrap/ now we run again the ambari-server backup , and backup succeeded /usr/sbin/ambari-server backup
Using python /usr/bin/python
Backing up Ambari File System state... *this will not backup the server database*
Backup requested.
No path specified. Will use /var/lib/ambari-server/Ambari_State_Backup.zip
Backup process initiated.
Creating zip file...
Zip file created at /var/lib/ambari-server/Ambari_State_Backup.zip
Backup complete.
Ambari Server 'backup' completed successfully. Jay what you think about this approach ?
... View more
03-13-2018
10:34 AM
@Jay regarding to my previeos comment , do you have other simple solution ( instead steps 1-4) ?
... View more
03-13-2018
08:21 AM
@Jay indeed when I change some value from ambari then I saw the folder - /var//ambari-server/stack-recommendations , but after that we need to return the value back as was , but this approach require us the following steps ( from script ) 1. change some value from ambari GUI ( by API ) 2 because change we need to restart relevant services ( by API ) 3 change back the value as was before ( by API ) 4 second restart services to complete ( by API ) as you see from steps 1-4 all this are needed only to create the stack-recommendations folder I want to share with you the all picture "we complete to create auto tool that perform ambari upgrade during the ambari upgrade auto process it create ambari dump (pg_dump -U ambari -f /var/tmp/dbdumps/ambari.sql) but this dump required stack-recommendations folder so in case stack-recommendations isnt under /var/run then the script will update the ambari properties and re-run the ambari setup in order to prepare the folder under /var/ambari-server , and then script need to run API to change value in order to create the stack-recommendations folder and do restart ......." so this approach required too many steps in order to bring the folder live
... View more
03-13-2018
05:55 AM
@Jay after we fine-tune the parameters (yesterday), now every thing is ok and metrics collector is up , in spite all this do you want to restart the AMS collector? anyway?
... View more