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

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

    Automated exception search integrated into your IDE

  4. 0

    GLRM Error: Can not make vectors of different length compatible

    Google Groups | 1 year ago | Unknown author
    java.lang.IllegalArgumentException: Can not make vectors of different length compatible!

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Vectors different numbers of chunks, 71 and 1

      at water.fvec.Frame.checkCompatible()
    2. water.fvec
      Frame.checkCompatible
      1. water.fvec.Frame.checkCompatible(Frame.java:422)
      1 frame
    3. water
      MRTask2.doAll
      1. water.MRTask2.asyncExec(MRTask2.java:248)
      2. water.MRTask2.dfork(MRTask2.java:266)
      3. water.MRTask2.doAll(MRTask2.java:220)
      4. water.MRTask2.doAll(MRTask2.java:218)
      4 frames
    4. water.fvec
      Frame.deepSlice
      1. water.fvec.Frame.deepSlice(Frame.java:757)
      1 frame
    5. water.exec
      Exec2.exec
      1. water.exec.ASTSlice.exec(AST.java:254)
      2. water.exec.ASTAssign.exec(AST.java:451)
      3. water.exec.ASTStatement.exec(AST.java:84)
      4. water.exec.Exec2.exec(Exec2.java:114)
      4 frames
    6. water.api
      Request.serveGrid
      1. water.api.Exec2.serve(Exec2.java:35)
      2. water.api.Request.serveGrid(Request.java:140)
      2 frames
    7. water
      Request2.superServeGrid
      1. water.Request2.superServeGrid(Request2.java:478)
      1 frame
    8. water.api
      RequestServer.serve
      1. water.api.Exec2.serveGrid(Exec2.java:77)
      2. water.api.Request.serve(Request.java:117)
      3. water.api.RequestServer.serve(RequestServer.java:394)
      3 frames
    9. water
      NanoHTTPD$HTTPSession.run
      1. water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:425)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame