Workaround: Secure DataNode Crashes

By | 2017-06-24

Black Giant Shield Bug from Central Java

A recent Linux kernel update to workaround CVE-2017-1000366 is causing Apache Hadoop’s secure DataNode (and NFS manager) to crash on startup. (Related discussion from Red Hat and Ubuntu)

If your systems are running a variant of Apache Hadoop 3.x, you can take advantage of user functions to workaround the Java Invocation API issue that causes jsvc to crash.

Step 1: If it doesn’t already exist, create ${HADOOP_CONF_DIR}/hadoop-user-functions.sh.

Step 2: Inside this file, add this function:

This code is the same version as appears in ${HADOOP_HOME}/libexec/hadoop-functions.sh in 3.0.0-alpha3, with the slight addition of a -Xss1280k to grow the stack at launch.

Step 3: Save the file and start your secure DataNode (or NFS Manager) daemon.

Leave a Reply