出错
redshift failed to load driver class. this error may be caused by all-in-one jar packaging. please try again with the lean package
出错
redshift failed to load driver class. this error may be caused by all-in-one jar packaging. please try again with the lean package
我遇到了同样的问题,根本原因最终是因为驱动程序文件的路径包含一个包含空格的文件夹名称。
我在另一个程序中遇到了同样的问题。作为解决方法,尝试使用 com.amazon.redshift.core.jdbc4.PGJDBC4DriverImpl 作为驱动程序类名称。它使用 RedshiftJDBC4-no-awssdk-1.2.8.1005.jar 对我有用
Redshift 的驱动程序区域数量。看来您使用的是旧版本。我建议您查看http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html上的文档
例如,这里是最新的驱动程序版本。
JDBC 4.2 兼容驱动程序:https ://s3.amazonaws.com/redshift-downloads/drivers/RedshiftJDBC42-1.2.8.1005.jar 。
你的似乎是一些旧版本