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
edx
configuration
Commits
670135dc
Unverified
Commit
670135dc
authored
8 years ago
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite the tasks using YAML syntax
parent
eb8a7178
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 @
670135dc
...
...
@@ -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
This diff is collapsed.
Click to expand it.
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