This is an automated email from the ASF dual-hosted git repository. iwasakims pushed a commit to branch branch-3.5 in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/branch-3.5 by this push: new e36f7f596 BIGTOP-4432. Fix flaky smoke-test of Hive executing command before HiveServer2 is ready. (#1365) e36f7f596 is described below commit e36f7f596a18d5d7068a8764633d6257b3ad2788 Author: Masatake Iwasaki <iwasak...@apache.org> AuthorDate: Tue Jul 22 11:04:31 2025 +0900 BIGTOP-4432. Fix flaky smoke-test of Hive executing command before HiveServer2 is ready. (#1365) (cherry picked from commit 526070ca72b0a406e873e2b8a482802d9a3ed5df) --- bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml | 1 + bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp | 1 + bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml index 6d727b1df..c27cc26ad 100644 --- a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml +++ b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml @@ -177,6 +177,7 @@ hadoop_hive::common_config::kerberos_realm: "%{hiera('kerberos::site::realm')}" hadoop_hive::common_config::metastore_uris: "thrift://%{hiera('bigtop::hadoop_head_node')}:9083" # set this to true in production to avoid potential metastore corruption hadoop_hive::common_config::metastore_schema_verification: false +hadoop_hive::common_config::server2_sleep_interval_between_start_attempts: "1s" # tez hadoop::common::tez_conf_dir: "/etc/tez/conf" diff --git a/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp index 75d02f939..f6e9d3838 100644 --- a/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp @@ -56,6 +56,7 @@ class hadoop_hive { $metastore_schema_verification = true, $server2_thrift_port = "10000", $server2_thrift_http_port = "10001", + $server2_sleep_interval_between_start_attempts = "60s", $hive_execution_engine = "mr") { include hadoop_hive::client_package if ($kerberos_realm and $kerberos_realm != "") { diff --git a/bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml b/bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml index 4c3c7efd4..76f6e3a07 100644 --- a/bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml +++ b/bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml @@ -108,6 +108,11 @@ <value><%= @server2_thrift_http_port %></value> </property> +<property> + <name>hive.server2.sleep.interval.between.start.attempts</name> + <value><%= @server2_sleep_interval_between_start_attempts %></value> +</property> + <% if @metastore_uris != "" %> <property> <name>hive.metastore.uris</name>