Skip to content

Instantly share code, notes, and snippets.

@darkseed
Forked from ogrodnek/set-hadoop-heap.sh
Created June 15, 2012 09:27
Show Gist options
  • Save darkseed/2935596 to your computer and use it in GitHub Desktop.
Save darkseed/2935596 to your computer and use it in GitHub Desktop.
EMR bootstrap script to set the hadoop head size
#!/bin/bash
if [ $# -lt 1 ]; then
SIZE="2048"
else
SIZE=$1
fi
echo "HADOOP_HEAPSIZE=${SIZE}" >> /home/hadoop/conf/hadoop-user-env.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment