Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
okeanos-LoD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
okeanos-LoD
Commits
a35247ce
Commit
a35247ce
authored
Jul 22, 2015
by
Georgios Ouzounis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LAM-49 Changed in apache-hadoop role's tasks for init scripts to work properly.
parent
fb490056
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ansible/roles/apache-hadoop/tasks/master.yml
ansible/roles/apache-hadoop/tasks/master.yml
+3
-3
ansible/roles/apache-hadoop/tasks/setup.yml
ansible/roles/apache-hadoop/tasks/setup.yml
+1
-1
No files found.
ansible/roles/apache-hadoop/tasks/master.yml
View file @
a35247ce
...
...
@@ -6,12 +6,12 @@
template
:
src=yarn-init.j2 dest=/etc/init.d/yarn-init owner=hduser group=lambda mode=0740
-
name
:
Format Apache HDFS.
shell
:
"
yes
|
{{
installation_path
}}/hadoop/bin/hadoop
namenode
-format"
shell
:
su - hduser -c
"yes | {{ installation_path }}/hadoop/bin/hadoop namenode -format"
tags
:
-
format-hdfs
-
name
:
Start Apache HDFS.
shell
:
/etc/init.d/hdfs-init start
# Should use Ansible module "service: name=hdfs-init state=started" when the bug in version 1.9.1 is fixed.
shell
:
su - hduser -c "/etc/init.d/hdfs-init start > /dev/null &"
tags
:
-
start-hdfs
...
...
@@ -21,7 +21,7 @@
-
start-hdfs
-
name
:
Start Apache Yarn.
shell
:
/etc/init.d/yarn-init start
# Should use Ansible module "service: name=yarn-init state=started" when the bug in version 1.9.1 is fixed.
shell
:
su - hduser -c "/etc/init.d/yarn-init start > /dev/null &"
tags
:
-
start-yarn
...
...
ansible/roles/apache-hadoop/tasks/setup.yml
View file @
a35247ce
...
...
@@ -9,7 +9,7 @@
file
:
src="{{ installation_path }}/hadoop-{{ version }}" dest="{{ installation_path }}/hadoop" state=link
-
name
:
Set JAVA_HOME in Apache Hadoop environment.
lineinfile
:
dest="{{ installation_path }}/hadoop/etc/hadoop/hadoop-env.sh" regexp="^export JAVA_HOME=" line="export JAVA_HOME=/usr
/lib/jvm/java-7-openjdk-amd64
"
lineinfile
:
dest="{{ installation_path }}/hadoop/etc/hadoop/hadoop-env.sh" regexp="^export JAVA_HOME=" line="export JAVA_HOME=/usr"
-
name
:
Configure slaves.
template
:
src=slaves.j2 dest="{{ installation_path }}/hadoop/etc/hadoop/slaves" owner=hduser group=lambda mode=0644
...
...
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