Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-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 7013A18C89 for ; Wed, 20 Jan 2016 03:46:31 +0000 (UTC) Received: (qmail 93313 invoked by uid 500); 20 Jan 2016 03:46:29 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 93112 invoked by uid 500); 20 Jan 2016 03:46:29 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 93102 invoked by uid 99); 20 Jan 2016 03:46:29 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2016 03:46:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C898EC3511 for ; Wed, 20 Jan 2016 03:46:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.98 X-Spam-Level: ** X-Spam-Status: No, score=2.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=liulishuo-com.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id m_vBp0GViPoE for ; Wed, 20 Jan 2016 03:46:20 +0000 (UTC) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C91212054B for ; Wed, 20 Jan 2016 03:46:19 +0000 (UTC) Received: by mail-ig0-f169.google.com with SMTP id t15so93087165igr.0 for ; Tue, 19 Jan 2016 19:46:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liulishuo-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=1VoTQmgtD/evU5JepWq3oVunT0ZL7JhYWKgB2J+6Z/o=; b=mGuM/d6lQnrpp5lGt85g28LSTuR8CEiHICvyLpxaZSFTVy5H9VQf09UrofAw1RwQCD MhNl5slMQ6b8luBW6/ABZjOXAVHd7y54LQZS9ovBPXEwf2S7Rf6EnkQYYF9mb3InuAP5 30Fyk4VM9MyQSHN4WpIFLIWQ1VcwaqLZZd3BUwOYUmYjMsgZ3lHeqUOSc04E7G901v7O /u7uQFXypXRLxT1VByQj6oTW5debSvOAC6ujNKs/OyFdmbVEdKYjHM9P0sZ3KkMBzCrQ b7z9MVP+A1QOf9ombRTJm8UbIA26k8agLrmdWhky6fUFuQJyIls+guHWwzsOIhf7d0b7 NoxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=1VoTQmgtD/evU5JepWq3oVunT0ZL7JhYWKgB2J+6Z/o=; b=SgLRE8ZL+w1sr805IBEWWb1dhimqNdNk2cllDVsZXwsvdOPp6uSNHEbBpX3F8KCdVi 3/8PWf5lqlWpkYPD5EPlRlt4aAk7JiYTfCc1UhWjU6OmPKy9JXkjLRHmSn2d4Yg6dchd xC79VpHTWEgD6xBI6uvgqYcyT8xCDBgKfgRSnC66mHw38pOihBVOFlBMwMe/JVxR/w+6 g3WyWO+iQn1mOftInzQxj2fDKWNrz5bpTl9cPxvdQ7rOmQWGfjd4csVItCk7WvMfKTQN Jrj54mQC2g5/fl7Sny8g3AM6B2syKKVkxBJTlBsOylI/7d475cZn84f7D/1tke532lIX b0sw== X-Gm-Message-State: AG10YOTo+6Qa+S8GStAnnCq3Ip9eD2pcQSg6na74NxfUUYLs5ETX5Pc494646O7JayIffTYICZjWK2vZ4w5BzSng MIME-Version: 1.0 X-Received: by 10.50.88.72 with SMTP id be8mr1452234igb.45.1453261579024; Tue, 19 Jan 2016 19:46:19 -0800 (PST) Received: by 10.36.101.5 with HTTP; Tue, 19 Jan 2016 19:46:18 -0800 (PST) Date: Wed, 20 Jan 2016 11:46:18 +0800 Message-ID: Subject: the `use database` command will change the scheme of target table? From: =?UTF-8?B?6JGj5Lqa5Yab?= To: user@hive.apache.org Content-Type: multipart/alternative; boundary=089e013cbeb42f15700529bbd4d5 --089e013cbeb42f15700529bbd4d5 Content-Type: text/plain; charset=UTF-8 hi list, we use the HDFS and S3 as the Hive Filesystem at the same time. here has an issue: *scenario* 1: hive command: use default; create table temp.t1 // the database of temp which points to HDFS as select c1 from prd.t2; // the database of prd and the table t2 are all points to S3 it works well. *scenario* 2: hive command: *use prd; * create table temp.t1 // the database of temp which points to HDFS as select c1 from prd.t2; // the database of prd and the table t2 are all point to S3 the exception occurred with: Failed with exception Unable to move source s3a://warehouse-tmp/tmp/hive-ubuntu/hive_2016-01-20_xxxxxx/-ext-10001 to destination hdfs://hadoop-0/warehouse/temp.db/t1/ and then, I try to change the Scratch space by the configuration key: hive.exec.scratchdir, and set the value to hdfs://hadoop-0/*tmp-foo*/... , but also failed with: Unable to move source s3a://warehouse-tmp*/tmp-foo* ... to it seems to the *use database* command change the scheme of the path for target table? hive version: 0.13.1 thanks. --089e013cbeb42f15700529bbd4d5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
hi list,=C2=A0
we use the HDFS and S3 as= the Hive Filesystem at the same time. =C2=A0 here has an issue:=C2=A0
<= br>
scenario 1:

hive command:
=C2=A0
use default;= =C2=A0

create table temp.t1 =C2=A0 =C2=A0 =C2=A0 // the database of = temp which points to HDFS=C2=A0
as=C2=A0
select c1 from prd.t2; =C2= =A0 =C2=A0 // the database of prd and the table t2 are all points to S3
=
it works well.=C2=A0


scenario 2:=C2=A0

hive co= mmand:=C2=A0

use prd;=C2=A0

create table temp.t1 =C2= =A0 =C2=A0 =C2=A0 // the database of temp which points to HDFS=C2=A0
as= =C2=A0
select c1 from prd.t2; =C2=A0 =C2=A0 // the database of prd and t= he table t2 are all point to S3

the exception occurred with:=C2=A0
Failed with exception Unable to move source s3a://warehouse-tmp/tmp/h= ive-ubuntu/hive_2016-01-20_xxxxxx/-ext-10001 to destination hdfs://hadoop-0= /warehouse/temp.db/t1/

and then, I try to change the Scratch space b= y the configuration key: hive.exec.scratchdir, and set the value to hdfs://= hadoop-0/tmp-foo/... , but also failed with:

Unable to move s= ource s3a://warehouse-tmp/tmp-foo ... to=C2=A0

it seems to th= e use database command change the scheme of the path for targ= et table?=C2=A0

hive version: 0.13.1=C2=A0

than= ks.=C2=A0
--089e013cbeb42f15700529bbd4d5--