mirror of https://github.com/databricks/cli.git
better warn
This commit is contained in:
parent
96a0a3ec27
commit
4233a7c292
|
@ -71,7 +71,7 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if profile != "singleNode" {
|
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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if !strings.HasPrefix(master, "local") {
|
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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if resourceClass != "SingleNode" {
|
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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue