Shut down the Timeline Service, switch to the newer version, and start the Timeline Service:
su - yarn -c "/usr/hdp/current/hadoop-yarn-timelineserver/sbin/yarn-daemon.sh
stop timelineserver"
hdp-select set hadoop-yarn-timelineserver 2.2.4.2-2
su - yarn -c "/usr/hdp/current/hadoop-yarn-timelineserver/sbin/yarn-daemon.sh
start timelineserver"