Skip to content

dharma2018/hadoop-vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hadoop-vagrant

hadoop vagrant single node deploy script. origin script come from https://github.com/ericduq/hadoop-scripts

Prerequisites

  • vagrant
  • vagrant ubuntu image (vagrant box add ubuntu)

Usage

	vagrant up
	vagrant ssh
	cd hadoop-vagrant/
	sh make-single-node.sh
	# vagrant user password is vagrant
	sudo su hadoop
	cd /usr/local/hadoop
	/usr/local/hadoop/sbin/start-dfs.sh
	/usr/local/hadoop/sbin/start-yarn.sh
	hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-2.4.0.jar pi 2 5

Usage on Host Machine

vagrant vm ip is 192.168.33.14

./hdfs dfs -ls  hdfs://192.168.33.14:8020/

# spring yarm example (https://github.com/spring-projects/spring-hadoop-samples/)

./gradlew -q run-yarn-examples-simple-command -Dhd.fs=hdfs://192.168.33.14:8020 -Dhd.rm=192.168.33.14:8032 -Dlocalresources.remote=hdfs://192.168.33.14:8020
./gradlew -q run-yarn-examples-list-applications -Dhd.fs=hdfs://192.168.33.14:8020 -Dhd.rm=192.168.33.14:8032 -Dlocalresources.remote=hdfs://192.168.33.14:8020

About

hadoop vagrant single node script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%