presto查询报错:failed: Catalog mysql does not exist
已经在presto安装目录下的etc目录里面创建了如下的mysql.properties
vim mysql.properties
connector.name=mysql
connection-url=jdbc:mysql://192.168.216.130:3306
connection-user=root
connection-password=123456!a
使用presto连接mysql数据库时出现failed: Catalog mysql does not exist错误,错误原因是未把mysql.properties放入到etc目录下的catalog文件夹里面
[root@bigdata1 etc]# presto --server bigdata1:38080 --catalog mysql --schema dw
presto:dw> show schemas from mysql;
Query 20210520_033256_00012_uufye failed: Catalog mysql does not exist
错误解决方法:
需要在presto安装目录下的etc目录下面创建一个catalog文件夹,再把mysql.properties放入进去。presto集群的各个节点都需要做同样操作。
[root@bigdata3 etc]# m