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 C737C200D3C for ; Tue, 14 Nov 2017 22:49:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C5862160BD7; Tue, 14 Nov 2017 21:49:04 +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 1760F160C07 for ; Tue, 14 Nov 2017 22:49:03 +0100 (CET) Received: (qmail 33409 invoked by uid 500); 14 Nov 2017 21:49:03 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 33398 invoked by uid 99); 14 Nov 2017 21:49:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2017 21:49:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 408F319017D for ; Tue, 14 Nov 2017 21:49:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id AB3XEunbc99H for ; Tue, 14 Nov 2017 21:49:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2257D5FCDA for ; Tue, 14 Nov 2017 21:49:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 67ADBE0DF0 for ; Tue, 14 Nov 2017 21:49:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1F5F2240DA for ; Tue, 14 Nov 2017 21:49:00 +0000 (UTC) Date: Tue, 14 Nov 2017 21:49:00 +0000 (UTC) From: "Shreyas Joshi (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-18066) Unable to insert data into S3 backed table from Hive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Nov 2017 21:49:05 -0000 Shreyas Joshi created HIVE-18066: ------------------------------------ Summary: Unable to insert data into S3 backed table from Hive Key: HIVE-18066 URL: https://issues.apache.org/jira/browse/HIVE-18066 Project: Hive Issue Type: Improvement Components: Hive Environment: Hive 1.2.0 Hadoop 2.6.0 HDFS AWS- S3A Debian jessie Reporter: Shreyas Joshi I am trying to create a table and insert data into a table on S3 from Hive like: {code:sql} create table my_db.test_table ( userid int ) location 's3a://username:pass@bucket/s3-test/test-table' {code} This works, but when I try inserting data into this table like: {code:sql} INSERT INTO my_db.test_table VALUES (1); {code} It fails, and here's what I see: {code} hive> insert into test values (1); -chgrp: '' does not match expected pattern for group Usage: hadoop fs [generic options] -chgrp [-R] GROUP PATH... Failed with exception Wrong FS: s3a://username:pass@bucket/s3-test/test-table/.hive-staging_hive_2017-11-13_17-37-21_376_4109060838187898328-1/-ext-10002, expected: hdfs://: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask {code} The {{hdfs://:}} in the error seems to be coming from the {{fs.default.name}} setting in {{core-site.xml}} If I insert data into the table via other other means, I can successfully query the table from Hive. So, insertion not selection seems to be the problem. What might be happening here? -- This message was sent by Atlassian JIRA (v6.4.14#64029)