关闭

停止ambari上服务的顺序

2392人阅读 评论(3) 收藏 举报
分类:

Before performing any upgrades or uninstalling software, stop all of the Hadoop services in the following order:

  • Ranger

  • Knox

  • Oozie

  • WebHCat

  • HiveServer2

  • Hive Metastore

  • HBase

  • YARN

  • HDFS

  • Zookeeper

  • Storm

  • Kafka

Instructions

  1. Stop Ranger. Execute the following commands on the Ranger host machine:

    sudo service ranger-admin stop
    sudo service ranger-usersync stop
  2. Stop Knox. Execute the following command on the Knox host machine.

    su -l knox -c "/usr/hdp/current/knox-server/bin/gateway.sh stop"
  3. Stop Oozie. Execute the following command on the Oozie host machine.

    su -l oozie -c "/usr/hdp/current/oozie-server/bin/oozied.sh stop"
  4. Stop WebHCat. On the WebHCat host machine, execute the following command:

    su -l hcat -c "/usr/hdp/current/hive-webhcat/sbin/webhcat_server.sh stop"
  5. Stop Hive. Execute this command on the Hive Metastore and Hive Server2 host machine.

    ps aux | awk '{print $1,$2}' | grep hive | awk '{print $2}' | xargs kill >/dev/null 2>&1
  6. Stop HBase

    • Execute this command on all RegionServers:

      su -l hbase -c "/usr/hdp/current/hbase-regionserver/bin/hbase-daemon.sh stop regionserver"
    • Execute this command on the HBase Master host machine:

      su -l hbase -c "/usr/hdp/current/hbase-master/bin/hbase-daemon.sh stop master"
  7. Stop YARN

    • Execute this command on all NodeManagers:

      su -l yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/yarn-daemon.sh stop nodemanager"
    • Execute this command on the History Server host machine:

      su -l yarn -c "/usr/hdp/current/hadoop-mapreduce-historyserver/sbin/mr-jobhistory-daemon.sh stop historyserver"
    • Execute this command on the ResourceManager host machine(s):

      su -l yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh stop resourcemanager"
  8. Stop HDFS

    • Execute this command on all DataNodes:

      su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-datanode/../hadoop/sbin/hadoop-daemon.sh stop datanode"
    • If you are not running NameNode HA (High Availability), stop the Secondary NameNode by executing this command on the Secondary NameNode host machine:

      su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh stop secondarynamenode"
    • Execute this command on the NameNode host machine(s):

      su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh stop namenode"
    • If you are running NameNode HA, stop the Zookeeper Failover Controllers (ZKFC) by executing this command on the NameNode host machines:

      su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh stop zkfc"
    • If you are running NameNode HA, stop the JournalNodes by executing these commands on the JournalNode host machines:

      su $HDFS_USER 
      /usr/hdp/current/hadoop-hdfs-journalnode/../hadoop/sbin/hadoop-daemon.sh stop journalnode

      where $HDFS_USER is the HDFS user. For example, hdfs.

  9. Stop ZooKeeper. Execute this command on the ZooKeeper host machine(s):

    su - zookeeper -c "export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh stop"
  10. Start Storm services using a process controller, such as supervisord. See "Installing and Configuring Apache Storm" in the Manual Install Guide. For example, to stop the storm-nimbus service:

    sudo /usr/bin/supervisorctl
    storm-drpc RUNNING pid 9801, uptime 0:03:20
    storm-nimbus RUNNING pid 9802, uptime 0:03:20
    storm-ui RUNNING pid 9800, uptime 0:03:20
    supervisor> stop storm-nimbus
    storm-nimbus: stopped

    where $STORM_USER is the operating system user that installed Storm. For example, storm.

  11. Stop Kafka. Execute this command on the Kafka host machine(s):

    su $KAFKA_USER
    /usr/hdp/current/kafka-broker/bin/kafka stop

    where$KAFKA_USER is the operating system user that installed Kafka. For example,kafka.

