Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2B661200BF5 for ; Sat, 7 Jan 2017 13:47:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 29EE0160B3C; Sat, 7 Jan 2017 12:47:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6F855160B2F for ; Sat, 7 Jan 2017 13:47:00 +0100 (CET) Received: (qmail 25609 invoked by uid 500); 7 Jan 2017 12:46:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 25574 invoked by uid 99); 7 Jan 2017 12:46:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2017 12:46:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9957D2C2A6D for ; Sat, 7 Jan 2017 12:46:58 +0000 (UTC) Date: Sat, 7 Jan 2017 12:46:58 +0000 (UTC) From: "Ashish Singhi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14061) Support CF-level Storage Policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 07 Jan 2017 12:47:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-14061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15807447#comment-15807447 ] Ashish Singhi commented on HBASE-14061: --------------------------------------- lgtm > Support CF-level Storage Policy > ------------------------------- > > Key: HBASE-14061 > URL: https://issues.apache.org/jira/browse/HBASE-14061 > Project: HBase > Issue Type: Sub-task > Components: HFile, regionserver > Environment: hadoop-2.6.0 > Reporter: Victor Xu > Assignee: Yu Li > Attachments: HBASE-14061-master-v1.patch, HBASE-14061.v2.patch, HBASE-14061.v3.patch, HBASE-14061.v4.patch > > > After reading [HBASE-12848|https://issues.apache.org/jira/browse/HBASE-12848] and [HBASE-12934|https://issues.apache.org/jira/browse/HBASE-12934], I wrote a patch to implement cf-level storage policy. > My main purpose is to improve random-read performance for some really hot data, which usually locates in certain column family of a big table. > Usage: > $ hbase shell > > alter 'TABLE_NAME', METADATA => {'hbase.hstore.block.storage.policy' => 'POLICY_NAME'} > > alter 'TABLE_NAME', {NAME=>'CF_NAME', METADATA => {'hbase.hstore.block.storage.policy' => 'POLICY_NAME'}} > HDFS's setStoragePolicy can only take effect when new hfile is created in a configured directory, so I had to make sub directories(for each cf) in region's .tmp directory and set storage policy for them. > Besides, I had to upgrade hadoop version to 2.6.0 because dfs.getStoragePolicy cannot be easily written in reflection, and I needed this api to finish my unit test. -- This message was sent by Atlassian JIRA (v6.3.4#6332)