Unfortunately, if you cluster is managed by Ambari you can't independently upgrade the components. It will be a nightmare if you plan to upgrade in future. HDP stack are rigorously tested and certified together as a bundle.
Ambari currently only supports upgrading the entire HDP stack together. However, we are planning patch upgrades might be available in 3.0 which will allow a single component upgrade of the stack.
Hope that answers your question.