Azure Kubernetes 上 Apache Ignite 的连接错误
Connection Error for Apache Ignite on Azure Kubernetes
我是 Ignite 和 Kubernetes 的新手。
我尝试将我们的本地解决方案迁移到 Microsoft Cloud。第一步是将 Apache Ignite 迁移到 Azure Kubernetes。
我按照说明 (Apache Ignite Instructions) 在 Azure Kubernetes 上设置了 ignite 应用程序。当我从控制面板控制服务时,它是 运行ning 并且服务如下图所示。
Please see the ignite service image
但最后,我尝试在 Ignite 上创建示例数据时出现错误。
我尝试这样连接电源 shell:
PS az login
PS C:\apache-ignite-2.8.0-bin\bin> ./sqlline.bat --verbose=true -u jdbc:ignite:thin://{MyExternalIP}:10800
在此之后,我从 power shell
收到了这条消息
issuing: !connect jdbc:ignite:thin://{MyExternalIP}:10800 '' ''
org.apache.ignite.IgniteJdbcThinDriver Connecting to
jdbc:ignite:thin://{MyExternalIP}:10800 Connected to: Apache Ignite
(version 2.6.0#20180710-sha1:669feacc) Driver: Apache Ignite Thin JDBC
Driver (version 2.8.0#20200226-sha1:341b01df) Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ sqlline version
1.3.0 0: jdbc:ignite:thin://{MyExternalIP}:10800>
最后,我运行根据说明
测试的最新命令
!run ../examples/sql/world.sql
这是此命令的错误消息。
Error: Statement is closed. (state=,code=0) java.sql.SQLException:
Statement is closed.
at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.ensureNotClosed(JdbcThinStatement.java:934)
at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.getWarnings(JdbcThinStatement.java:538)
at sqlline.Commands.execute(Commands.java:849)
at sqlline.Commands.sql(Commands.java:733)
at sqlline.SqlLine.dispatch(SqlLine.java:795)
at sqlline.SqlLine.runCommands(SqlLine.java:1706)
at sqlline.Commands.run(Commands.java:1317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
at sqlline.SqlLine.dispatch(SqlLine.java:791)
at sqlline.SqlLine.begin(SqlLine.java:668)
at sqlline.SqlLine.start(SqlLine.java:373)
at sqlline.SqlLine.main(SqlLine.java:265) Aborting command set because "force" is false and command failed: "DROP TABLE IF EXISTS
Country;"
The All power shell is like this
我不知道哪里出了问题?
我看到你有 Ignite 2.6 但驱动程序版本是 2.8。您是否尝试过使用两者的相同版本?我们假设驱动程序可能在版本之间兼容,但不建议设置。
我是 Ignite 和 Kubernetes 的新手。 我尝试将我们的本地解决方案迁移到 Microsoft Cloud。第一步是将 Apache Ignite 迁移到 Azure Kubernetes。
我按照说明 (Apache Ignite Instructions) 在 Azure Kubernetes 上设置了 ignite 应用程序。当我从控制面板控制服务时,它是 运行ning 并且服务如下图所示。
Please see the ignite service image
但最后,我尝试在 Ignite 上创建示例数据时出现错误。
我尝试这样连接电源 shell:
PS az login
PS C:\apache-ignite-2.8.0-bin\bin> ./sqlline.bat --verbose=true -u jdbc:ignite:thin://{MyExternalIP}:10800
在此之后,我从 power shell
收到了这条消息issuing: !connect jdbc:ignite:thin://{MyExternalIP}:10800 '' '' org.apache.ignite.IgniteJdbcThinDriver Connecting to jdbc:ignite:thin://{MyExternalIP}:10800 Connected to: Apache Ignite (version 2.6.0#20180710-sha1:669feacc) Driver: Apache Ignite Thin JDBC Driver (version 2.8.0#20200226-sha1:341b01df) Autocommit status: true Transaction isolation: TRANSACTION_REPEATABLE_READ sqlline version 1.3.0 0: jdbc:ignite:thin://{MyExternalIP}:10800>
最后,我运行根据说明
测试的最新命令!run ../examples/sql/world.sql
这是此命令的错误消息。
Error: Statement is closed. (state=,code=0) java.sql.SQLException: Statement is closed. at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.ensureNotClosed(JdbcThinStatement.java:934) at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.getWarnings(JdbcThinStatement.java:538) at sqlline.Commands.execute(Commands.java:849) at sqlline.Commands.sql(Commands.java:733) at sqlline.SqlLine.dispatch(SqlLine.java:795) at sqlline.SqlLine.runCommands(SqlLine.java:1706) at sqlline.Commands.run(Commands.java:1317) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38) at sqlline.SqlLine.dispatch(SqlLine.java:791) at sqlline.SqlLine.begin(SqlLine.java:668) at sqlline.SqlLine.start(SqlLine.java:373) at sqlline.SqlLine.main(SqlLine.java:265) Aborting command set because "force" is false and command failed: "DROP TABLE IF EXISTS Country;"
The All power shell is like this
我不知道哪里出了问题?
我看到你有 Ignite 2.6 但驱动程序版本是 2.8。您是否尝试过使用两者的相同版本?我们假设驱动程序可能在版本之间兼容,但不建议设置。