溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

CDH相關(guān)服務(wù)啟動用戶的示例分析

發(fā)布時間:2021-12-14 09:18:00 來源:億速云 閱讀:159 作者:小新 欄目:大數(shù)據(jù)

這篇文章將為大家詳細講解有關(guān)CDH相關(guān)服務(wù)啟動用戶的示例分析,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

CDH相關(guān)服務(wù)是否可以不用root啟動。關(guān)于CDH相關(guān)組件服務(wù)的啟動用戶,解釋如下:

1.cloudera-scm-server,也即是cloudera manager服務(wù),只在cloudera manager那臺機器上有。啟動用戶是cloudera-scm

2.cloudera-scm-agent,所有集群內(nèi)的機器都具有該服務(wù),默認啟動用戶是root,具體Fayson后面再專門解釋和說明。

3.Hadoop相關(guān)服務(wù)的啟動用戶,如Namenode,Datanode,HBase Master都是Hadoop相關(guān)的用戶啟動的如hdfs,hbase。

對于cloudera-scm-agent服務(wù),默認啟動用戶是root,無論你是用root用戶啟動,還是用具有sudu權(quán)限的用戶啟動都是root。這個跟安裝使用的用戶也沒有關(guān)系,無論是使用root安裝的集群還是具有sudo權(quán)限的用戶安裝的集群。唯一解決該問題的辦法只有在安裝cdh集群的時候使用單一用戶安裝,即所有服務(wù),包括cloudera manager,agent,或者hadoop的服務(wù)都使用同一個用戶cloudera-scm用戶安裝,這樣會導(dǎo)致作業(yè),文件也都是默認使用這個一個用戶,對于后期的應(yīng)用只能靠手動來設(shè)置比如文件權(quán)限,屬組,運行的作業(yè)也是一樣。是我們并不推薦的方式,除非只是一個簡單的測試系統(tǒng)。

這是CDH相關(guān)軟件的硬限制,無法簡單的做更改。但使用該用戶啟動,除了重大故障需要用到root的時候必須使用root外,并不影響cloudera-scm-agent的服務(wù)啟動和使用,你依舊可以使用有sudu權(quán)限的普通用戶來啟動。同時你修改root密碼也不會影響到該服務(wù)的正常啟動和運行。

以下是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.

關(guān)于“CDH相關(guān)服務(wù)啟動用戶的示例分析”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學(xué)到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

cdh
AI