Skip to content

Commit 7862483

Browse files
authored
BIGTOP-3744. Puppet Deploy Hive on Tez add Resource Resizing Configs (apache#946)
1 parent 4e72166 commit 7862483

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ hadoop::common::tez_jars: "/usr/lib/tez"
180180

181181
# to enable tez in hive, uncomment the lines below
182182
# hadoop_hive::common_config::hive_execution_engine: "tez"
183+
# hadoop_hive::common_config::hive_tez_container_size: 1024
184+
# hadoop_hive::common_config::hive_tez_cpu_vcores: 1
183185

184186
#kafka
185187
kafka::server::port: "9092"

bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
}
4646
}
4747

48-
class common_config ($hbase_master = "",
48+
class common_config ($hive_tez_container_size = undef,
49+
$hive_tez_cpu_vcores = undef,
50+
$hbase_master = "",
4951
$hbase_zookeeper_quorum = "",
5052
$hive_zookeeper_quorum = "",
5153
$hive_support_concurrency = false,

bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@
2626

2727
<!-- Hive Execution Parameters -->
2828

29+
<% if @hive_tez_container_size %>
30+
<property>
31+
<name>hive.tez.container.size</name>
32+
<value><%= @hive_tez_container_size %></value>
33+
</property>
34+
<% end %>
35+
36+
<% if @hive_tez_cpu_vcores %>
37+
<property>
38+
<name>hive.tez.cpu.vcores</name>
39+
<value><%= @hive_tez_cpu_vcores %></value>
40+
</property>
41+
<% end %>
42+
2943
<% if @hbase_master != "" %>
3044
<property>
3145
<name>hbase.master</name>

0 commit comments

Comments
 (0)