gpt4 book ai didi

amazon-redshift - Apache Drill 可以连接到 Amazon RedShift 吗?

转载 作者:行者123 更新时间:2023-12-01 02:10:41 25 4
gpt4 key购买 nike

Apache Drill 可以连接到 Amazon RedShift 吗?如果是,任何人都可以帮助我配置 Apache Drill 的配置和插件以连接到 Amazon RedShift 。

最佳答案

我无法从@pavel 获取示例以进行工作。我确定这与驱动程序名称以及我下载和安装的特定驱动程序有关。

但是,我能够使用以下步骤成功连接到 AWS Redshift。

导航到您已将钻取下载到的文件夹:

cd ~/Downloads/apache-drill-1.11.0 

从 AWS 下载所需的 jdbc 驱动程序 Download the Amazon Redshift JDBC Driver

将 jar 文件保存到文件夹 ~/Downloads/apache-drill-1.11.0/jars/3rdparty

使用以下命令开始演练:
./bin/drill-embedded 

导航至 http://localhost:8047/storage配置一个新的数据源又名插件。

创建一个新的存储插件并相应地命名您的数据源。对于我的测试,我称它为 Redshift 。

将源命名为“redshift”后,然后粘贴正确的配置
{
"type" : "jdbc",
"driver" : "com.amazon.redshift.jdbc42.Driver",
"url" : "jdbc:redshift://redshiftserver.mydomain.net:5439/databaseName?ssl=true&sslfactory=com.amazon.redshift.ssl.NonValidatingFactory",
"username" : "username",
"password" : "password",
"enabled" : true
}

下一个使用以下查询测试与服务器的连接
select * from redshift.autonation.information_schema.columns

关于amazon-redshift - Apache Drill 可以连接到 Amazon RedShift 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29682582/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com