Created
September 19, 2016 15:19
-
-
Save anonymous/b5f795fccbaa1c2f1db49a1cf9903412 to your computer and use it in GitHub Desktop.
Apache Hadoop (local mode) without SSH
This file contains 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
cd ~/hadoop/sbin/ | |
# save old scripts | |
mv start-dfs.sh start-dfs.sh.orig | |
mv start-yarn.sh start-yarn.sh.orig | |
mv stop-dfs.sh stop-dfs.sh.orig | |
mv stop-yarn.sh stop-yarn.sh.orig | |
touch start-dfs.sh && chmod +x start-dfs.sh | |
touch start-yarn.sh && chmod +x start-yarn.sh | |
touch stop-dfs.sh && chmod +x stop-dfs.sh | |
touch stop-yarn.sh && chmod +x stop-yarn.sh | |
# see remaining part of the gist for the content of these files... |
This file contains 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
#!/usr/bin/env bash | |
echo "starting dfs daemons" | |
hadoop-daemon.sh --config ~/hadoop/etc/hadoop/ start namenode | |
hadoop-daemon.sh --config ~/hadoop/etc/hadoop/ start secondarynamenode | |
hadoop-daemon.sh --config ~/hadoop/etc/hadoop/ start datanode | |
# eof |
This file contains 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
#!/usr/bin/env bash | |
echo "starting yarn daemons" | |
yarn-daemon.sh --config ~/hadoop/etc/hadoop/ start resourcemanager | |
yarn-daemon.sh --config ~/hadoop/etc/hadoop/ start nodemanager | |
# eof |
This file contains 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
#!/usr/bin/env bash | |
echo "stopping dfs daemons" | |
hadoop-daemon.sh --config ~/hadoop/etc/hadoop/ stop namenode | |
hadoop-daemon.sh --config ~/hadoop/etc/hadoop/ stop secondarynamenode | |
hadoop-daemon.sh --config ~/hadoop/etc/hadoop/ stop datanode | |
# eof |
This file contains 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
#!/usr/bin/env bash | |
echo "stopping yarn daemons" | |
yarn-daemon.sh --config ~/hadoop/etc/hadoop/ stop resourcemanager | |
yarn-daemon.sh --config ~/hadoop/etc/hadoop/ stop nodemanager | |
# eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment