Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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.