Re: Getting an error in insertion to mysql through sparkcontext in java..

2015-12-20 Thread Ted Yu
Was there stack trace following the error ? Which Spark release are you using ? Cheers > On Dec 19, 2015, at 10:43 PM, Sree Eedupuganti wrote: > > i had 9 rows in my Mysql table > > > options.put("dbtable", "(select * from employee"); >options.put("lowerBound",

Getting an error in insertion to mysql through sparkcontext in java..

2015-12-19 Thread Sree Eedupuganti
i had 9 rows in my Mysql table options.put("dbtable", "(select * from employee"); options.put("lowerBound", "1"); options.put("upperBound", "8"); options.put("numPartitions", "2"); Error : Parameter index out of range (1 > number of parameters, which is 0) -- Best Regards,