1
0
查看评论

ambari-server start 出错

Error injecting constructor, java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last...
  • yinzhiqing
  • yinzhiqing
  • 2016-06-17 15:28
  • 3527

Ambari学习18_ 更换服务器IP地址后,Ambari各项服务心跳丢失(heartbeat lost)的解决方案

说明: 转载这篇文章,是为了解决Ambari各项服务心跳丢失问题; 解决方法描述: master上关闭ambari-server,所有节点上关闭ambari-agent; 然后重新启动, 即,master上开启ambari-server,所有节点上开启ambari-server。 ...
  • wang_zhenwei
  • wang_zhenwei
  • 2016-12-09 20:59
  • 1745

Ambari管理Hadoop集群时遇到的问题

一、运行MapReduce程序出现的问题mapreduce.task.io.sort.mb无效 java.io.IOException: Invalid "mapreduce.task.io.sort.mb": 4096解决办法: 这个参数的值设置的过大了,不能超过2047...
  • scgaliguodong123_
  • scgaliguodong123_
  • 2015-05-22 19:47
  • 2097

ambari之quicklinks

之前在ambari开发中,集成自定义服务时,不仅仅需要在stacks下加入服务,还需要在ambari-web端进行相关配置。后来无意间在IBM的一个博客中看到有在2.3版后仅作简单配置即可添加快速链接,忍不住想研究一番。 首先来看下官网的介绍。 官网在发布版的2.4.0加入了quicklinks...
  • zxl1033394132
  • zxl1033394132
  • 2016-09-03 20:33
  • 1034

Ambari学习13_安装ambari的时候遇到的ambari和hadoop问题集

5.在安装的时候遇到的问题 5.1使用ambari-server start的时候出现ERROR: Exiting with exit code -1. 5.1.1REASON: Ambari Server java process died with exitcode 255. Che...
  • wang_zhenwei
  • wang_zhenwei
  • 2016-11-14 16:10
  • 12525

ambari和HDP升级文档

本文翻译自Hortonworks官网,Ambari版本2.3->2.5 HDP2.4->2.6。以CentOS为例
  • zwq_david9527
  • zwq_david9527
  • 2017-09-04 18:53
  • 286

Hortonworks(HDP)关闭不需要的组件(服务)

Hortonworks在/etc/init.d/下面有一个用于启动HDP各项服务的脚本:startup_script,打开这个脚本我们可以看到它又调用了/usr/lib/hue/tools/start_scripts/start.sh 这个脚本来启动各项服务,再打开start.sh这个脚本之后,一切...
  • bluishglc
  • bluishglc
  • 2014-12-20 23:22
  • 8717

ambari自定义服务(一)步骤概述

 翻译:https://cwiki.apache.org/confluence/display/AMBARI/Defining+a+Custom+Service 自定义服务包含以下步骤: 1 创建服务文件夹 2 创建描述服务信息的Metainfo.xml 3 创建关于安装、配置、启动、...
  • WangPing1223
  • WangPing1223
  • 2017-08-23 09:58
  • 855

停止ambari上服务的顺序

Before performing any upgrades or uninstalling software, stop all of the Hadoop services in the following order: Ranger Knox Oozie WebHCat Hiv...
  • oDaiLiDong
  • oDaiLiDong
  • 2015-11-20 17:56
  • 2392

Ambari学习笔记

一、准备工作 l 基本工具 1) 安装epel,epel是一个提供高质量软件包的项目。先检查主机上是否安装: rpm -q epel-release 2) 如果没有安装,使用rpm命令安装: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/...
  • oYangYang123456789ww
  • oYangYang123456789ww
  • 2016-07-08 08:22
  • 3029
    个人资料
    • 访问:597729次
    • 积分:6355
    • 等级:
    • 排名:第4566名
    • 原创:127篇
    • 转载:71篇
    • 译文:2篇
    • 评论:61条
    最新评论