Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7FD1A177CF for ; Fri, 3 Oct 2014 09:48:16 +0000 (UTC) Received: (qmail 5684 invoked by uid 500); 3 Oct 2014 09:48:14 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 5599 invoked by uid 500); 3 Oct 2014 09:48:14 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 5574 invoked by uid 99); 3 Oct 2014 09:48:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 09:48:14 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.213.41 as permitted sender) Received: from [209.85.213.41] (HELO mail-yh0-f41.google.com) (209.85.213.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 09:47:47 +0000 Received: by mail-yh0-f41.google.com with SMTP id i57so236873yha.14 for ; Fri, 03 Oct 2014 02:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0N1RnmNFJlVE5eFXYviopi/4qAVlZlqZPp+7aAcREqA=; b=usHAlZY8fRQTtWOdiJaqLNGJSEBmCp6gft3QYIbj3Q5diWBl+jsY2FKPuCzsh8L2Ie JAhoQ6odBNd1zgki7TDpQt/4h1DPxzgNm9TqotnLvK8jLxpxdpHOq1I3ggBXJM3UMsyq pyrvFsrKhKRlSeeyABbXSwdDh0VrRd7aLnwgLyNBK8V+gboehP+2ilrfXGUo0rh0SMNu AQ34Bgg9uLLgZ96SjglWw9SErihb8z7Gfwmvlkkba8Zpjm9sJMcqCITg3FOGNSECdGV1 8OvDHHIk5t9as8T+1kiHbChSL6uN0KYn4MiIYekfcycWo4xjblMWMU3cewc3OfKxGeYV qDnw== MIME-Version: 1.0 X-Received: by 10.236.231.39 with SMTP id k37mr6544192yhq.32.1412329665440; Fri, 03 Oct 2014 02:47:45 -0700 (PDT) Received: by 10.170.163.70 with HTTP; Fri, 3 Oct 2014 02:47:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Oct 2014 02:47:45 -0700 Message-ID: Subject: Re: Get default split policy From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=089e0103e73003b243050481a089 X-Virus-Checked: Checked by ClamAV on apache.org --089e0103e73003b243050481a089 Content-Type: text/plain; charset=UTF-8 getRegionSplitPolicyClassName() calls getValue(SPLIT_POLICY) and: public String getValue(String key) { byte[] value = getValue(Bytes.toBytes(key)); if (value == null) return null; This means that split policy wasn't set for this table. The following global setting would be effective (see hbase-default.xml): hbase.regionserver.region.split.policy org.apache.hadoop.hbase.regionserver.IncreasingToUpperBoundRegionSplitPolicy On Fri, Oct 3, 2014 at 2:04 AM, Serega Sheypak wrote: > HTableDescriptor descriptor = > admin.getTableDescriptor(Bytes.toBytes("my_table")); > System.out.println("descriptor.getRegionSplitPolicyClassName() : " + > descriptor.getRegionSplitPolicyClassName()); > > prints: > descriptor.getRegionSplitPolicyClassName() : null > > What do I do wrong? > > 2014-10-03 12:53 GMT+04:00 Serega Sheypak : > > > Hi, I do can get it from Java API I was wandering is there any chance to > > get it use shell. > > > > 2014-10-02 23:48 GMT+04:00 Ted Yu : > > > >> Please see http://hbase.apache.org/book.html#arch.region.splits > >> > >> On Thu, Oct 2, 2014 at 12:46 PM, Serega Sheypak < > serega.sheypak@gmail.com > >> > > >> wrote: > >> > >> > Hi, is that true that I can set split policy per cluster or per > table? > >> > How can I get current split policy for cluster/table? > >> > > >> > > > > > --089e0103e73003b243050481a089--