Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-05-06 Thread kay
Hello, Thank you so much!.

I have 1 more question.

I use IgniteClient API in my application.(singleton)
when i start my application I regist IgniteClient bean using SpringFramework
and declare ClientConfiguration  address like  

ClientConfiguration cfg = new
ClientConfiguration().setAddresses("34.1.21.122:12800",
"34.1.21.122:12800");

 Is there any way to add new ClientConfiguration address without my
application restart??
I'm considering using L4 between my application and ignite server node.. but
also L4 should be restart.

Is it possible to auto scale out java client thin level??






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: apache-ignite_2.8.0-1_all.deb package has older version of openjdk as dependency

2020-05-06 Thread Petr Ivanov
I guess it can be targeted to 2.8.1 if there any scope space left.


> On 6 May 2020, at 07:27, rakshita04  wrote:
> 
> Hi Team,
> 
> We are using apache-ignite for our C++ application based on debian
> 10(buster). We tried using apache-ignite_2.8.0-1_all.deb package but it
> depends on openjdk-8 which is older version and not available for debian 10
> buster. I have below questions-
> 1. Why older version of openjdk is used in deb package?
> 2. Is there any possibility of new released version of deb package with
> source apache-ignite_2.8.0 with newer openjdk version?
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Re: apache-ignite_2.8.0-1_all.deb package has older version of openjdk as dependency

2020-05-06 Thread rakshita04
Thanks Petr.
When can we expect 2.8.1 .deb package with newer openjdk dependency?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Issue in Distributed joins

2020-05-06 Thread Ilya Kasnacheev
Hello!

Since there's no immediate response, I have filed a ticket:
https://issues.apache.org/jira/browse/IGNITE-12984

Regards,
-- 
Ilya Kasnacheev


пн, 20 апр. 2020 г. в 18:38, DS :

> Hello, Any update on this from SQL people?
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: apache-ignite_2.8.0-1_all.deb package has older version of openjdk as dependency

2020-05-06 Thread Ilya Kasnacheev
Hello!

Come to think of it, maybe we can just depend on java-sdk meta-package?

Can you file an IGNITE JIRA ticket about that?

Regards,
-- 
Ilya Kasnacheev


ср, 6 мая 2020 г. в 11:58, rakshita04 :

> Thanks Petr.
> When can we expect 2.8.1 .deb package with newer openjdk dependency?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-05-06 Thread Alex Plehanov
Hello,

Currently, there is no way to add a new address without the client restart.
But there is a feature under development [1], perhaps, it will be useful
for your case.

[1]:
https://cwiki.apache.org/confluence/display/IGNITE/IEP-44%3A+Thin+client+cluster+discovery

ср, 6 мая 2020 г. в 10:48, kay :

> Hello, Thank you so much!.
>
> I have 1 more question.
>
> I use IgniteClient API in my application.(singleton)
> when i start my application I regist IgniteClient bean using
> SpringFramework
> and declare ClientConfiguration  address like
>
> ClientConfiguration cfg = new
> ClientConfiguration().setAddresses("34.1.21.122:12800",
> "34.1.21.122:12800");
>
>  Is there any way to add new ClientConfiguration address without my
> application restart??
> I'm considering using L4 between my application and ignite server node..
> but
> also L4 should be restart.
>
> Is it possible to auto scale out java client thin level??
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: apache-ignite_2.8.0-1_all.deb package has older version of openjdk as dependency

2020-05-06 Thread rakshita04
are you talking about oracle-java8-installer? mentioned in control file of
your package?
actually we are able to manually compile platform/cpp code using openjdk-11.
So wanted to check with you if there is any specific reason for using
openjdk-8 for .deb released package?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Create table if not exists does not works in cocurrent case

2020-05-06 Thread yangjiajun
Hello.I test creating same table in two threads.Here is my test code:

public class ConcurrentCreateTable {
private static Connection conn;

private static Connection conn1;

public static void main(String[] args) throws Exception {

initialize();
new Thread(new Runnable() {

@Override
public void run() {
while (true) {
try (Statement stmt = conn.createStatement()) {
stmt.execute(
"CREATE TABLE IF NOT EXISTS city1(ID
INTEGER,NAME VARCHAR ,PRIMARY KEY(ID)) WITH \"template=replicated\";");
stmt.execute("DROP TABLE IF EXISTS city1");
} catch (SQLException e) {

e.printStackTrace();
}
}
}
}).start();
new Thread(new Runnable() {

@Override
public void run() {
while (true) {
try (Statement stmt = conn1.createStatement()) {
stmt.execute(
"CREATE TABLE IF NOT EXISTS city1(ID
INTEGER,NAME VARCHAR ,PRIMARY KEY(ID)) WITH \"template=replicated\";");
stmt.execute("DROP TABLE IF EXISTS city1");
} catch (SQLException e) {

e.printStackTrace();
}
}
}
}).start();
while(true) {

}
}

private static void initialize() throws Exception {
Class.forName(Config.IGNITE_DRIVER);
final Properties props = new Properties();
conn = DriverManager.getConnection(Config.IGNITE_URL, props);
conn1 = DriverManager.getConnection(Config.IGNITE_URL, props);
}
}

It throws table already exists error.Does ignite not allow to cocurrently
create tables?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: apache-ignite_2.8.0-1_all.deb package has older version of openjdk as dependency

2020-05-06 Thread Ilya Kasnacheev
Hello!

There is no reason to depend on Java 8 specifically.

Regards,
-- 
Ilya Kasnacheev


ср, 6 мая 2020 г. в 15:27, rakshita04 :

> are you talking about oracle-java8-installer? mentioned in control file of
> your package?
> actually we are able to manually compile platform/cpp code using
> openjdk-11.
> So wanted to check with you if there is any specific reason for using
> openjdk-8 for .deb released package?
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: deployment pattern

2020-05-06 Thread akorensh
Hi,
  Yes you are correct. If you are able to co-locate the services on the same
node as the data, performance 
  will be better, and network round-trips will be avoided. 
Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Create table if not exists does not works in cocurrent case

2020-05-06 Thread akorensh
Hi,
 You are correct.  If the requests are simultaneous, the error will occur. A
very small delay(see below),  will prevent this.
  This exception is informational in nature, and could safely be ignored.

Try this for the second thread
while (true) {
*  Thread.sleep(100);*
try (Statement stmt = conn1.createStatement()) {
stmt.execute(
"CREATE TABLE IF NOT EXISTS city1(ID
INTEGER,NAME VARCHAR ,PRIMARY KEY(ID)) WITH \"template=replicated\";");
stmt.execute("DROP TABLE IF EXISTS city1");
} catch (SQLException e | InterruptedException e) {

e.printStackTrace();
}

Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Deploying the Ignite Maven Project in LINUX

2020-05-06 Thread Evgenii Zhuravlev
Hi,

You can just compile jar file with all dependencies and run it from any
machine.

Evgenii

вт, 5 мая 2020 г. в 03:14, nithin91 <
nithinbharadwaj.govindar...@franklintempleton.com>:

> Hi
>
> We have couple of ignite nodes running in LINUX and the cache configuration
> details are specified in the bean file and deployed on both the nodes.Now i
> am connecting to one of the nodes as client and loading the cache from my
> local system.
>
> Is there a way, i can deploy the JAVA code  with Maven Dependency in LINUX
> and run the program in LINUX.
>
> I am using Eclipse as IDE.
>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>