Hi @fengsh Yes, The remove script indeed has few bugs using curl which was picked up from AMBARI-18435 but this curl call is not officially supported and as such we don't have an official doc on this.
The other option to remove the older stack with "yum remove <version>" command, specifying the exact version you want to remove should get the job done.
You can also verify the list of packages to be removed using (please be thorough!):
# yum list installed | grep -P 'version'
Additionally, please verify the symlinks in the "/usr/hdp/current/" folder are pointing to the correct location.
--
Was your question answered? Please take some time to click on “Accept as Solution” below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.