HBASE-1768 REST server has upper limit of 5k PUT
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@804340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
53b0527a5d
commit
58e3ad8b6c
|
@ -332,6 +332,7 @@ Release 0.20.0 - Unreleased
|
|||
what N was
|
||||
HBASE-1745 [tools] Tool to kick region out of inTransistion
|
||||
HBASE-1757 REST server runs out of fds
|
||||
HBASE-1768 REST server has upper limit of 5k PUT
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -81,6 +81,7 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
|
|||
protected RowController rowController;
|
||||
protected ScannerController scannercontroller;
|
||||
protected TimestampController tsController;
|
||||
private HBaseConfiguration conf = null;
|
||||
|
||||
public enum ContentType {
|
||||
XML("text/xml"), JSON("application/json"), PLAIN("text/plain"), MIME(
|
||||
|
@ -135,7 +136,7 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
|
|||
public void init() throws ServletException {
|
||||
super.init();
|
||||
|
||||
HBaseConfiguration conf = new HBaseConfiguration();
|
||||
this.conf = new HBaseConfiguration();
|
||||
HBaseAdmin admin = null;
|
||||
|
||||
try {
|
||||
|
@ -360,7 +361,9 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
|
|||
String resultant = "";
|
||||
BufferedReader r = request.getReader();
|
||||
|
||||
int maxLength = 5000; // tie to conf
|
||||
int defaultmaxlength = 10 * 1024 * 1024;
|
||||
int maxLength = this.conf == null?
|
||||
defaultmaxlength: this.conf.getInt("hbase.rest.input.limit", defaultmaxlength);
|
||||
int bufferLength = 640;
|
||||
|
||||
// TODO make s maxLength and c size values in configuration
|
||||
|
|
Loading…
Reference in New Issue