1. 程式人生 > >oozie更改預設資料庫為mysql

oozie更改預設資料庫為mysql

1、在mysql中設定訪問許可權

CREATE database oozie DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;  
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION; 
GRANT ALL PRIVILEGES ON *.* TO
'root'@'10.27.226.73' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'hadoop06' IDENTIFIED BY '123456' WITH GRANT OPTION; flush privileges;

檢視是否賦予正常許可權:

use mysql;
SELECT User, Password, Host FROM user;

2、在cm中生成資料表

這裡寫圖片描述