java.lang.IllegalArgumentException: Vectors different numbers of chunks, 3 and 1

JIRA | Spencer Aiello | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    On master. Build git hash:83fd2784f97453ba46fa6918ef4b5101403c6cbe Here is the R script - library(h2o) myIP = '10.0.0.5' myPort = 54321 localH2O = h2o.init(ip=myIP,port=myPort,Xmx="10g") df = data.frame(matrix(1:300000, nrow=300000, ncol=150)) sample.IDs <- 1:60000 index <- data.frame(ifelse(df[,1] %in% sample.IDs,1,0)) colnames(index)="index" #Parsing an index vector to H2O index.h2o = as.h2o(localH2O, index, key="index.h2o") #Parsing a dataframe to H2O df.hex = as.h2o(localH2O, df, key="df.hex") # Creating a vector (of the same vecgroup as the original data frame) in the df df.hex$index = 0 # Copying indices from an H2O parsed data into the newly created vector df.hex$index = index.h2o # Spliting the dataset using the new vector df.train = h2o.assign(df.hex[df.hex$index==1,],"df.train") Error in .h2o.__remoteSend(client, .h2o.__PAGE_EXEC2, str = expr) : http://10.0.0.5:54321/2/Exec2.json returned the following error: Vectors different numbers of chunks, 71 and 1 #Neither does this work- df.train = h2o.assign(df.hex[index.h2o==1,],"df.train") Error in .h2o.__remoteSend(client, .h2o.__PAGE_EXEC2, str = expr) : http://10.0.0.5:54321/2/Exec2.json returned the following error: Vectors different numbers of chunks, 71 and 1 In the logs- + java.lang.IllegalArgumentException: Vectors different numbers of chunks, 71 and 1 + at water.fvec.Frame.checkCompatible(Frame.java:422) + at water.MRTask2.asyncExec(MRTask2.java:248) + at water.MRTask2.dfork(MRTask2.java:266) + at water.MRTask2.doAll(MRTask2.java:220) + at water.MRTask2.doAll(MRTask2.java:218) + at water.fvec.Frame.deepSlice(Frame.java:757) + at water.exec.ASTSlice.exec(AST.java:254) + at water.exec.ASTAssign.exec(AST.java:451) + at water.exec.ASTStatement.exec(AST.java:84) + at water.exec.Exec2.exec(Exec2.java:114) + at water.api.Exec2.serve(Exec2.java:35) + at water.api.Request.serveGrid(Request.java:140) + at water.Request2.superServeGrid(Request2.java:478) + at water.api.Exec2.serveGrid(Exec2.java:77) + at water.api.Request.serve(Request.java:117) + at water.api.RequestServer.serve(RequestServer.java:394) + at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:425) + at java.lang.Thread.run(Thread.java:744)

    JIRA | 3 years ago | Nidhi Mehta
    java.lang.IllegalArgumentException: Vectors different numbers of chunks, 71 and 1
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    On master. Build git hash:83fd2784f97453ba46fa6918ef4b5101403c6cbe Here is the R script - library(h2o) myIP = '10.0.0.5' myPort = 54321 localH2O = h2o.init(ip=myIP,port=myPort,Xmx="10g") df = data.frame(matrix(1:300000, nrow=300000, ncol=150)) sample.IDs <- 1:60000 index <- data.frame(ifelse(df[,1] %in% sample.IDs,1,0)) colnames(index)="index" #Parsing an index vector to H2O index.h2o = as.h2o(localH2O, index, key="index.h2o") #Parsing a dataframe to H2O df.hex = as.h2o(localH2O, df, key="df.hex") # Creating a vector (of the same vecgroup as the original data frame) in the df df.hex$index = 0 # Copying indices from an H2O parsed data into the newly created vector df.hex$index = index.h2o # Spliting the dataset using the new vector df.train = h2o.assign(df.hex[df.hex$index==1,],"df.train") Error in .h2o.__remoteSend(client, .h2o.__PAGE_EXEC2, str = expr) : http://10.0.0.5:54321/2/Exec2.json returned the following error: Vectors different numbers of chunks, 71 and 1 #Neither does this work- df.train = h2o.assign(df.hex[index.h2o==1,],"df.train") Error in .h2o.__remoteSend(client, .h2o.__PAGE_EXEC2, str = expr) : http://10.0.0.5:54321/2/Exec2.json returned the following error: Vectors different numbers of chunks, 71 and 1 In the logs- + java.lang.IllegalArgumentException: Vectors different numbers of chunks, 71 and 1 + at water.fvec.Frame.checkCompatible(Frame.java:422) + at water.MRTask2.asyncExec(MRTask2.java:248) + at water.MRTask2.dfork(MRTask2.java:266) + at water.MRTask2.doAll(MRTask2.java:220) + at water.MRTask2.doAll(MRTask2.java:218) + at water.fvec.Frame.deepSlice(Frame.java:757) + at water.exec.ASTSlice.exec(AST.java:254) + at water.exec.ASTAssign.exec(AST.java:451) + at water.exec.ASTStatement.exec(AST.java:84) + at water.exec.Exec2.exec(Exec2.java:114) + at water.api.Exec2.serve(Exec2.java:35) + at water.api.Request.serveGrid(Request.java:140) + at water.Request2.superServeGrid(Request2.java:478) + at water.api.Exec2.serveGrid(Exec2.java:77) + at water.api.Request.serve(Request.java:117) + at water.api.RequestServer.serve(RequestServer.java:394) + at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:425) + at java.lang.Thread.run(Thread.java:744)

    JIRA | 3 years ago | Nidhi Mehta
    java.lang.IllegalArgumentException: Vectors different numbers of chunks, 71 and 1

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Vectors different numbers of chunks, 3 and 1

      at water.fvec.Frame.checkCompatible()
    2. water.fvec
      Frame.checkCompatible
      1. water.fvec.Frame.checkCompatible(Frame.java:272)
      1 frame
    3. water
      MRTask2.doAll
      1. water.MRTask2.dfork(MRTask2.java:211)
      2. water.MRTask2.doAll(MRTask2.java:197)
      3. water.MRTask2.doAll(MRTask2.java:189)
      4. water.MRTask2.doAll(MRTask2.java:188)
      4 frames
    4. water.api
      Request.serveGrid
      1. water.api.ConfusionMatrix.serve(ConfusionMatrix.java:59)
      2. water.api.Request.serveGrid(Request.java:116)
      2 frames
    5. water
      Request2.serveGrid
      1. water.Request2.superServeGrid(Request2.java:420)
      2. water.Request2.serveGrid(Request2.java:348)
      2 frames
    6. water.api
      RequestServer.serve
      1. water.api.Request.serve(Request.java:99)
      2. water.api.RequestServer.serve(RequestServer.java:247)
      2 frames
    7. water
      NanoHTTPD$HTTPSession.run
      1. water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:391)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame