java.lang.IllegalArgumentException: requirement failed: Both matrices must have the same number of rows. A.numRows: 159, B.numRows: 158

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Delete the corrupted index files and on startup, Kafka server will rebuild it.

Solutions on the web

via Stack Overflow by Gao
, 3 months ago
requirement failed: Both matrices must have the same number of rows. A.numRows: 159, B.numRows: 158
via GitHub by akka-ci
, 1 year ago
requirement failed: Cannot push port (requestPrepOut) twice
via GitHub by huntc
, 1 year ago
requirement failed: Cannot push port (requestPrepOut) twice
via GitHub by jypma
, 1 year ago
requirement failed: Cannot push port (requestPrepOut) twice
via GitHub by tpoterba
, 1 year ago
requirement failed: The length of the values array must be less than Int.MaxValue. Currently numRows * numCols: 12619826244
via GitHub by kstokoz
, 1 year ago
requirement failed: Cannot push port (requestPrepOut) twice
java.lang.IllegalArgumentException: requirement failed: Both matrices must have the same number of rows. A.numRows: 159, B.numRows: 158
at scala.Predef$.require(Predef.scala:224)
at org.apache.spark.mllib.linalg.distributed.BlockMatrix.blockMap(BlockMatrix.scala:359)
at com.sankuai.nlpml.kg.syn_sim.SynSim$.process(SynSim.scala:312)
at com.sankuai.nlpml.kg.syn_sim.SynSim$.main(SynSim.scala:365)
at com.sankuai.nlpml.kg.syn_sim.SynSim.main(SynSim.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

3 times, 1 day ago
11 times, 1 week ago
Once, 1 month ago
12 times, 1 month ago
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.