You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vk...@apache.org on 2021/10/06 00:34:17 UTC

[ignite-3] branch ignite-15684 created (now 9debff3)

This is an automated email from the ASF dual-hosted git repository.

vkulichenko pushed a change to branch ignite-15684
in repository https://gitbox.apache.org/repos/asf/ignite-3.git.


      at 9debff3  IGNITE-15684 - Fixed SqlJdbcExample

This branch includes the following new commits:

     new 9debff3  IGNITE-15684 - Fixed SqlJdbcExample

The 1 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.


[ignite-3] 01/01: IGNITE-15684 - Fixed SqlJdbcExample

Posted by vk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vkulichenko pushed a commit to branch ignite-15684
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 9debff38ac5b3bdca60737a3ad8f66f3fb02fd41
Author: Valentin Kulichenko <va...@gmail.com>
AuthorDate: Tue Oct 5 17:34:09 2021 -0700

    IGNITE-15684 - Fixed SqlJdbcExample
---
 examples/pom-standalone.xml                                         | 6 ++++++
 .../src/main/java/org/apache/ignite/example/table/TableExample.java | 2 +-
 .../src/main/java/org/apache/ignite/sql/jdbc/SqlJdbcExample.java    | 4 ++--
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/examples/pom-standalone.xml b/examples/pom-standalone.xml
index 960d980..6fe3db1 100644
--- a/examples/pom-standalone.xml
+++ b/examples/pom-standalone.xml
@@ -37,5 +37,11 @@
             <artifactId>ignite-runner</artifactId>
             <version>3.0.0-SNAPSHOT</version>
         </dependency>
+
+        <dependency>
+            <groupId>org.apache.ignite</groupId>
+            <artifactId>ignite-client</artifactId>
+            <version>3.0.0-SNAPSHOT</version>
+        </dependency>
     </dependencies>
 </project>
diff --git a/examples/src/main/java/org/apache/ignite/example/table/TableExample.java b/examples/src/main/java/org/apache/ignite/example/table/TableExample.java
index 5a04db2..6499cee 100644
--- a/examples/src/main/java/org/apache/ignite/example/table/TableExample.java
+++ b/examples/src/main/java/org/apache/ignite/example/table/TableExample.java
@@ -45,7 +45,7 @@ public class TableExample {
     public static void main(String[] args) throws Exception {
         Ignite ignite = IgnitionManager.start(
             "node-0",
-            Files.readString(Path.of("config", "ignite-config.json")),
+            Files.readString(Path.of("config", "ignite-config.json").toAbsolutePath()),
             Path.of("work")
         );
 
diff --git a/examples/src/main/java/org/apache/ignite/sql/jdbc/SqlJdbcExample.java b/examples/src/main/java/org/apache/ignite/sql/jdbc/SqlJdbcExample.java
index b3b3187..f8037d6 100644
--- a/examples/src/main/java/org/apache/ignite/sql/jdbc/SqlJdbcExample.java
+++ b/examples/src/main/java/org/apache/ignite/sql/jdbc/SqlJdbcExample.java
@@ -51,14 +51,14 @@ public class SqlJdbcExample {
     public static void main(String[] args) throws Exception {
         Ignite ignite = IgnitionManager.start(
             "node-0",
-            Files.readString(Path.of( "examples/config/ignite-config.json").toAbsolutePath()),
+            Files.readString(Path.of("config", "ignite-config.json").toAbsolutePath()),
             Path.of("work")
         );
 
         print("JDBC example started.");
 
         // Open JDBC connection
-        try (Connection conn = DriverManager.getConnection("jdbc:ignite:thin://127.0.1.1:10800/")) {
+        try (Connection conn = DriverManager.getConnection("jdbc:ignite:thin://127.0.0.1:10800/")) {
             print("Connected to server.");
 
             //---------------------------------------------------------------------------------