File tree 2 files changed +7
-7
lines changed 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 23
23
- mysql
24
24
- hive
25
25
26
- - name : init metastore schema
26
+ - name : init Hive metastore schema
27
27
shell : mysql -uroot -phive_{{ site_name }} metastore < /usr/lib/hive/scripts/metastore/upgrade/mysql/hive-schema-0.10.0.mysql.sql
28
28
tags :
29
29
- mysql
30
30
- hive
31
31
32
- - name : add MySQL user 'hiveuser'
32
+ - name : add and grant MySQL user 'hiveuser'
33
33
mysql_user : name=hiveuser host=localhost password=hive_{{ site_name }} priv=metastore.*:ALL state=present
34
34
login_user=root login_password=hive_{{ site_name }}
35
35
tags :
Original file line number Diff line number Diff line change 21
21
apt : name=postgresql-contrib-9.1 force=yes
22
22
tags : postgres
23
23
24
- - name : create postgresql db 'metastore'
24
+ - name : create PostgreSQL db 'metastore'
25
25
sudo : true
26
26
sudo_user : postgres
27
27
postgresql_db : name=metastore
37
37
- postgres
38
38
- hive
39
39
40
- - name : init metastore schema
40
+ - name : init Hive metastore schema
41
41
sudo : true
42
42
sudo_user : postgres
43
- command : psql --dbname=metastore --file=/usr/lib/hive/scripts/metastore/upgrade/postgres/hive-schema-0.10.0.postgres.sql
43
+ shell : psql --dbname=metastore --file=/usr/lib/hive/scripts/metastore/upgrade/postgres/hive-schema-0.10.0.postgres.sql
44
44
tags :
45
45
- postgres
46
46
- hive
47
47
48
- - name : grant hiveuser
48
+ - name : grant PostgreSQL user ' hiveuser'
49
49
sudo : true
50
50
sudo_user : postgres
51
- command : psql --dbname=metastore --command="GRANT ALL ON ALL TABLES IN SCHEMA public TO hiveuser;"
51
+ shell : psql --dbname=metastore --command="GRANT ALL ON ALL TABLES IN SCHEMA public TO hiveuser;"
52
52
tags :
53
53
- postgres
54
54
- hive
You can’t perform that action at this time.
0 commit comments