Return-Path: X-Original-To: apmail-impala-dev-archive@minotaur.apache.org Delivered-To: apmail-impala-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD1AC18784 for ; Tue, 22 Mar 2016 22:59:01 +0000 (UTC) Received: (qmail 83434 invoked by uid 500); 22 Mar 2016 22:58:56 -0000 Delivered-To: apmail-impala-dev-archive@impala.apache.org Received: (qmail 83394 invoked by uid 500); 22 Mar 2016 22:58:56 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 83382 invoked by uid 99); 22 Mar 2016 22:58:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 22:58:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 25E7F1A14B9 for ; Tue, 22 Mar 2016 22:58:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id vvhRwx6NbhOn for ; Tue, 22 Mar 2016 22:58:54 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DE3675FACB for ; Tue, 22 Mar 2016 22:58:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id u2MMwqp8013904; Tue, 22 Mar 2016 22:58:52 GMT Message-Id: <201603222258.u2MMwqp8013904@ip-10-146-233-104.ec2.internal> Date: Tue, 22 Mar 2016 22:58:52 +0000 From: "Sailesh Mukil (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Michael Brown , Taras Bobrovytsky , Henry Robinson , Mostafa Mokhtar Reply-To: sailesh@cloudera.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?[Impala-CR](cdh5-trunk)_IMPALA-1878:_Support_INSERT_and_LOAD_DATA_on_S3_and_between_filesystems=0A?= X-Gerrit-Change-Id: I94e15ad67752dce21c9b7c1dced6e114905a942d X-Gerrit-ChangeURL: X-Gerrit-Commit: c19067c83524eb04bf3944b1e1e8590a1856c31a In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.10-rc0 Sailesh Mukil has uploaded a new patch set (#8). Change subject: IMPALA-1878: Support INSERT and LOAD DATA on S3 and between filesystems ...................................................................... IMPALA-1878: Support INSERT and LOAD DATA on S3 and between filesystems Previously Impala disallowed LOAD DATA and INSERT on S3. This patch functionally enables LOAD DATA and INSERT on S3 without making major changes for the sake of improving performance over S3. This patch also enables both INSERT and LOAD DATA between file systems. Added a python S3 client called 'boto3' to access S3 from the python tests. A new class called S3Client is introduced which creates wrappers around the boto3 functions and have the same function signatures as PyWebHdfsClient by deriving from a base abstract class BaseFileSystem so that they can be interchangeably through a 'generic_client'. test_load.py is refactored to use this generic client. The ImpalaTestSuite setup creates a client according to the TARGET_FILESYSTEM environment variable and assigns it to the 'generic_client'. P.S: Currently, the test_load.py runs 15x slower on S3 than on HDFS. Performance needs to be improved in future patches. INSERT performance is slower than on HDFS too. However, larger INSERTs come closer to HDFS permformance than smaller inserts. ACLs are not taken care of for S3 in this patch. It is something that still needs to be discussed before implementing. Change-Id: I94e15ad67752dce21c9b7c1dced6e114905a942d --- M be/src/exec/hdfs-table-sink.cc M be/src/exec/hdfs-table-sink.h M be/src/runtime/coordinator.cc M be/src/runtime/hdfs-fs-cache.h M be/src/util/hdfs-bulk-ops.cc M be/src/util/hdfs-bulk-ops.h M be/src/util/hdfs-util.cc M be/src/util/hdfs-util.h M common/thrift/ImpalaInternalService.thrift M fe/src/main/java/com/cloudera/impala/analysis/InsertStmt.java M fe/src/main/java/com/cloudera/impala/analysis/LoadDataStmt.java M fe/src/main/java/com/cloudera/impala/common/FileSystemUtil.java M fe/src/main/java/com/cloudera/impala/service/Frontend.java M infra/python/deps/requirements.txt M testdata/workloads/functional-query/queries/QueryTest/insert_permutation.test M testdata/workloads/functional-query/queries/QueryTest/multiple-filesystems.test M testdata/workloads/functional-query/queries/QueryTest/truncate-table.test M testdata/workloads/tpch/queries/insert_parquet.test M tests/common/impala_test_suite.py M tests/common/skip.py M tests/custom_cluster/test_insert_behaviour.py M tests/custom_cluster/test_parquet_max_page_header.py M tests/data_errors/test_data_errors.py M tests/metadata/test_compute_stats.py M tests/metadata/test_ddl.py M tests/metadata/test_explain.py M tests/metadata/test_hdfs_encryption.py M tests/metadata/test_hdfs_permissions.py M tests/metadata/test_last_ddl_time_update.py M tests/metadata/test_load.py M tests/metadata/test_partition_metadata.py M tests/metadata/test_recover_partitions.py M tests/metadata/test_show_create_table.py M tests/query_test/test_aggregation.py M tests/query_test/test_cancellation.py M tests/query_test/test_chars.py M tests/query_test/test_compressed_formats.py M tests/query_test/test_insert.py M tests/query_test/test_insert_behaviour.py M tests/query_test/test_insert_parquet.py M tests/query_test/test_join_queries.py M tests/query_test/test_queries.py M tests/query_test/test_scanners.py A tests/util/filesystem_base.py M tests/util/filesystem_utils.py M tests/util/hdfs_util.py A tests/util/s3_util.py 47 files changed, 599 insertions(+), 359 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/74/2574/8 -- To view, visit http://gerrit.cloudera.org:8080/2574 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I94e15ad67752dce21c9b7c1dced6e114905a942d Gerrit-PatchSet: 8 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Sailesh Mukil Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Michael Brown Gerrit-Reviewer: Mostafa Mokhtar Gerrit-Reviewer: Sailesh Mukil Gerrit-Reviewer: Taras Bobrovytsky