Created 02-14-2016 07:26 PM
I had to restore an Ambari database backup, which was a bit behind the current cluster status. Will the Ambari restore "rollback" config changes upon cluster startup, and if so is there a way to "refresh" Ambari with what's current in the cluster. Thank you.
Created 02-15-2016 08:22 PM
Thank you both for your help. Support case was escalated and received excellent guidance for getting Ambari back in sync. The primary resolution for the sync issue raised here was executing $ ambari-server upgradestack HDP-2.3
Created 02-14-2016 07:42 PM
Make sure you backup existing db before the restore
Restore the old db
Restore the backup done in step 1 in different instance and try to match the content
Or
You can export the blueprint of existing cluster and restore , export the blueprint after restore and match the differences
Change the configs as per the differences
Created 02-14-2016 08:23 PM
Thanks. For 1) This sounds like Ambari will overwrite existing component configs when using a database restore? For 2) is the blueprint created from Ambari's settings or the cluster's configs? I'm just not clear whether Ambari will overwrite what's in the cluster or pull, and if there's an option to control this behavior.
Created 02-14-2016 08:28 PM
1) Yes
2) If you restore db then ambari will push configs based on configs in db. We need to be creative to find the delta.
3) curl -u admin:admin -i -H 'X-Requested-By: ambari' -X GET http://ambariserver:8080/api/v1/clusters/clustername?format=blueprint
This will give you configs from the existing cluster and then run again after db restore
Created 02-14-2016 08:57 PM
Ah, ok. So execute before starting cluster services to get what's there, execute again after starting services and basically do a diff between the 2? This is good.
Created 02-14-2016 09:10 PM
@Brenden Cobb Yes. I believe you have restore the old db ..if you have not then I would run the blueprint statement now and save it ...then restore db , run blueprint command ..
Created 02-15-2016 02:54 AM
@Brenden Cobb Let's connect on linkedin and we can discuss this in detail.
Created 02-15-2016 05:42 AM
Thanks Neeraj, look forward to connecting.
Created 02-15-2016 12:19 PM
@Brenden Cobb Did you try the above solution? I am looking forward to see the final outcome.
Created 02-15-2016 03:47 PM
As suggested, I have the blueprint which reflects all the current information for our stack (2.3.2). When attempting to start services on the cluster Ambari favors 2.2, the previously installed version. My assumption is the Ambari database needs some adjusting to properly recognize 2.3.2. I've tried a few updates to set the installed stack to 2.3.2, but Ambari is unsuccessful at starting the cluster components.
Created 02-15-2016 03:52 PM
@Brenden Cobb Are you upgrading ambari? Whats the previous and latest version?
2.3.2 is HDP version
2.2.0 is Ambari version
Created 02-15-2016 04:01 PM
Nope, not upgrading anything. Ambari database stack options:
select * from stack; stack_id | stack_name | stack_version ----------+------------+----------------- 1 | HDP | 2.3 2 | HDP | 2.1.GlusterFS 3 | HDP | 2.2 4 | HDP | 2.1 5 | HDP | 2.0 6 | HDP | 2.0.6 7 | HDP | 2.3.GlusterFS 8 | HDP | 2.0.6.GlusterFS
Created 02-15-2016 04:16 PM
Also:
$ ls /usr/hdp 2.2.0.0-2041 2.2.4.2-2 2.3.2.0-2950 current
Where current is correctly pointing to 2.3.x
Created 02-15-2016 04:20 PM
@Brenden Cobb Are you doing this in production? We need to escalate this as p1 case so that someone from support can help you. HDP 2.2 vs. 2.3 under current...This is not good
Created 02-15-2016 12:09 AM
since this is after-effect, I'd open a ticket with support. In my experience, i would backup all configs on every node, then try to restart agent on one node at a time as agent will advertise current config on a node to ambari server. Once you confirm everything is restored for that node, you can go to next node.
Created 02-15-2016 02:05 AM
Thanks I will keep that in mind as I progress. Support is not very helpful at the moment..that's why dropped by.
Created 02-15-2016 02:30 AM
@Brenden Cobb which region are you in? You can tail the Ambari server log for configbstatus. @Mark Herring
Created 02-15-2016 05:40 AM
I'm in the Northeast. Thank you for the tips.
Created 02-15-2016 01:53 PM
@Brenden Cobb no problem, I escalated your issue to get proper attention. I'm in Northeast, if you have similar issues, you can reach out to me directly. Also, please post your current status as this thread also needs to know the solution :).
Created 02-15-2016 03:49 PM
@Brenden Cobb please escalate your case to level 1.
Created 02-15-2016 03:49 PM
Thank you Artem. My current status is up in response to Neeraj's comments.