Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

list of RHEL kernel parameter change for hortonworks/ambari installation

avatar
Expert Contributor

need to have a clear list of RHEL kernel parameters need change for hortonworks/ambari installation

1 ACCEPTED SOLUTION
8 REPLIES 8

avatar
Master Mentor

avatar
Master Mentor

@Robin Dong

See this

/etc/init.d/iptables stop

Disable SELinux and PackageKit and check the UMASK Value

Disable THP

/etc/init.d/ntpd start

sysctl -w vm.swappiness=0

sysctl -w fs.file-max=300000

Again...please follow this as it will make things way easier https://gist.github.com/nsabharwal/683adf76260ea9010532

avatar
Expert Contributor

to disable THP

if test -f /sys/kernel/mm/redhat_transparent_hugepage/defrag; then echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag fi
then I got
>
dont know what to do next.

avatar
Master Mentor

@Robin Dong

You have to do this in all the nodes.

*** Disable THP ***

In ambari host vi /etc/rc.local  and add following lines

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi

avatar
Expert Contributor

I made all other changes ok.

avatar
Master Mentor
@Robin Dong

please view the following scripts. Link

avatar
Expert Contributor

this is the best answer for my question.

avatar
Master Mentor

@Robin Dong please accept the best answer, it is not clear what answer solved your problem.