zoukankan      html  css  js  c++  java
  • 关于CDH相关服务启动用户的说明

    经常有人问Fayson,CDH相关服务是否可以不用root启动。关于CDH相关组件服务的启动用户,解释如下:

    1.cloudera-scm-server,也即是cloudera manager服务,只在cloudera manager那台机器上有。启动用户是cloudera-scm

    2.cloudera-scm-agent,所有集群内的机器都具有该服务,默认启动用户是root,具体Fayson后面再专门解释和说明。

    3.Hadoop相关服务的启动用户,如Namenode,Datanode,HBase Master都是Hadoop相关的用户启动的如hdfs,hbase。

    对于cloudera-scm-agent服务,默认启动用户是root,无论你是用root用户启动,还是用具有sudu权限的用户启动都是root。这个跟安装使用的用户也没有关系,无论是使用root安装的集群还是具有sudo权限的用户安装的集群。唯一解决该问题的办法只有在安装cdh集群的时候使用单一用户安装,即所有服务,包括cloudera manager,agent,或者hadoop的服务都使用同一个用户cloudera-scm用户安装,这样会导致作业,文件也都是默认使用这个一个用户,对于后期的应用只能靠手动来设置比如文件权限,属组,运行的作业也是一样。是我们并不推荐的方式,除非只是一个简单的测试系统。

    这是CDH相关软件的硬限制,无法简单的做更改。但使用该用户启动,除了重大故障需要用到root的时候必须使用root外,并不影响cloudera-scm-agent的服务启动和使用,你依旧可以使用有sudu权限的普通用户来启动。同时你修改root密码也不会影响到该服务的正常启动和运行。

    以下是Cloudera官方的说法:

    1. running CM agent as root (this is the default)

    - agent runs as root

    - services run as their designated users (local or not)

    - jobs can be run as the user who submitted them (local or not)

    2. running CM agent as non-root (aka single user mode)

    - designed for customers who does not want to run the CM agent as the root user. this is the lesser used option

    - CM Agent will run as the designated non-root user and group (local or not). By default, this is the "cloudera-scm" user

    - all CDH services and jobs will be run with the same user and group too

    - this is enabled at cluster install time

    - due to this designated user and group, file ownership/permissions has to set up accordingly.

  • 相关阅读:
    七、阿里巴巴中文站商品信息如何存放
    四、为什么要使用NOSQL NOT ONLY SQL
    二、数据库架构发展历程
    十三、负载均衡
    三、MySQL的扩展性瓶颈
    一、秒杀架构设计
    数据库概述
    五、传统RDBMS VS NOSQL
    PHP框架开发:三、MVC设计模式及本框架的实现方式
    PHP Iterator的使用
  • 原文地址:https://www.cnblogs.com/chenxiaoge/p/13335449.html
Copyright © 2011-2022 走看看