Commit c5d1aac9 by Brian Wilson

Add check to see if hive metastore is initialized.

parent 420f2d54
......@@ -230,9 +230,18 @@
- install
- install:configuration
- name: Test if Hive metadata store schema exists
shell: ". {{ HADOOP_COMMON_CONF_DIR }}/hadoop-env.sh && {{ HIVE_HOME }}/bin/hive | tr '\n' ' '"
become_user: "{{ hadoop_common_user }}"
register: hive_metastore_info
tags:
- install
- install:configuration
- name: Initialize Hive metadata store schema
shell: ". {{ HADOOP_COMMON_CONF_DIR }}/hadoop-env.sh && {{ HIVE_HOME }}/bin/schematool -dbType mysql -initSchema"
become_user: "{{ hadoop_common_user }}"
when: "'Version information not found in metastore' in hive_metastore_info.stderr"
tags:
- install
- install:base
- install:configuration
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment