showing hbase data in JSP taking several minutes
posted 4 years ago
I am accessing HBase data from JSP using Hive queries.Now since Hbase can store huge data like Terabytes of data.If the data is in so much the hive query (which converts into map reduce tasks) will take several minutes of time.So will the JSP page wait say 10 minutes to display the data.What should be the strategy.Is this the correct approach.If not so what is the best approach to show huge hbase data on JSP.
posted 3 years ago
You need inspect your use case care fully. Showing a large amounts of data in a JSP is not necessarily a good practice. There is no surprise that it does take long time to process terrabytes of data. One thing you may want to do is run your process in a batch mode (example: nightly or few times in a day) and have the result stored in HDFS. Have your JSP read the readily available result from HDF and display it on demand.