Skip to content

Commit

Permalink
Allow mysql server to run on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Dowling committed Feb 20, 2017
1 parent 64a41de commit 7529a7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recipes/ndb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@
end


mysql_ip = my_ip
if node.mysql.localhost == "true"
mysql_ip = "localhost"
end

template "#{node.apache_hadoop.home}/etc/hadoop/ndb.props" do
source "ndb.props.erb"
owner node.apache_hadoop.hdfs.user
group node.apache_hadoop.group
mode "755"
variables({
:ndb_connectstring => node.ndb.connectstring,
:mysql_host => my_ip
:mysql_host => mysql_ip
})
end

Expand Down

0 comments on commit 7529a7c

Please sign in to comment.