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 66B61200D27 for ; Wed, 25 Oct 2017 16:59:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 64FDD1609E5; Wed, 25 Oct 2017 14:59:15 +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 ABAF01609DD for ; Wed, 25 Oct 2017 16:59:14 +0200 (CEST) Received: (qmail 20825 invoked by uid 500); 25 Oct 2017 14:59:13 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 20816 invoked by uid 99); 25 Oct 2017 14:59:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 14:59:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C1C99DFA0C; Wed, 25 Oct 2017 14:59:12 +0000 (UTC) From: ravipesala To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org Message-ID: Subject: [GitHub] carbondata pull request #1436: [WIP][CARBONDATA-1617] Merging carbonindex fi... Content-Type: text/plain Date: Wed, 25 Oct 2017 14:59:12 +0000 (UTC) archived-at: Wed, 25 Oct 2017 14:59:15 -0000 GitHub user ravipesala opened a pull request: https://github.com/apache/carbondata/pull/1436 [WIP][CARBONDATA-1617] Merging carbonindex files within segment Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [X ] Make sure the PR title is formatted like: `[CARBONDATA-] Description of pull request` - [ X] Make sure to add PR description including Problem : The first-time query of carbon becomes very slow. It is because of reading many small carbonindex files and cache to the driver at the first time. Many carbonindex files are created in below case Loading data in large cluster For example, if the cluster size is 100 nodes then for each load 100 index files are created per segment. So after 100 loads, the number of carbonindex files becomes 10000. . It will be slower to read all the files from the driver since a lot of namenode calls and IO operations. Solution : Merge the carbonindex files in two levels.so that we can reduce the IO calls to namenode and improves the read performance. Merge within a segment. Merge the carbonindex files to single file immediately after load completes within the segment. It would be named as a .carbonindexmerge file. It is actually not a true data merging but a simple file merge. So that the current structure of carbonindex files does not change. While reading we just read one file instead of many carbonindex files within the segment. - [ ] Any interfaces changed? - [ ] Any backward compatibility impacted? - [ ] Document update required? - [ ] Testing done Please provide details on - Whether new unit test cases have been added or why no new tests are required? - How it is tested? Please attach test report. - Is it a performance related change? Please attach the performance test report. - Any additional information to help reviewers in testing this change. - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/ravipesala/incubator-carbondata carbon-index-merge Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/1436.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1436 ---- commit bbabb705b8dc81a6569b66ee3bb1765de04348c7 Author: ravipesala Date: 2017-10-25T05:43:22Z Merging carbonindex files within segment ---- ---