Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The kmeans algorithm fails when forced to singlenode with the following exception:
Caused by: org.apache.sysml.runtime.DMLRuntimeException: Invalid values for matrix indexing: dimensions of the source matrix [451x10] do not match the shape of the matrix specified by indices [1:10, 1:10]. at org.apache.sysml.runtime.matrix.data.MatrixBlock.leftIndexingOperations(MatrixBlock.java:3654) at org.apache.sysml.runtime.matrix.data.MatrixBlock.leftIndexingOperations(MatrixBlock.java:3631) at org.apache.sysml.runtime.instructions.cp.MatrixIndexingCPInstruction.processInstruction(MatrixIndexingCPInstruction.java:95) at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:286)
Furthermore, there seems to be an issue of unnecessary spark context creation - in hybrid_spark mode we do not instantiate the spark context, while in forced singlenode we do.