diff --git a/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaSetup.java b/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaSetup.java index 4f3074c2..7a61555c 100644 --- a/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaSetup.java +++ b/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaSetup.java @@ -32,11 +32,11 @@ public class GrafanaSetup { public static ShellResult config(Params params) { - GrafanaParams prometheusParams = (GrafanaParams) params; - String user = prometheusParams.user(); - String group = prometheusParams.group(); + GrafanaParams grafanaParams = (GrafanaParams) params; + String user = grafanaParams.user(); + String group = grafanaParams.group(); - LinuxFileUtils.createDirectories(prometheusParams.dataDir(), user, group, Constants.PERMISSION_755, true); + LinuxFileUtils.createDirectories(grafanaParams.dataDir(), user, group, Constants.PERMISSION_755, true); return ShellResult.success("Grafana Configure success!"); }