我尝试使用 h2o 将表加载到 R 中,但出现以下错误
my_data <- h2o.import_sql_table(my_sql_conn, table, username, password)
错误:意外的 HTTP 状态代码:500 服务器错误(url =http://localhost:54321/99/ImportSQLTable http://localhost:54321/99/ImportSQLTable)
java.lang.RuntimeException [1] "java.lang.RuntimeException: SQLException: 没有找到适合 jdbc 的驱动程序:mysql://10.140.20.29/MySQL?&useSSL=false\n无法使用 connection_url 连接并读取 SQL 数据库:jdbc :mysql://10.140.20.29/MySQL?&useSSL=false"
有人可以帮我弄这个吗?太感谢了!
您需要受支持的 JDBC(基于 JDBC 42 Core 构建)驱动程序才能从 H2O 连接到 SQL Server。您可以先从以下链接下载 Microsoft JDBC Driver 4.2 for SQL Server:
https://www.microsoft.com/en-us/download/details.aspx?id=54671 https://www.microsoft.com/en-us/download/details.aspx?id=54671
之后,请按照下面的文章首先从 R/Python H2O 客户端测试 JDBC 驱动程序,然后连接到您的数据库:
https://aichamp.wordpress.com/2017/03/20/building-h2o-glm-model-using-postgresql-database-and-jdbc-driver/ https://aichamp.wordpress.com/2017/03/20/building-h2o-glm-model-using-postgresql-database-and-jdbc-driver/
上面的文章适用于 postgres,但是您可以使用适当的驱动程序将其与 SQL Server 一起使用。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)