hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 董亚军 <ric.d...@liulishuo.com>
Subject Re: Using s3 as warehouse on emr
Date Fri, 22 Jan 2016 12:59:56 GMT
hi,

the location of table created in hive within the location of database by
default.

for example,

create database test location 's3://warehouse/hive/test.db';

use test;

create table t1...

and then the location of t1 will host on s3.

On Fri, Jan 22, 2016 at 8:52 PM, Zsolt Tóth <toth.zsolt.bme@gmail.com>
wrote:

> Hi,
>
> I'd like to use S3 as the hive warehouse on my emr 4.x cluster.
> I've set hive.metastore.warehouse.dir=s3n://testbucket/hive_warehouse and
> fs.s3.impl=org.apache.hadoop.fs.s3native.NativeS3FileSystem (not sure if
> this is needed) in the hive-site.xml on the master node. Double checked the
> "set -v" output, the properties are correct.
>
> When I run a command like "create table test1 (x String);" in Hive CLI, it
> is created in the default warehouse dir (/user/hive/warehouse/) instead of
> s3n://...
>
> What am I missing here?
>
> Thanks!
> Zsolt
>

Mime
View raw message