@Vikash KUMAR
Depending on your HDP version please choose the correct compatible HDF by using the support matrix https://supportmatrix.hortonworks.com/
The follow the step which goes like below, according to the matrix see screenshot you need HDF 3.3.0

############################################################
# Back up your Ambari resources folder
###########################################################
cp -r /var/lib/ambari-server/resources /var/lib/ambari-server/resources.backup
############################################################
# Install the management pack
###########################################################
https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.3.0/release-notes/content/hortonworks-dataflow-...
cd /tmp
wget -nv http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.3.0.0/tars/hdf_ambari_mp/hdf-ambari-m...
# ambari-server install-mpack --mpack=/tmp/hdf-ambari-mpack-3.3.0.0-165.tar.gz --purge --verbose
###########################################
# Restart the Ambari server
##########################################
ambari-server start
Then proceed with adding the nifi service and other related components as desired like certificate authority etc