# # Install HBase from tarball # class hbase { file { "/datadrivea/hbase": ensure => "directory", owner => "hadoop", group => "hadoop", path => "/datadrivea/hbase", recurse => true; } exec { gethbase: command => "wget -nc http://puppetmasterlocation/packages/hbase-0.20.1.tar.gz", cwd => "/usr/local", path => "/usr/bin:/usr/sbin:/bin" } exec { untar-hbase: command => "tar xzf /usr/local/hbase-0.20.1.tar.gz", cwd => "/usr/local", # put hbase in /usr/local creates => "/usr/local/hbase-0.20.1", subscribe => Exec[gethbase], refreshonly => true; } # create symlink file { "/usr/local/hbase": ensure => "/usr/local/hbase-0.20.1", require => Exec[untar-hbase]; } # change the permissions of the HBase installation. exec { chown-hbase: command => "chown -R hadoop:hadoop /usr/local/hbase*", require => [ User[hadoop], File["/usr/local/hbase"] ], subscribe => Exec[untar-hbase], refreshonly => true; } # Copy the Global Relay hbase config files over the top of the default ones exec { gethbaseconfig: command => "wget -nd -N -l1 --no-parent -r http://puppetmasterlocation/packages/hbaseconf && rm index.html*", cwd => "/usr/local/hbase/conf", path => "/usr/bin:/usr/sbin:/bin" } }