Skip to content

Commit bd43d32

Browse files
committed
Fixed Casting issue for max reducers.
1 parent 85c5b5d commit bd43d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cloudera/utils/hadoop/hms/mirror/StatsCalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static void setSessionOptions(EnvironmentTable controlEnv, EnvironmentTab
8989
applyEnv.addIssue("Adjusting " + HIVE_MAX_REDUCERS + " to handle partition load");
9090
applyEnv.addSql("Setting " + HIVE_MAX_REDUCERS,
9191
"set " + HIVE_MAX_REDUCERS + "=" +
92-
Double.toString(controlEnv.getPartitions().size() * 2));
92+
(int)(controlEnv.getPartitions().size() * 2));
9393
}
9494
}
9595

0 commit comments

Comments
 (0)