Skip to content

Commit

Permalink
Adding execute blocks to bootstrap standby namenode and also to initi…
Browse files Browse the repository at this point in the history
…alize shared edits on journalnodes
  • Loading branch information
wolf31o2 committed Jan 22, 2014
1 parent 56de8b6 commit 7dce538
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions recipes/hadoop_hdfs_namenode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,17 @@
group "hdfs"
user "hdfs"
end

execute "hdfs-namenode-bootstrap-standby" do
command "hdfs namenode -bootstrapStandby"
action :nothing
group "hdfs"
user "hdfs"
end

execute "hdfs-namenode-initialize-sharededits" do
command "hdfs -initializeSharedEdits"
action :nothing
group "hdfs"
user "hdfs"
end

0 comments on commit 7dce538

Please sign in to comment.