Revision e6c4e099d17b97b336298b2543534e5b0be5b7df authored by Shivaram Venkataraman on 21 June 2017, 18:49:19 UTC, committed by GitHub on 21 June 2017, 18:49:19 UTC
Added Spark 2.1.1.
create-swap.sh
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: create-swap.sh <amount of MB>"
exit 1
fi
if [ -e /mnt/swap ]; then
echo "/mnt/swap already exists" >&2
exit 1
fi
SWAP_MB=$1
if [[ "$SWAP_MB" != "0" ]]; then
dd if=/dev/zero of=/mnt/swap bs=1M count=$SWAP_MB
mkswap /mnt/swap
swapon /mnt/swap
echo "Added $SWAP_MB MB swap file /mnt/swap"
fi
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...