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
7f992be9
Commit
7f992be9
authored
Jul 13, 2016
by
Arbab Nazar
Committed by
GitHub
Jul 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3239 from edx/arbab/hadoop_master-rewrite
rewrite the tasks using YAML syntax
parents
e6482b20
670135dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
playbooks/roles/hadoop_master/tasks/main.yml
+11
-9
No files found.
playbooks/roles/hadoop_master/tasks/main.yml
View file @
7f992be9
...
...
@@ -21,20 +21,22 @@
# hadoop_common: this role installs hadoop generically
#
-
name
:
data directories created
file
:
>
path={{ HADOOP_COMMON_DATA }}/{{ item }}
owner={{ hadoop_common_user }} group={{ hadoop_common_group }} state=directory
-
name
:
Data directories created
file
:
path
:
"
{{
HADOOP_COMMON_DATA
}}/{{
item
}}"
owner
:
"
{{
hadoop_common_user
}}"
group
:
"
{{
hadoop_common_group
}}"
state
:
directory
with_items
:
-
namenode
-
datanode
-
name
:
check if namenode is formatted
stat
:
path={{ HADOOP_COMMON_DATA }}/namenode/current/VERSION
-
name
:
Check if namenode is formatted
stat
:
path
:
"
{{
HADOOP_COMMON_DATA
}}/namenode/current/VERSION"
register
:
namenode_version_file
-
name
:
namenode formatted
shell
:
>
. {{ HADOOP_COMMON_CONF_DIR }}/hadoop-env.sh && hdfs namenode -format
-
name
:
Namenode formatted
shell
:
"
.
{{
HADOOP_COMMON_CONF_DIR
}}/hadoop-env.sh
&&
hdfs
namenode
-format"
become_user
:
"
{{
hadoop_common_user
}}"
when
:
not namenode_version_file.stat.exists
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