Created
March 19, 2015 18:04
-
-
Save klucar/7c733bacd9a25cd2000b to your computer and use it in GitHub Desktop.
Scripts for working inside Myriad Vagrant
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 | |
./gradlew build | |
./gradlew capsuleExecutor | |
sudo -u hduser cp /vagrant/build/libs/* /usr/local/hadoop/share/hadoop/yarn/lib/ | |
sudo -u hduser cp /vagrant/build/libs/myriad-executor-0.0.1.jar /usr/local/libexec/mesos | |
sudo -u hduser cp /vagrant/build/resources/main/myriad-config-default.yml /usr/local/hadoop/etc/hadoop/. | |
sudo -u hduser cp /vagrant/build/resources/main/myriad-config-default.yml /usr/local/libexec/mesos/. | |
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 | |
# Start NameNode | |
sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemon.sh start namenode' | |
# Start DataNode | |
sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemons.sh start datanode' | |
# Start HistoryServer | |
sudo -u hduser sh -c '/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh start historyserver' | |
# Check status | |
sudo -u hduser jps -m |
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 | |
sudo -u hduser /usr/local/hadoop/sbin/yarn-daemons.sh start resourcemanager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment