Hi I am using an Restful web service to query data from Apache hive and I am using glassfish 4.0 server. It runs fine but suddenly it throws
java.lang.IllegalStateException: Queue full
Can any one tell me what may be the reason for this and how to clear this?
EDIT
This is my java code
JavaSparkContext ctx = new JavaSparkContext(new SparkConf().setAppName("AppName").setMaster("MasterUrl"));
HiveContext sqlContext = new HiveContext(ctx.sc());
Row result = sqlContext.sql("Select * from Tablename");
for (int i = 0; i < result.length; i++) {
output += "{\"" + "Column1" + "\":\"" + result[i].getString(0) + "\",\"" + "Column2" + "\":\"" + result[i].getString(1) + "\",\"" + "Column3" + "\":\"" + result[i].getString(2) + "\",\"" + "Column4" + "\":\"" + result[i].getString(3) + "\",\"" + "Column5" + "\":\"" + result[i].getInt(4) + "\",\"" + "Column6" + "\":\"" + result[i].getString(5) + "\",\"" + "Column7" + "\":\"" + result[i].getString(6) + "\"}" + "\n";
}