You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@hadoop.apache.org by Mag Gam <ma...@gmail.com> on 2010/03/13 17:45:16 UTC
configuration question
I have 4 hosts, hostA, hostB, hostC, hostD.
I plan on hosting my data directory as follows:
hostA:
/data
hostB:
/somedata
hostC:
/data
hostD:
/blahBalh
Is it possible to give a "macro" for each host in the core-site.xml to say:
if (host=hostA):
use /data as dfs.data.dir
if (host=hostB):
use /somedata
if (host=hostC):
use /data
if (host=hostD):
use /blahBalh
I want to do this because I plan to share the same core-site-xml file
Re: configuration question
Posted by Eric Sammer <er...@lifeless.net>.
On 3/13/10 11:45 AM, Mag Gam wrote:
> Is it possible to give a "macro" for each host in the core-site.xml to say:
>
> if (host=hostA):
> use /data as dfs.data.dir
>
> if (host=hostB):
> use /somedata
>
> if (host=hostC):
> use /data
>
> if (host=hostD):
> use /blahBalh
>
>
> I want to do this because I plan to share the same core-site-xml file
Usually what people do is use something like Puppet or cfengine and
build and deploy configurations from a template.
Check out:
http://reductivelabs.com/trac/puppet/wiki/BigPicture
--
Eric Sammer
eric@lifeless.net
http://esammer.blogspot.com