You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ab...@apache.org on 2020/08/24 14:53:23 UTC
[ignite] branch IGNITE-7595 updated (c905589 -> 0f55799)
This is an automated email from the ASF dual-hosted git repository.
abudnikov pushed a change to branch IGNITE-7595
in repository https://gitbox.apache.org/repos/asf/ignite.git.
from c905589 IGNITE-13330 Compilation fix for java thin client documentation snippets (#8177)
new 5fb9731 update cluster-states page
new 6707062 update deb package installation instruction
new 0f55799 minor updates
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/_data/toc.yaml | 12 +-
docs/_docs/SQL/custom-sql-func.adoc | 6 +-
docs/_docs/cluster-states.adoc | 30 ++-
.../org/apache/ignite/snippets/JavaThinClient.java | 1 +
.../org/apache/ignite/snippets/SQLFunctions.java | 60 ------
.../java/org/apache/ignite/snippets/SqlAPI.java | 224 ++++++++++++---------
docs/_docs/installation/deb-rpm.adoc | 77 ++++++-
.../installation/installing-using-docker.adoc | 12 +-
.../kubernetes/generic-configuration.adoc | 3 +-
docs/_docs/quick-start/dotnet.adoc | 2 +-
docs/_docs/restapi.adoc | 9 +-
11 files changed, 249 insertions(+), 187 deletions(-)
delete mode 100644 docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SQLFunctions.java
[ignite] 01/03: update cluster-states page
Posted by ab...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
abudnikov pushed a commit to branch IGNITE-7595
in repository https://gitbox.apache.org/repos/asf/ignite.git
commit 5fb97313cb56f0568f3bc9526a7756548d0ece0f
Author: abudnikov <ab...@gridgain.com>
AuthorDate: Mon Aug 24 17:21:54 2020 +0300
update cluster-states page
---
docs/_docs/cluster-states.adoc | 30 ++++++++++++++++++++++++++----
1 file changed, 26 insertions(+), 4 deletions(-)
diff --git a/docs/_docs/cluster-states.adoc b/docs/_docs/cluster-states.adoc
index 7b29021..ca5e38e 100644
--- a/docs/_docs/cluster-states.adoc
+++ b/docs/_docs/cluster-states.adoc
@@ -21,19 +21,25 @@ include::includes/note-on-deactivation.adoc[]
* `ACTIVE`: This is the normal mode of the cluster. You can execute any operation.
* `ACTIVE_READ_ONLY`: The read-only mode. Only read operations are allowed.
++
+--
+Any attempt to create a cache or modify the data in an existing cache results in an `IgniteClusterReadOnlyException` exception.
+DDL or DML statements that modify the data are prohibited as well.
+--
+
== Changing Cluster State
You can change the cluster state in multiple ways:
-* Control script:
+* link:control-script#getting-cluster-state[Control script]:
+
[source, shell]
----
control.sh --set-state ACTIVE_READ_ONLY
----
-* REST command:
+* link:restapi#change-cluster-state[REST command]:
+
--
@@ -42,9 +48,8 @@ control.sh --set-state ACTIVE_READ_ONLY
http://localhost:8080/ignite?cmd=setstate&state=ACTIVE_READ_ONLY
----
-
--
-* Programmatically
+* Programmatically:
+
[tabs]
--
@@ -59,3 +64,20 @@ include::{javaFile}[tags=change-state, indent=0]
tab:C#/.NET[]
tab:C++[]
--
+
+* JMX Bean:
++
+--
+
+Mbean's Object Name: ::
+----
+group="Kernal",name=IgniteKernal
+----
+[cols="1,4",opts="header"]
+|===
+|Operation | Description
+
+| `clusterState()` | Get the current cluster state.
+| `clusterState(String)` | Set the cluster state.
+|===
+--
[ignite] 02/03: update deb package installation instruction
Posted by ab...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
abudnikov pushed a commit to branch IGNITE-7595
in repository https://gitbox.apache.org/repos/asf/ignite.git
commit 6707062d9bc37f5b2ff96eb3a8fadf0887513353
Author: abudnikov <ab...@gridgain.com>
AuthorDate: Mon Aug 24 17:25:07 2020 +0300
update deb package installation instruction
---
docs/_data/toc.yaml | 12 +++---
docs/_docs/installation/deb-rpm.adoc | 77 +++++++++++++++++++++++++++++++-----
2 files changed, 74 insertions(+), 15 deletions(-)
diff --git a/docs/_data/toc.yaml b/docs/_data/toc.yaml
index 1a412ff..81c3ee1 100644
--- a/docs/_data/toc.yaml
+++ b/docs/_data/toc.yaml
@@ -26,7 +26,7 @@
- title: Installing Using Docker
url: /installation/installing-using-docker
- title: Installing DEB or RPM package
- url: /installation/dem-rpm
+ url: /installation/deb-rpm
- title: Kubernetes
items:
- title: Amazon EKS
@@ -185,10 +185,12 @@
items:
- title: Introduction
url: /monitoring-metrics/intro
- - title: Configuring Metrics
- url: /monitoring-metrics/configuring-metrics
- - title: JMX Metrics
- url: /monitoring-metrics/metrics
+ - title: Metrics
+ items:
+ - title: Configuring Metrics
+ url: /monitoring-metrics/configuring-metrics
+ - title: JMX Metrics
+ url: /monitoring-metrics/metrics
- title: New Metrics System
items:
- title: Introduction
diff --git a/docs/_docs/installation/deb-rpm.adoc b/docs/_docs/installation/deb-rpm.adoc
index 883a2b6..a35b755 100644
--- a/docs/_docs/installation/deb-rpm.adoc
+++ b/docs/_docs/installation/deb-rpm.adoc
@@ -2,23 +2,80 @@
Apache Ignite can be installed from the official link:https://www.apache.org/dist/ignite/rpm[RPM] or link:https://www.apache.org/dist/ignite/deb[DEB] repositories.
-== Configuring Repositories
+== Installing Deb Package
-Configure Apache Ignite's RPM or DEB repository, as follows (accept the GPG key import prompt if required), including specific Linux distribution settings:
+Configure the repository:
-
-.Debian
[source, shell]
----
-# Install dirmngr (if not already installed) for apt-key ability to retrieve remote GPG keys
sudo apt update
sudo apt install dirmngr --no-install-recommends
----
-[tabs]
---
-tab:DEB[]
-tab:RPM[]
---
+[source, shell]
+----
+sudo bash -c 'cat <<EOF > /etc/apt/sources.list.d/ignite.list
+deb http://apache.org/dist/ignite/deb/ apache-ignite main
+EOF'
+sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
+sudo apt update
+----
+
+Install the Apache Ignite package:
+
+[source, shell]
+----
+sudo apt install apache-ignite --no-install-recommends
+----
+
+This will install the following files into your system:
+
+[cols="1,1,1",opts="header"]
+|===
+
+|Folder| Mapped To| Description
+|/usr/share/apache-ignite|| The root of Apache Ignite's installation
+|/usr/share/apache-ignite/bin|| Bin folder (scripts and executables)
+|/etc/apache-ignite | /usr/share/apache-ignite/config| Default configuration files
+|/var/log/apache-ignite| /var/lib/apache-ignite/log| Log directory
+|/usr/lib/apache-ignite| /usr/share/apache-ignite/libs| Core and optional libraries
+|/var/lib/apache-ignite| /usr/share/apache-ignite/work| Ignite work directory
+|/usr/share/doc/apache-ignite || Documentation
+|/usr/share/license/apache-ignite-{version} || Licenses
+|/etc/systemd/system | systemd service configuration
+
+|===
+
+== Running Ignite as a Service
+
+NOTE: If running on Windows 10 WSL or Docker, you should start Apache Ignite as a stand-alone process (not as a service).
+//See the next section.
+
+To start an Ignite node with a custom configuration, run the following command:
+
+[source, shell]
+----
+sudo systemctl start apache-ignite@<config_name>
+----
+
+The `<config_name>` parameter specifies the path to the configuration file relative to the `/etc/apache-ignite folder`.
+
+To launch the node at system startup, run the following command:
+
+[source, shell]
+----
+sudo systemctl enable apache-ignite@<config name>
+----
+
+
+////
+== Running Ignite as a Stand-Alone Process
+
+Use the commands below to start Ignite as a stand-alone process (cd to /usr/share/apache-ignite previously).
+To change the default configuration, you can update the /etc/apache-ignite/default-config.xml file.
+The default configuration uses Multicast IP Finder; if you want to use Static IP Finder, you need to change the default config file.
+Learn more about TCP/IP Discovery in the corresponding page.
+
+////
[ignite] 03/03: minor updates
Posted by ab...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
abudnikov pushed a commit to branch IGNITE-7595
in repository https://gitbox.apache.org/repos/asf/ignite.git
commit 0f5579908a67ea3cf4a2385b6a5bc222a95cbdba
Author: abudnikov <ab...@gridgain.com>
AuthorDate: Mon Aug 24 17:25:42 2020 +0300
minor updates
---
docs/_docs/SQL/custom-sql-func.adoc | 6 +-
.../org/apache/ignite/snippets/JavaThinClient.java | 1 +
.../org/apache/ignite/snippets/SQLFunctions.java | 60 ------
.../java/org/apache/ignite/snippets/SqlAPI.java | 224 ++++++++++++---------
.../installation/installing-using-docker.adoc | 12 +-
.../kubernetes/generic-configuration.adoc | 3 +-
docs/_docs/quick-start/dotnet.adoc | 2 +-
docs/_docs/restapi.adoc | 9 +-
8 files changed, 149 insertions(+), 168 deletions(-)
diff --git a/docs/_docs/SQL/custom-sql-func.adoc b/docs/_docs/SQL/custom-sql-func.adoc
index d1699cf..4fc97ee 100644
--- a/docs/_docs/SQL/custom-sql-func.adoc
+++ b/docs/_docs/SQL/custom-sql-func.adoc
@@ -1,6 +1,6 @@
= Custom SQL Functions
-:javaFile: {javaCodeDir}/SQLFunctions.java
+:javaFile: {javaCodeDir}/SqlAPI.java
The SQL Engine can extend the SQL functions' set, defined by the ANSI-99 specification, via the addition of custom SQL functions written in Java.
@@ -22,14 +22,14 @@ To do that, use the `setSqlFunctionClasses(...)` method.
[source,java]
----
-include::{javaFile}[tags=config, indent=0]
+include::{javaFile}[tags=sql-function-config, indent=0]
----
Once you have deployed a cache with the above configuration, you can call the custom function from within SQL queries:
[source,java]
----
-include::{javaFile}[tags=query, indent=0]
+include::{javaFile}[tags=sql-function-query, indent=0]
----
NOTE: Classes registered with `CacheConfiguration.setSqlFunctionClasses(...)` must be added to the classpath of all the nodes where the defined custom functions might be executed. Otherwise, you will get a `ClassNotFoundException` error when trying to execute the custom function.
diff --git a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
index 457f03a..2b60262 100644
--- a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
+++ b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
@@ -85,6 +85,7 @@ public class JavaThinClient {
//end::tx[]
}
+ @Test
void transactionConfiguration() {
// tag::transaction-config[]
diff --git a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SQLFunctions.java b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SQLFunctions.java
deleted file mode 100644
index c1f3723..0000000
--- a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SQLFunctions.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package org.apache.ignite.snippets;
-
-import org.apache.ignite.Ignite;
-import org.apache.ignite.IgniteCache;
-import org.apache.ignite.Ignition;
-import org.apache.ignite.cache.query.SqlFieldsQuery;
-import org.apache.ignite.cache.query.annotations.QuerySqlFunction;
-import org.apache.ignite.configuration.CacheConfiguration;
-import org.junit.jupiter.api.Test;
-
-public class SQLFunctions {
-
- // tag::sql-function-example[]
- @QuerySqlFunction
- public static int sqr(int x) {
- return x * x;
- }
- // end::sql-function-example[]
-
- @Test
- IgniteCache setSqlFunction(Ignite ignite) {
-
- // tag::config[]
- // Preparing a cache configuration.
- CacheConfiguration cfg = new CacheConfiguration("myCache");
-
- // Registering the class that contains custom SQL functions.
- cfg.setSqlFunctionClasses(SQLFunctions.class);
-
- IgniteCache cache = ignite.createCache(cfg);
- // end::config[]
-
- return cache;
- }
-
- void call(IgniteCache cache) {
-
- // tag::query[]
- // Preparing the query that uses the custom defined 'sqr' function.
- SqlFieldsQuery query = new SqlFieldsQuery("SELECT name FROM myCache WHERE sqr(size) > 100");
-
- // Executing the query.
- cache.query(query).getAll();
-
- // end::query[]
- }
-
- public static void main(String[] args) {
-
- try (Ignite ignite = Ignition.start()) {
- SQLFunctions sqlf = new SQLFunctions();
- IgniteCache cache = sqlf.setSqlFunction(ignite);
- sqlf.call(cache);
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- }
-
-}
diff --git a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SqlAPI.java b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SqlAPI.java
index 0b49dda..0fd8941 100644
--- a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SqlAPI.java
+++ b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/SqlAPI.java
@@ -9,129 +9,171 @@ import org.apache.ignite.IgniteCache;
import org.apache.ignite.cache.query.QueryCursor;
import org.apache.ignite.cache.query.SqlFieldsQuery;
import org.apache.ignite.cache.query.annotations.QuerySqlField;
+import org.apache.ignite.cache.query.annotations.QuerySqlFunction;
import org.apache.ignite.configuration.CacheConfiguration;
+import org.junit.jupiter.api.Test;
public class SqlAPI {
- class Person implements Serializable {
- /** Indexed field. Will be visible to the SQL engine. */
- @QuerySqlField(index = true)
- private long id;
+ class Person implements Serializable {
+ /** Indexed field. Will be visible to the SQL engine. */
+ @QuerySqlField(index = true)
+ private long id;
- /** Queryable field. Will be visible to the SQL engine. */
- @QuerySqlField
- private String name;
+ /** Queryable field. Will be visible to the SQL engine. */
+ @QuerySqlField
+ private String name;
- /** Will NOT be visible to the SQL engine. */
- private int age;
+ /** Will NOT be visible to the SQL engine. */
+ private int age;
- /**
- * Indexed field sorted in descending order. Will be visible to the SQL engine.
- */
- @QuerySqlField(index = true, descending = true)
- private float salary;
- }
+ /**
+ * Indexed field sorted in descending order. Will be visible to the SQL engine.
+ */
+ @QuerySqlField(index = true, descending = true)
+ private float salary;
+ }
- void cancellingByTimeout() {
- // tag::set-timeout[]
- SqlFieldsQuery query = new SqlFieldsQuery("SELECT * from Person");
+ void cancellingByTimeout() {
+ // tag::set-timeout[]
+ SqlFieldsQuery query = new SqlFieldsQuery("SELECT * from Person");
+
+ // Setting query execution timeout
+ query.setTimeout(10_000, TimeUnit.SECONDS);
- // Setting query execution timeout
- query.setTimeout(10_000, TimeUnit.SECONDS);
+ // end::set-timeout[]
+ }
+
+ void cancellingByCallingClose(IgniteCache<Long, Person> cache) {
+ // tag::cancel-by-closing[]
+ SqlFieldsQuery query = new SqlFieldsQuery("SELECT * FROM Person");
+
+ // Executing the query
+ QueryCursor<List<?>> cursor = cache.query(query);
+
+ // Halting the query that might be still in progress.
+ cursor.close();
+
+ // end::cancel-by-closing[]
+ }
- // end::set-timeout[]
- }
+ void enforceJoinOrder() {
- void cancellingByCallingClose(IgniteCache<Long, Person> cache) {
- // tag::cancel-by-closing[]
- SqlFieldsQuery query = new SqlFieldsQuery("SELECT * FROM Person");
+ // tag::enforceJoinOrder[]
+ SqlFieldsQuery query = new SqlFieldsQuery(
+ "SELECT * FROM TABLE_A, TABLE_B USE INDEX(HASH_JOIN_IDX)"
+ + " WHERE TABLE_A.column1 = TABLE_B.column2").setEnforceJoinOrder(true);
+ // end::enforceJoinOrder[]
+ }
- // Executing the query
- QueryCursor<List<?>> cursor = cache.query(query);
+ void simpleQuery(Ignite ignite) {
+ // tag::simple-query[]
+ IgniteCache<Long, Person> cache = ignite.cache("Person");
- // Halting the query that might be still in progress.
- cursor.close();
+ SqlFieldsQuery sql = new SqlFieldsQuery(
+ "select concat(firstName, ' ', lastName) from Person");
- // end::cancel-by-closing[]
- }
+ // Iterate over the result set.
+ try (QueryCursor<List<?>> cursor = cache.query(sql)) {
+ for (List<?> row : cursor)
+ System.out.println("personName=" + row.get(0));
+ }
+ // end::simple-query[]
+ }
- void enforceJoinOrder() {
+ void insert(Ignite ignite) {
+ // tag::insert[]
+ IgniteCache<Long, Person> cache = ignite.cache("personCache");
- // tag::enforceJoinOrder[]
- SqlFieldsQuery query = new SqlFieldsQuery(
- "SELECT * FROM TABLE_A, TABLE_B USE INDEX(HASH_JOIN_IDX)" + " WHERE TABLE_A.column1 = TABLE_B.column2")
- .setEnforceJoinOrder(true);
- // end::enforceJoinOrder[]
- }
+ cache.query(
+ new SqlFieldsQuery("INSERT INTO Person(id, firstName, lastName) VALUES(?, ?, ?)")
+ .setArgs(1L, "John", "Smith"))
+ .getAll();
- void simpleQuery(Ignite ignite) {
- // tag::simple-query[]
- IgniteCache<Long, Person> cache = ignite.cache("Person");
+ // end::insert[]
- SqlFieldsQuery sql = new SqlFieldsQuery("select concat(firstName, ' ', lastName) from Person");
+ }
- // Iterate over the result set.
- try (QueryCursor<List<?>> cursor = cache.query(sql)) {
- for (List<?> row : cursor)
- System.out.println("personName=" + row.get(0));
- }
- // end::simple-query[]
- }
+ void update(Ignite ignite) {
+ // tag::update[]
+ IgniteCache<Long, Person> cache = ignite.cache("personCache");
- void insert(Ignite ignite) {
- // tag::insert[]
- IgniteCache<Long, Person> cache = ignite.cache("personCache");
+ cache.query(new SqlFieldsQuery("UPDATE Person set lastName = ? " + "WHERE id >= ?")
+ .setArgs("Jones", 2L)).getAll();
+ // end::update[]
+ }
- cache.query(new SqlFieldsQuery("INSERT INTO Person(id, firstName, lastName) VALUES(?, ?, ?)").setArgs(1L,
- "John", "Smith")).getAll();
+ void delete(Ignite ignite) {
+ // tag::delete[]
+ IgniteCache<Long, Person> cache = ignite.cache("personCache");
- // end::insert[]
+ cache.query(new SqlFieldsQuery("DELETE FROM Person " + "WHERE id >= ?").setArgs(2L))
+ .getAll();
- }
+ // end::delete[]
+ }
- void update(Ignite ignite) {
- // tag::update[]
- IgniteCache<Long, Person> cache = ignite.cache("personCache");
+ void merge(Ignite ignite) {
+ // tag::merge[]
+ IgniteCache<Long, Person> cache = ignite.cache("personCache");
- cache.query(new SqlFieldsQuery("UPDATE Person set lastName = ? " + "WHERE id >= ?").setArgs("Jones", 2L))
- .getAll();
- // end::update[]
- }
+ cache.query(new SqlFieldsQuery("MERGE INTO Person(id, firstName, lastName)"
+ + " values (1, 'John', 'Smith'), (5, 'Mary', 'Jones')")).getAll();
+ // end::merge[]
+ }
- void delete(Ignite ignite) {
- // tag::delete[]
- IgniteCache<Long, Person> cache = ignite.cache("personCache");
+ void setSchema() {
+ // tag::set-schema[]
+ SqlFieldsQuery sql = new SqlFieldsQuery("select name from City").setSchema("PERSON");
+ // end::set-schema[]
+ }
- cache.query(new SqlFieldsQuery("DELETE FROM Person " + "WHERE id >= ?").setArgs(2L)).getAll();
+ void createTable(Ignite ignite) {
+ // tag::create-table[]
+ IgniteCache<Long, Person> cache = ignite
+ .getOrCreateCache(new CacheConfiguration<Long, Person>().setName("Person"));
- // end::delete[]
- }
+ // Creating City table.
+ cache.query(new SqlFieldsQuery(
+ "CREATE TABLE City (id int primary key, name varchar, region varchar)")).getAll();
+ // end::create-table[]
+ }
- void merge(Ignite ignite) {
- // tag::merge[]
- IgniteCache<Long, Person> cache = ignite.cache("personCache");
+ // tag::sql-function-example[]
+ static class SqlFunctions {
+ @QuerySqlFunction
+ public static int sqr(int x) {
+ return x * x;
+ }
+ }
- cache.query(new SqlFieldsQuery(
- "MERGE INTO Person(id, firstName, lastName)" + " values (1, 'John', 'Smith'), (5, 'Mary', 'Jones')"))
- .getAll();
- // end::merge[]
- }
+ // end::sql-function-example[]
- void setSchema() {
- // tag::set-schema[]
- SqlFieldsQuery sql = new SqlFieldsQuery("select name from City").setSchema("PERSON");
- // end::set-schema[]
- }
+ @Test
+ IgniteCache setSqlFunction(Ignite ignite) {
- void createTable(Ignite ignite) {
- // tag::create-table[]
- IgniteCache<Long, Person> cache = ignite
- .getOrCreateCache(new CacheConfiguration<Long, Person>().setName("Person"));
+ // tag::sql-function-config[]
+ // Preparing a cache configuration.
+ CacheConfiguration cfg = new CacheConfiguration("myCache");
- // Creating City table.
- cache.query(new SqlFieldsQuery("CREATE TABLE City (id int primary key, name varchar, region varchar)"))
- .getAll();
+ // Registering the class that contains custom SQL functions.
+ cfg.setSqlFunctionClasses(SqlFunctions.class);
- // end::create-table[]
- }
+ IgniteCache cache = ignite.createCache(cfg);
+ // end::sql-function-config[]
+
+ return cache;
+ }
+
+ void call(IgniteCache cache) {
+
+ // tag::sql-function-query[]
+ // Preparing the query that uses the custom defined 'sqr' function.
+ SqlFieldsQuery query = new SqlFieldsQuery("SELECT name FROM myCache WHERE sqr(size) > 100");
+
+ // Executing the query.
+ cache.query(query).getAll();
+
+ // end::sql-function-query[]
+ }
}
diff --git a/docs/_docs/installation/installing-using-docker.adoc b/docs/_docs/installation/installing-using-docker.adoc
index 21125b9..d0e1952 100644
--- a/docs/_docs/installation/installing-using-docker.adoc
+++ b/docs/_docs/installation/installing-using-docker.adoc
@@ -92,8 +92,8 @@ The following command launches the Ignite Docker image and passes the work direc
[source,shell]
----
docker run -d \
- -v persistence-volume:/persistence \
- -e IGNITE_WORK_DIR=/persistence \
+ -v storage-volume:/storage \
+ -e IGNITE_WORK_DIR=/storage \
apacheignite/ignite
----
@@ -108,13 +108,13 @@ When restarting the container with the same command, Ignite will load the data f
mkdir work_dir
docker run -d \
- -v ${PWD}/work_dir:/persistence \
- -e IGNITE_WORK_DIR=/persistence \
+ -v ${PWD}/work_dir:/storage \
+ -e IGNITE_WORK_DIR=/storage \
apacheignite/ignite
----
-The `-v` option mounts a local directory under the `/persistence` path in the container.
-The `-e IGNITE_WORK_DIR=/persistence` option tells Ignite to use this folder as the work directory.
+The `-v` option mounts a local directory under the `/storage` path in the container.
+The `-e IGNITE_WORK_DIR=/storage` option tells Ignite to use this folder as the work directory.
== Providing Configuration File
diff --git a/docs/_docs/installation/kubernetes/generic-configuration.adoc b/docs/_docs/installation/kubernetes/generic-configuration.adoc
index f806388..e639112 100644
--- a/docs/_docs/installation/kubernetes/generic-configuration.adoc
+++ b/docs/_docs/installation/kubernetes/generic-configuration.adoc
@@ -284,10 +284,9 @@ If you are using persistence, you must activate the cluster after it is started.
Execute the following command:
- *TODO:check the path to control.sh:*
[source, shell]
----
-/opt/apache-ignite/bin/control.sh --set-state ACTIVE --yes
+/opt/ignite/apache-ignite/bin/control.sh --set-state ACTIVE --yes
----
You can also activate the cluster using the link:restapi#change-cluster-state[REST API].
diff --git a/docs/_docs/quick-start/dotnet.adoc b/docs/_docs/quick-start/dotnet.adoc
index a15dff0..f671030 100644
--- a/docs/_docs/quick-start/dotnet.adoc
+++ b/docs/_docs/quick-start/dotnet.adoc
@@ -19,7 +19,7 @@ Ignite for .NET supports a thick client and a thin client. Because this guide fo
For information about the .NET thin client, see link:thin-clients/dotnet-thin-client[.NET Thin Client].
====
-//TODO??: WARNING: If you use the thick client without downloading and installing GridGain distribution, some functionality (Logging, etc.) will be missing or not configured.
+//TODO??: WARNING: If you use the thick client without downloading and installing Ignite distribution, some functionality (Logging, etc.) will be missing or not configured.
. Install .NET Core SDK (version 2+): https://dotnet.microsoft.com/download
diff --git a/docs/_docs/restapi.adoc b/docs/_docs/restapi.adoc
index a7790c9..3a60408 100644
--- a/docs/_docs/restapi.adoc
+++ b/docs/_docs/restapi.adoc
@@ -337,6 +337,7 @@ Returns `true` if the cluster is active. Returns `false` if the cluster in inact
=== Change Cluster State
+The `setstate` command changes the link:cluster-states[cluster state].
*Request:*::
+
@@ -346,22 +347,20 @@ Returns `true` if the cluster is active. Returns `false` if the cluster in inact
http://host:port/ignite?cmd=setstate&state={new_state}
----
-[{request_table_props}]
+[cols="15%,10%,75%",options="header"]
|===
|Parameter
|Type
-|Optional
|Description
-|Example
-|`state` | String| No a| New cluster state. One of the values:
+|`state` | String a| New cluster state. One of the values:
* `ACTIVE`: active state,
* `ACTIVE_READ_ONLY`: read only state,
* `INACTIVE`: the cluster is deactivated.
include::includes/note-on-deactivation.adoc[]
-|
+
|===
--