使用 FileHiveMetastore 的 S3 上的 Presto DDL 不起作用

Presto DDL on S3 using FileHiveMetastore not working

我尝试使用具有以下配置的 FileHiveMetaStore 将 Presto 连接到 S3,但是当我尝试使用提到的语句创建 table 但它失败并显示下面提到的错误消息时。如果提到的配置有误,谁能告诉我。

我可以看到这是可能的,因为有人已经提到可以连接

参考线程:-

错误消息:- com.amazonaws.services.s3.model.AmazonS3Exception:指定的存储桶不存在(服务:Amazon S3;状态代码:404;错误代码:NoSuchBucket;请求 ID:33F01AA7477B12FC)

**connector.name=hive-hadoop2
hive.metastore=file
hive.metastore.catalog.dir=s3://ap-south-1.amazonaws.com/prestos3test/
hive.s3.aws-access-key=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
hive.s3.aws-secret-key=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
hive.s3.endpoint=http://prestos3test.s3-ap-south-1.amazonaws.com
hive.s3.ssl.enabled=false
hive.metastore.uri=thrift://localhost:9083**

外部Table创作

**创建 TABLE 道具数据 ( prop0 整数, prop1 整数, prop2 变量, prop3 可变字符, prop4 varchar

) 和 ( 格式 = 'ORC', external_location = 's3://prestos3test' )**

谢谢 桑托什

我从其他角落得到了帮助,认为这对其他人有帮助,因此在下面记录了必要的配置。

connector.name=hive-hadoop2
hive.metastore=file
hive.metastore.catalog.dir=s3://prestos3test/
hive.s3.aws-access-key=yyyyyyyyyyyyyyyyyy
hive.s3.aws-secret-key=zzzzzzzzzzzzzzzzzzzzzz
hive.s3.ssl.enabled=false
hive.metastore.uri=thrift://localhost:9083

谢谢 桑托什