From 4233a7c2923c3acc5fc81e7cb6f0e45c4967dc2a Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 19 Nov 2024 23:11:03 +0100 Subject: [PATCH] better warn --- bundle/config/validate/single_node_cluster.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle/config/validate/single_node_cluster.go b/bundle/config/validate/single_node_cluster.go index e1104f11..c4fc3a23 100644 --- a/bundle/config/validate/single_node_cluster.go +++ b/bundle/config/validate/single_node_cluster.go @@ -71,7 +71,7 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool { return true } if profile != "singleNode" { - log.Warnf(ctx, "spark_conf spark.databricks.cluster.profile is not singleNode in single-node cluster spec") + log.Warnf(ctx, "spark_conf spark.databricks.cluster.profile is not singleNode in single-node cluster spec: %s", profile) return true } @@ -81,7 +81,7 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool { return true } if !strings.HasPrefix(master, "local") { - log.Warnf(ctx, "spark_conf spark.master is not local in single-node cluster spec") + log.Warnf(ctx, "spark_conf spark.master does not start with local in single-node cluster spec: %s", master) return true } @@ -91,7 +91,7 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool { return true } if resourceClass != "SingleNode" { - log.Warnf(ctx, "custom_tag ResourceClass is not SingleNode in single-node cluster spec") + log.Warnf(ctx, "custom_tag ResourceClass is not SingleNode in single-node cluster spec: %s", resourceClass) return true }