In Ambari when try to upgrade to HDP/HDF versions - after adding a new repo version, some times it might show disabled "install packages" button.
There can be multiple reasons for this.
1. Check to stack_id which stack_id clusters table is pointing to. it should be pointed to correct current stack_id if not correct with update query
2. check clusterstate table - it should be pointing to correct current stack_id if not correct with update query
3. How to find my correct current stack_id
run "select stack_id, version from repo_version" query - check the stack_id for your current hdp/hdf version.
4. so step1 and step2 should be pointing to stack_id returned in step3.
There can be many other reasons like not having "upgrades" folder in stack folder or some other.
While upgrading HDF - 3.0.2 to HDF-3.2.0 I'm facing the same problem.
ambari=> select cluster_id, desired_stack_id from clusters;
cluster_id | desired_stack_id
2 | 51
ambari=> select * from clusterstate ;
cluster_id | current_cluster_state | current_stack_id
2 | | 51
ambari=> select stack_id, version from repo_version;
stack_id | version
2 | 220.127.116.11-5
51 | 18.104.22.168-76
101 | 22.214.171.124-7
102 | 126.96.36.199
My current version in 188.8.131.52-76, stack_id=51
what can be the reason of why I can't install and upgrade to 184.108.40.206
Thanks in advance!
with kind regards,