Skip to content

Instantly share code, notes, and snippets.

@seanorama
Last active December 18, 2018 09:44
Show Gist options
  • Save seanorama/37da2ec778a03e068a6852393ee117f7 to your computer and use it in GitHub Desktop.
Save seanorama/37da2ec778a03e068a6852393ee117f7 to your computer and use it in GitHub Desktop.
hadoop-tmp-noexec

Fixes for when /tmp is mounted with noexec

Applies to HDP (Hortonworks Data Platform) but likely relevant for other Hadoop distributions.

This is not complete. Adding to it as issues are found.

Prep

  1. Create an alternative tmp directory:
sudo mkdir -p /hadoop/tmp
sudo chown root:hadoop /hadoop/tmp
sudo chmod 1770 /hadoop/tmp

Fixes

HBase, YARN-HBase (Timeline Reader), and Ambari Metrics (AMS)

From Ambari, update YARN yarn-hbase-env, AMS ams-hbase-env, and HBase hbase-env with the following:

export HBASE_OPTS="$HBASE_OPTS -Dorg.apache.hbase.thirdparty.io.netty.native.workdir=/hadoop/tmp"

Knox

Update gateway.sh and knoxcli.sh directly in the file system on all Knox hosts:

-Djava.io.tmpdir=/hadoop/tmp -D*jna*.tmpdir=/hadoop/tmp

Ranger Admin authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment