Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
c5d1aac9
Commit
c5d1aac9
authored
Apr 26, 2017
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check to see if hive metastore is initialized.
parent
420f2d54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
playbooks/roles/analytics_pipeline/tasks/main.yml
+10
-1
No files found.
playbooks/roles/analytics_pipeline/tasks/main.yml
View file @
c5d1aac9
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment