Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 19158 invoked from network); 14 Aug 2009 19:38:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 19:38:33 -0000 Received: (qmail 55212 invoked by uid 500); 14 Aug 2009 19:38:39 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 55181 invoked by uid 500); 14 Aug 2009 19:38:39 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 55171 invoked by uid 99); 14 Aug 2009 19:38:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 19:38:39 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 19:38:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C16C9234C004 for ; Fri, 14 Aug 2009 12:38:14 -0700 (PDT) Message-ID: <1923685793.1250278694778.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 12:38:14 -0700 (PDT) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-1768) REST server has upper limit of 5k PUT In-Reply-To: <1177588384.1250278454838.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743387#action_12743387 ] stack commented on HBASE-1768: ------------------------------ This is pain if upload is xml or encoded. Here is patch: {code} Index: src/java/org/apache/hadoop/hbase/rest/Dispatcher.java =================================================================== --- src/java/org/apache/hadoop/hbase/rest/Dispatcher.java (revision 804291) +++ src/java/org/apache/hadoop/hbase/rest/Dispatcher.java (working copy) @@ -81,6 +81,7 @@ 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 void init() throws ServletException { super.init(); - HBaseConfiguration conf = new HBaseConfiguration(); + this.conf = new HBaseConfiguration(); HBaseAdmin admin = null; try { @@ -360,7 +361,7 @@ String resultant = ""; BufferedReader r = request.getReader(); - int maxLength = 5000; // tie to conf + int maxLength = this.conf.getInt("hbase.rest.input.limit", 10 * 1024 * 1024); int bufferLength = 640; // TODO make s maxLength and c size values in configuration {code} > REST server has upper limit of 5k PUT > ------------------------------------- > > Key: HBASE-1768 > URL: https://issues.apache.org/jira/browse/HBASE-1768 > Project: Hadoop HBase > Issue Type: Bug > Reporter: stack > Priority: Critical > Fix For: 0.20.0 > > > This is getting in way of our uploading images to hbase. > Below is what we see when big img to put. > {code} > $ curl -v -T /tmp/y.row http://localhost:12041/api/jimk/row/x?column=misc:stack_testing: > * About to connect() to localhost port 12041 > * Trying 127.0.0.1... connected > * Connected to localhost (127.0.0.1) port 12041 > > PUT /api/jimk/row/x?column=misc:stack_testing: HTTP/1.1 > > User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 > > Host: localhost:12041 > > Accept: */* > > Content-Length: 229886 > > Expect: 100-continue > > > < HTTP/1.1 100 Continue > HTTP/1.1 500 Internal Server Error > < Content-Type: text/xml; charset=iso-8859-1 > < Transfer-Encoding: chunked > < Server: Jetty(6.1.14) > * Connection #0 to host localhost left intact > * Closing connection #0 > 500org.apache.hadoop.hbase.rest.exception.HBaseRestException: XML document structures must start and end within the same entity.true[stack@aa0-007-2 tmp]$ > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.