Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Forked from darkseed/set-hadoop-heap.sh
Created March 1, 2013 09:28
Show Gist options
  • Save bugcy013/5063503 to your computer and use it in GitHub Desktop.
Save bugcy013/5063503 to your computer and use it in GitHub Desktop.
#!/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