使用Cloudera Manager部署oozie
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
1>.进入CM服务安装向导
2>.选择要添加的oozie服务
3>.选择oozie的依赖环境
4>.为oozie分配角色
5>.数据库设置
mysql> CREATE DATABASE oozie DEFAULT CHARACTER SET = utf8;
Query OK, row affected (0.04 sec) mysql>
mysql> GRANT ALL PRIVILEGES ON oozie.* TO 'oozie'@'node101.yinzhengjie.org.cn' IDENTIFIED BY 'yinzhengjie' WITH GRANT OPTION;
Query OK, rows affected (0.00 sec) mysql>
mysql> FLUSH PRIVILEGES;
Query OK, rows affected (0.00 sec) mysql>
mysql> quit
Bye
[[email protected] ~]#
MySQL授权oozie用户的准备工作
6>.配置oozie的存储路径
7>.等待oozie服务安装完毕
mysql> use oozie
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A Database changed
mysql> show tables;
+------------------------+
| Tables_in_oozie |
+------------------------+
| BUNDLE_ACTIONS |
| BUNDLE_JOBS |
| COORD_ACTIONS |
| COORD_JOBS |
| OOZIE_SYS |
| OPENJPA_SEQUENCE_TABLE |
| SLA_EVENTS |
| SLA_REGISTRATION |
| SLA_SUMMARY |
| VALIDATE_CONN |
| WF_ACTIONS |
| WF_JOBS |
+------------------------+
rows in set (0.00 sec) mysql>
配置完成后,我们观察oozie数据库中是存放元数据信息相关表的(说实话,初始化表挺多的,我这里现实有12张表,为随机抽取记账本看了下,都是空表~)
8>.oozie服务部署成功
9>.在CM端可以看到oozie服务