Last active
December 21, 2015 06:19
-
-
Save jeffreyiacono/6263545 to your computer and use it in GitHub Desktop.
starts / stops hadoop dfs + mapr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... and this already exists in ./bin. ha