查看 Cloudera Manager and Managed Service Data Stores. 安裝配置數據庫,文檔點擊這裏MySQL Database,Oracle Database, or External PostgreSQL Database html
文件被解壓到一個名字與Cloudera Manager 版本相符的子目錄。好比: /opt/cloudera-manager/cm-5.0/. 這個全路徑後面會用到,tarball_root 目錄. node
在全部主機上手動建立cloudera-scm帳戶: python
$ sudo useradd --system --home=/opt/cloudera-manager/cm-5.0/run/cloudera-scm-server --no-create-home --shell=/bin/false --comment "Cloudera SCM User" cloudera-scm確保 --home 路徑與我的環境匹配. 這個參數應與tarball的解壓目錄相符。好比你的--home 多是/opt/cm-5.0/run/cloudera-scm-server.
$ sudo mkdir /var/log/cloudera-scm-server $ sudo chown cloudera-scm:cloudera-scm /var/log/cloudera-scm-server
Property | Description |
---|---|
server_host | Name of the host where Cloudera Manager Server is running. |
server_port | Port on the host where Cloudera Manager Server is running. |
$ sudo chown -R cloudera-scm:cloudera-scm /var/log/cloudera-scm-headlamp
mkdir /var/cm_logs/cloudera-scm-headlamp chown cloudera-scm /var/cm_logs/cloudera-scm-headlamp
$ sudo mkdir -p /opt/cloudera/parcel-repo
$ sudo chown cloudera-scm:cloudera-scm /opt/cloudera/parcel-repo自定義用戶名請修改成相應的用戶名及組名
$ sudo mkdir -p /opt/cloudera/parcels
$ sudo chown cloudera-scm:cloudera-scm /opt/cloudera/parcels
$ sudotarball_root/etc/init.d/cloudera-scm-server start
$ sudo chown -R cloudera-scm:cloudera-scm /opt/cloudera-manager
Once you have established ownership of directory locations, you can start Cloudera Manager Server using the user account you chose. For example, you might run the Cloudera Manager Server as cloudera-service. In this case, you have the following options: mysql
$ sudo -u cloudera-servicetarball_root/etc/init.d/cloudera-scm-server start
export CMF_SUDO_CMD=" "
USER=cloudera-service GROUP=cloudera-service
$ sudotarball_root/etc/init.d/cloudera-scm-server start
$ cptarball_root/etc/init.d/cloudera-scm-server /etc/init.d/cloudera-scm-server $ chkconfig cloudera-scm-server on
$ cptarball_root/etc/init.d/cloudera-scm-server /etc/init.d/cloudera-scm-server $ update-rc.d cloudera-scm-server defaults
$ sudotarball_root/etc/init.d/cloudera-scm-agent startAgent啓動後會與Cloudera Manager Server通訊。
$ sudo -u cloudera-scmtarball_root/etc/init.d/cloudera-scm-agent start
export CMF_SUDO_CMD=" "
USER=cloudera-scm GROUP=cloudera-scm
$ sudotarball_root/etc/init.d/cloudera-scm-agent start
$ cptarball_root/etc/init.d/cloudera-scm-agent /etc/init.d/cloudera-scm-agent $ chkconfig cloudera-scm-agent on
$ cptarball_root/etc/init.d/cloudera-scm-agent /etc/init.d/cloudera-scm-agent $ update-rc.d cloudera-scm-agent defaults
$ sudo service cloudera-scm-agent restart
使用 Cloudera Manager 嚮導配置並啓動CDH及其餘所管理的服務. web
CDH 4 | CDH 5 |
---|---|
|
|
Click a field below a role to display a dialog containing a list of hosts. If you click a field containing multiple hosts, you can also select All Hosts to assign the role to all hosts, or Custom to display the pageable hosts dialog. sql
Range Definition | Matching Hosts |
---|---|
10.1.1.[1-4] | 10.1.1.1, 10.1.1.2, 10.1.1.3, 10.1.1.4 |
host[1-3].company.com | host1.company.com, host2.company.com, host3.company.com |
host[07-10].company.com | host07.company.com, host08.company.com, host09.company.com, host10.company.com |
Click the View By Host button for an overview of the role assignment by hostname ranges. shell
If you added an Oozie service, you can change your Oozie configuration to control when data is purged in order to improve performance, cut down on database disk usage, or to keep the history for a longer period of time. Limiting the size of the Oozie database can also improve performance during upgrades. See Configuring Oozie Data Purge Settings Using Cloudera Manager. 數據庫
You can test the installation following the instructions in Testing the Installation. api