How to fix "Directly Upgrading to this version is not supported"
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.

