查看 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