Skip to content

Instantly share code, notes, and snippets.

@jeffreyiacono
Last active December 21, 2015 06:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jeffreyiacono/6263545 to your computer and use it in GitHub Desktop.
starts / stops hadoop dfs + mapr
#! /bin/bash
# Starts up Hadoop dfs + mapred
# can specify config by passing in an optional parameter:
#
# $ ./start-all.sh
# $ ./start-all.sh path-to-config
#
# If optional parameter is not supplied, it will default to
# $HADOOP_INSTALL/conf
if [ -z "$HADOOP_INSTALL" ]; then
echo "looks like \$HADOOP_INSTALL is not set. Fix with: export \$HADOOP_INSTALL=~/hadoop-x.y.z"
exit 1
fi
config=${1-"$HADOOP_INSTALL/conf"}
start-dfs.sh --config $config
start-mapred.sh --config $config
#! /bin/bash
# Stops Hadoop dfs + mapred
if [ -z "$HADOOP_INSTALL" ]; then
echo "looks like \$HADOOP_INSTALL is not set. Fix with: export \$HADOOP_INSTALL=~/hadoop-x.y.z"
exit 1
fi
stop-dfs.sh
stop-mapred.sh
@jeffreyiacono
Copy link
Author

... and this already exists in ./bin. ha

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