我使用了您最新的脚本,该脚本在 Amazon EMR 实例上成功安装了 presto 服务器(版本 0.99)和 java 8。我的数据文件位于使用已加密的客户端客户管理密钥加密的 s3 存储桶中。当我在 s3 中创建引用那些加密数据文件的 hive 表时,hive 可以成功解密记录并将其显示在控制台中。但是,当从 presto 命令行界面查看相同的外部表时,数据会以加密形式显示。我查看了您在以下网址中给出的链接:
https
: //prestodb.io/docs/current/release/release-0.57.html 并将这些属性添加到我的 hive.properties 文件中,如下所示。
hive.s3.connect-timeout=2m
hive.s3.max-backoff-time=10m
hive.s3.max-error-retries=50
hive.metastore-refresh-interval=1m
hive.s3.max-connections=500
hive.s3.max-client-retries=50
connector.name=hive-hadoop2
hive.s3.socket-timeout=2m
hive.s3.aws-access-key=***
hive.s3.aws-secret-key=**
hive.metastore.uri=thrift://localhost:9083
hive.metastore-cache-ttl=20m
hive.s3.staging-directory=/mnt/tmp/
hive.s3.use-instance-credentials=true
任何有关如何使用 presto cli 解密文件的帮助将不胜感激。