Skip to content

Instantly share code, notes, and snippets.

@chiangbing
Last active December 28, 2015 15:59
Show Gist options
  • Save chiangbing/7525963 to your computer and use it in GitHub Desktop.
Save chiangbing/7525963 to your computer and use it in GitHub Desktop.
Start/Enable Hadoop(CDH) services.
sudo chkconfig hadoop-hdfs-namenode on
sudo chkconfig hadoop-hdfs-datanode on
sudo chkconfig hadoop-yarn-resourcemanager on
sudo chkconfig hadoop-yarn-nodemanager on
sudo chkconfig hadoop-mapreduce-historyserver on
sudo yum install hadoop-hdfs-namenode hadoop-hdfs-datanode hadoop-yarn-resourcemanager hadoop-yarn-nodemanager hadoop-mapreduce-historyserver solr-server solr-mapreduce
sudo service hadoop-hdfs-namenode start
sudo service hadoop-hdfs-datanode start
sudo service hadoop-yarn-resourcemanager start
sudo service hadoop-yarn-nodemanager start
sudo service hadoop-mapreduce-historyserver start
sudo service hadoop-mapreduce-historyserver stop
sudo service hadoop-yarn-nodemanager stop
sudo service hadoop-yarn-resourcemanager stop
sudo service hadoop-hdfs-datanode stop
sudo service hadoop-hdfs-namenode stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment