java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Nidhi Mehta,
  • 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)
    via by Nidhi Mehta,
  • when I do this in R: covtype = h2o.importFile(path="smalldata/covtype/covtype.20k.data") covtype[,55] = as.factor(covtype[,55]) hh_balanced = h2o.gbm(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10, distribution="multinomial") hh_balanced = h2o.random_forest(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10) I get this: ERRR: Unexpected incompatible espc, [0, 764, 1533, 2506, 3665, 4991, 6315, 7664, 9026, 10403, 11787, 13167, 14536, 15756, 16938, 18220, 19462, 20638, 21718, 22941, 24097, 25208, 26538, 27498, 28649, 30015, 31393, 32652, 33898, 35048, 36155, 36754, 37330, 37978, 38640, 39279, 39916, 40586, 41192, 42039] != [0, 507, 1015, 1524, 2033, 2543, 3056, 3566, 4077, 4587, 5098, 5608, 6118, 6630, 7137, 7644, 8149, 8654, 9159, 9663, 10169, 10675, 11185, 11692, 12202, 12713, 13223, 13734, 14239, 14744, 15253, 15760, 16266, 16773, 17281, 17789, 18297, 18806, 19315, 20000] java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) barrier onExCompletion for hex.tree.gbm.GBM$GBMDriver@4fd2ac36 barrier onExCompletion for hex.ModelBuilder$1@3ffc4956 java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
    via by Eric Eckstrand,
  • when I do this in R: covtype = h2o.importFile(path="smalldata/covtype/covtype.20k.data") covtype[,55] = as.factor(covtype[,55]) hh_balanced = h2o.gbm(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10, distribution="multinomial") hh_balanced = h2o.random_forest(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10) I get this: ERRR: Unexpected incompatible espc, [0, 764, 1533, 2506, 3665, 4991, 6315, 7664, 9026, 10403, 11787, 13167, 14536, 15756, 16938, 18220, 19462, 20638, 21718, 22941, 24097, 25208, 26538, 27498, 28649, 30015, 31393, 32652, 33898, 35048, 36155, 36754, 37330, 37978, 38640, 39279, 39916, 40586, 41192, 42039] != [0, 507, 1015, 1524, 2033, 2543, 3056, 3566, 4077, 4587, 5098, 5608, 6118, 6630, 7137, 7644, 8149, 8654, 9159, 9663, 10169, 10675, 11185, 11692, 12202, 12713, 13223, 13734, 14239, 14744, 15253, 15760, 16266, 16773, 17281, 17789, 18297, 18806, 19315, 20000] java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) barrier onExCompletion for hex.tree.gbm.GBM$GBMDriver@4fd2ac36 barrier onExCompletion for hex.ModelBuilder$1@3ffc4956 java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
    via by Eric Eckstrand,
    • 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)
    No Bugmate found.