Id like to know if only hive service can be upgraded in CDH 5.4.x cluster.
I have an parcel installation.
Short answer: No.
When using parcels, all components are upgraded at the same time as all of CDH ships in one parcel. We test these parcels to promote stability and reliability, so I would recommend going forward witn an upgrade. We will not be providing fixes for 5.4.x any longer, so it would be good to consider upgrading to our latest releases.