Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3acfd1

Browse files
committed
Fix PostgreSQL install. [ci skip]
1 parent 6a2577b commit c3acfd1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

roles/mysql_server/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
- mysql
2424
- hive
2525

26-
- name: init metastore schema
26+
- name: init Hive metastore schema
2727
shell: mysql -uroot -phive_{{ site_name }} metastore < /usr/lib/hive/scripts/metastore/upgrade/mysql/hive-schema-0.10.0.mysql.sql
2828
tags:
2929
- mysql
3030
- hive
3131

32-
- name: add MySQL user 'hiveuser'
32+
- name: add and grant MySQL user 'hiveuser'
3333
mysql_user: name=hiveuser host=localhost password=hive_{{ site_name }} priv=metastore.*:ALL state=present
3434
login_user=root login_password=hive_{{ site_name }}
3535
tags:

roles/postgresql_server/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
apt: name=postgresql-contrib-9.1 force=yes
2222
tags: postgres
2323

24-
- name: create postgresql db 'metastore'
24+
- name: create PostgreSQL db 'metastore'
2525
sudo: true
2626
sudo_user: postgres
2727
postgresql_db: name=metastore
@@ -37,18 +37,18 @@
3737
- postgres
3838
- hive
3939

40-
- name: init metastore schema
40+
- name: init Hive metastore schema
4141
sudo: true
4242
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
4444
tags:
4545
- postgres
4646
- hive
4747

48-
- name: grant hiveuser
48+
- name: grant PostgreSQL user 'hiveuser'
4949
sudo: true
5050
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;"
5252
tags:
5353
- postgres
5454
- hive

0 commit comments

Comments
 (0)