0
我開始通過Ignite.sh點燃2.1無法執行操作和配置是使用JDBC連接持久性:因爲簇是無效的
<property name="persistentStoreConfiguration">
<bean class="org.apache.ignite.configuration.PersistentStoreConfiguration">
<property name="persistentStorePath" value="/tools/ignite/ignite-save/presisent/"></property>
<property name="walStorePath" value="/tools/ignite/ignite-save/wal/"/>
</bean>
</property>
</bean>
我用JDBC連接它,有一個錯誤,activeOnStart是無用的,我怎樣才能激活節點?如果我使用主類開始點燃並設置點燃激活,這是好的,我怎麼能點燃節點通過ignite.sh ??
Exception in thread "main" java.sql.SQLException: Failed to query Ignite.
at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.execute0(JdbcThinStatement.java:123)
at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.executeUpdate(JdbcThinStatement.java:129)
at org.apache.ignite.examples.datagrid.JdbcExample.main(JdbcExample.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: class org.apache.ignite.IgniteCheckedException: Error server response: [req=JdbcQueryExecuteRequest [schemaName=null, pageSize=1024, maxRows=0, sqlQry=CREATE TABLE city (id LONG PRIMARY KEY, name VARCHAR) WITH "template=replicated", args=null], resp=JdbcResponse [res=null, status=1, err=class org.apache.ignite.internal.processors.query.IgniteSQLException: Unexpected DLL operation failure: Can not perform the operation because the cluster is inactive. Note, that the cluster is considered inactive by default if Ignite Persistent Store is used to let all the nodes join the cluster. To activate the cluster call Ignite.activate(true).]]
at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.sendRequest(JdbcThinTcpIo.java:253)
at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.queryExecute(JdbcThinTcpIo.java:227)
at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.execute0(JdbcThinStatement.java:109)
... 7 more
你爲什麼認爲activeOnStart是無用的? –
我將activeOnStart添加到配置中,它不起作用 – user7387815
當您激活羣集時,您可以共享日誌和代碼段嗎? –