When install HDP at registration step, we always see thewarning on hugepage is enabled. here are the commands to disable hugepage on linux. I found them when I install CDH 5 on AWS.
echo never >/sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled
also, it is recommended to add to /etc/rc.d, so it is disabled after each reboot.