Any status updates on Ignite 3.0?

2024-02-13 Thread Glaviano, Anthony via user
Greetings,

The last update for Ignite 3.0 that I can find is from November of 2022, 
although I see the project in GitHub has had continued activity.  My team is 
looking to start a new project using Ignite, and we were hoping to start with 
Ignite 3.0 since this will be a new greenfield project that we want to support 
for a long time into the future.  Is there any timeline/roadmap for v3.0 to 
make it to a general release candidate?  Or somewhere I can look to keep on top 
of its status?

Or would we be better off going with the latest v2.x release and hope to 
migrate to v3.0 at a later date?  Given the fundamental changes planned for 
v3.0, we were hoping to avoid having to do that.

Any advice or insights would be greatly appreciated.  Thanks.

--Anthony Glaviano



The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer. S Global Inc. 
reserves the right, subject to applicable local law, to monitor, review and 
process the content of any electronic message or information sent to or from 
S Global Inc. e-mail addresses without informing the sender or recipient of 
the message. By sending electronic message or information to S Global Inc. 
e-mail addresses you, as the sender, are consenting to S Global Inc. 
processing any of your personal data therein.


UNSUBSCRIBE

2022-10-16 Thread Anthony Mak
UNSUBSCRIBE

>


Internal Node and External Node

2020-04-15 Thread Anthony
Hello,

We have a use case where we want two nodes within a machine. One for
internal and one for external. To be more precise, the c++ node will handle
the communication and java node will handle the communication.
Is there a proper way to organize the nodes?

Thanks,

Anthony


Re: Automatically generate Code using java reflection

2020-04-14 Thread Anthony
Evgenii,
It also came to me if there is a similar code in C++ for the following java
code as I did not find it. If not, Does it mean I need to configure it in
xml file?

 IgniteConfiguration igniteConfiguration = new IgniteConfiguration();
BinaryConfiguration bCfg = new BinaryConfiguration();
bCfg.setCompactFooter(false);
bCfg.setNameMapper(new BinaryBasicNameMapper(true));
bCfg.setIdMapper(new BinaryBasicIdMapper(true));

bCfg.setClassNames(Collections.singleton("org.apache.ignite.examples.datagrid.CrossClass"));
igniteConfiguration.setBinaryConfiguration(bCfg);

Thank you !

On Mon, Apr 13, 2020 at 1:57 PM Evgenii Zhuravlev 
wrote:

> Anthony,
>
> No, I don't think so. If you plan to use it from C++, then you will need
> to configure QueryEntity.
>
> Evgenii
>
> пн, 13 апр. 2020 г. в 13:02, Anthony :
>
>> Thank you Evgenii ! BTW, Is there a same thing in c++ ?
>>
>> On Mon, Apr 13, 2020 at 9:30 AM Evgenii Zhuravlev <
>> e.zhuravlev...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> There is no need to create Query Entity if you already have annotations.
>>> YOu can add CacheConfiguration.setIndexedTypes(PersonKey.class,
>>> Person.class) and it will be generated automatically based on you
>>> annotations.
>>>
>>> Evgenii
>>>
>>> пн, 13 апр. 2020 г. в 09:11, Anthony :
>>>
>>>> Hello,
>>>> If I have the following java class:
>>>>
>>>> public class Person implements Serializable {
>>>> /** */
>>>> private static final AtomicLong ID_GEN = new AtomicLong();
>>>>
>>>> /** Person ID (indexed). */
>>>> @QuerySqlField(index = true)
>>>> public Long id;
>>>>
>>>> /** Organization ID (indexed). */
>>>> @QuerySqlField(index = true)
>>>> public Long orgId;
>>>>
>>>> /** First name (not-indexed). */
>>>> @QuerySqlField
>>>> public String firstName;
>>>>
>>>> /** Last name (not indexed). */
>>>> @QuerySqlField
>>>> public String lastName;
>>>>
>>>> /** Resume text (create LUCENE-based TEXT index for this field). */
>>>> @QueryTextField
>>>> public String resume;
>>>>
>>>> /** Salary (indexed). */
>>>> @QuerySqlField(index = true)
>>>> public double salary;
>>>>
>>>> /** Custom cache key to guarantee that person is always collocated
>>>> with its organization. */
>>>> private transient AffinityKey key;
>>>>
>>>>
>>>>And I want to create a table, I need to write  the following code in
>>>> java or put them in the config file. Is it possible to generate them
>>>> automatically? As Java reflection seems can handle this?
>>>>
>>>> CacheConfiguration cacheCfg = new CacheConfiguration("Person");
>>>> QueryEntity entity = new QueryEntity();
>>>> entity.setKeyType("java.lang.Long");
>>>> entity.setValueType("Person");
>>>> LinkedHashMap map = new LinkedHashMap();
>>>> map.put("orgId", "java.lang.Long");
>>>> map.put("firstName", "java.lang.String");
>>>> map.put("lastName", "java.lang.String");
>>>> map.put("Resume", "java.lang.String");
>>>> map.put("Salary", "java.lang.double");
>>>> entity.setFields(map);
>>>> entity.setIndexes(Collections.singletonList(new QueryIndex("orgId")));
>>>> List queryEntities = new ArrayList<>();
>>>> queryEntities.add(entity);
>>>> cacheCfg.setQueryEntities(queryEntities);
>>>> igniteConfiguration.setCacheConfiguration(cacheCfg);
>>>> Ignite ignite = Ignition.start(igniteConfiguration);
>>>> IgniteCache cache = ignite.getOrCreateCache("Person");
>>>>
>>>>


Re: Automatically generate Code using java reflection

2020-04-13 Thread Anthony
Thank you Evgenii ! BTW, Is there a same thing in c++ ?

On Mon, Apr 13, 2020 at 9:30 AM Evgenii Zhuravlev 
wrote:

> Hi,
>
> There is no need to create Query Entity if you already have annotations.
> YOu can add CacheConfiguration.setIndexedTypes(PersonKey.class,
> Person.class) and it will be generated automatically based on you
> annotations.
>
> Evgenii
>
> пн, 13 апр. 2020 г. в 09:11, Anthony :
>
>> Hello,
>> If I have the following java class:
>>
>> public class Person implements Serializable {
>> /** */
>> private static final AtomicLong ID_GEN = new AtomicLong();
>>
>> /** Person ID (indexed). */
>> @QuerySqlField(index = true)
>> public Long id;
>>
>> /** Organization ID (indexed). */
>> @QuerySqlField(index = true)
>> public Long orgId;
>>
>> /** First name (not-indexed). */
>> @QuerySqlField
>> public String firstName;
>>
>> /** Last name (not indexed). */
>> @QuerySqlField
>> public String lastName;
>>
>> /** Resume text (create LUCENE-based TEXT index for this field). */
>> @QueryTextField
>> public String resume;
>>
>> /** Salary (indexed). */
>> @QuerySqlField(index = true)
>> public double salary;
>>
>> /** Custom cache key to guarantee that person is always collocated
>> with its organization. */
>> private transient AffinityKey key;
>>
>>
>>And I want to create a table, I need to write  the following code in
>> java or put them in the config file. Is it possible to generate them
>> automatically? As Java reflection seems can handle this?
>>
>> CacheConfiguration cacheCfg = new CacheConfiguration("Person");
>> QueryEntity entity = new QueryEntity();
>> entity.setKeyType("java.lang.Long");
>> entity.setValueType("Person");
>> LinkedHashMap map = new LinkedHashMap();
>> map.put("orgId", "java.lang.Long");
>> map.put("firstName", "java.lang.String");
>> map.put("lastName", "java.lang.String");
>> map.put("Resume", "java.lang.String");
>> map.put("Salary", "java.lang.double");
>> entity.setFields(map);
>> entity.setIndexes(Collections.singletonList(new QueryIndex("orgId")));
>> List queryEntities = new ArrayList<>();
>> queryEntities.add(entity);
>> cacheCfg.setQueryEntities(queryEntities);
>> igniteConfiguration.setCacheConfiguration(cacheCfg);
>> Ignite ignite = Ignition.start(igniteConfiguration);
>> IgniteCache cache = ignite.getOrCreateCache("Person");
>>
>>


Automatically generate Code using java reflection

2020-04-13 Thread Anthony
Hello,
If I have the following java class:

public class Person implements Serializable {
/** */
private static final AtomicLong ID_GEN = new AtomicLong();

/** Person ID (indexed). */
@QuerySqlField(index = true)
public Long id;

/** Organization ID (indexed). */
@QuerySqlField(index = true)
public Long orgId;

/** First name (not-indexed). */
@QuerySqlField
public String firstName;

/** Last name (not indexed). */
@QuerySqlField
public String lastName;

/** Resume text (create LUCENE-based TEXT index for this field). */
@QueryTextField
public String resume;

/** Salary (indexed). */
@QuerySqlField(index = true)
public double salary;

/** Custom cache key to guarantee that person is always collocated with
its organization. */
private transient AffinityKey key;


   And I want to create a table, I need to write  the following code in
java or put them in the config file. Is it possible to generate them
automatically? As Java reflection seems can handle this?

CacheConfiguration cacheCfg = new CacheConfiguration("Person");
QueryEntity entity = new QueryEntity();
entity.setKeyType("java.lang.Long");
entity.setValueType("Person");
LinkedHashMap map = new LinkedHashMap();
map.put("orgId", "java.lang.Long");
map.put("firstName", "java.lang.String");
map.put("lastName", "java.lang.String");
map.put("Resume", "java.lang.String");
map.put("Salary", "java.lang.double");
entity.setFields(map);
entity.setIndexes(Collections.singletonList(new QueryIndex("orgId")));
List queryEntities = new ArrayList<>();
queryEntities.add(entity);
cacheCfg.setQueryEntities(queryEntities);
igniteConfiguration.setCacheConfiguration(cacheCfg);
Ignite ignite = Ignition.start(igniteConfiguration);
IgniteCache cache = ignite.getOrCreateCache("Person");


Re: Concept Question about Ignite

2020-04-08 Thread Anthony
Evgenii ,


Have you ever happen to measure that, for cross-language marshalling, the
performance between JNI and IGNITE?

On Tue, Apr 7, 2020 at 3:04 PM Evgenii Zhuravlev 
wrote:

> Anthony,
>
> Sorry, looks like I missed it. Here is the link:
> https://apacheignite.readme.io/docs/cache-configuration
>
> Evgenii
>
> вт, 7 апр. 2020 г. в 14:48, Anthony :
>
>> Hello Evgenii,
>>
>> I foud that the link for More information on CacheConfiguration can be
>> found here: is missing, could you please resend it to me?
>>
>> Also,is there a way to find out which setting is the fastest and minimal
>> overhead?
>>
>> Thanks,
>>
>> Anthony
>>
>> On Tue, Apr 7, 2020 at 11:46 AM Anthony  wrote:
>>
>>> Thanks for your help Evgenii!
>>>
>>> On Tue, Apr 7, 2020 at 10:38 AM Evgenii Zhuravlev <
>>> e.zhuravlev...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> If these nodes are combined into one cluster, then it will be the same
>>>> cache. By default, it will be Partitioned cache without backups and both
>>>> nodes will have part of the data. If you want to replicate data fully, you
>>>> can set backups to 1 or create cache as Replicated instead of Partitioned.
>>>> More information on CacheConfiguration can be found here:
>>>>
>>>> Best Regards,
>>>> Evgenii
>>>>
>>>> вт, 7 апр. 2020 г. в 10:25, Anthony :
>>>>
>>>>> Hello,
>>>>>
>>>>> I am new to Ignite and have a few questions.
>>>>> If I have two process running the following code:
>>>>>
>>>>> Process 1:
>>>>> Ignite grid = Ignition::Start(cfg);
>>>>> Cache cache = grid.GetOrCreateCache>>>> std::string>("myCache");
>>>>>
>>>>>   Process 2:
>>>>>  Ignite grid = Ignition::Start(cfg);
>>>>> Cache cache = grid.GetCache>>>> std::string>("myCache");
>>>>>
>>>>> Will Cache be duplicated to the grid in process 2?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Anthony
>>>>>
>>>>


Re: C++ ODBC Example Question

2020-04-08 Thread Anthony
Hello llya,

I guess I may not describe my question more clearly. In the example you
gave me,
https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp,
Can I retrieve the data from the cache using ODBC?

Regards,

Anthony

On Tue, Apr 7, 2020 at 4:11 AM Ilya Kasnacheev 
wrote:

> Hello!
>
> Please take a look at this example, it will store Organization from C++:
>
> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
>
> Some additional configuration will be needed to access data using SQL:
> https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability
>
> https://www.gridgain.com/docs/latest/developers-guide/SQL/sql-key-value-storage
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> вт, 7 апр. 2020 г. в 02:08, Anthony :
>
>> Hello,
>>
>> For the following example, instead of storing the "Person" using ODBC, is
>> it possible to build the "Person" in c++  and store to in the server?
>>
>> I still want to use ODBC to retrieve the data.
>>
>>
>> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
>>
>>
>> Thanks,
>>
>> Anthony
>>
>


Re: Concept Question about Ignite

2020-04-07 Thread Anthony
Hello Evgenii,

I foud that the link for More information on CacheConfiguration can be
found here: is missing, could you please resend it to me?

Also,is there a way to find out which setting is the fastest and minimal
overhead?

Thanks,

Anthony

On Tue, Apr 7, 2020 at 11:46 AM Anthony  wrote:

> Thanks for your help Evgenii!
>
> On Tue, Apr 7, 2020 at 10:38 AM Evgenii Zhuravlev <
> e.zhuravlev...@gmail.com> wrote:
>
>> Hi,
>>
>> If these nodes are combined into one cluster, then it will be the same
>> cache. By default, it will be Partitioned cache without backups and both
>> nodes will have part of the data. If you want to replicate data fully, you
>> can set backups to 1 or create cache as Replicated instead of Partitioned.
>> More information on CacheConfiguration can be found here:
>>
>> Best Regards,
>> Evgenii
>>
>> вт, 7 апр. 2020 г. в 10:25, Anthony :
>>
>>> Hello,
>>>
>>> I am new to Ignite and have a few questions.
>>> If I have two process running the following code:
>>>
>>> Process 1:
>>> Ignite grid = Ignition::Start(cfg);
>>> Cache cache = grid.GetOrCreateCache>> std::string>("myCache");
>>>
>>>   Process 2:
>>>  Ignite grid = Ignition::Start(cfg);
>>> Cache cache = grid.GetCache>> std::string>("myCache");
>>>
>>> Will Cache be duplicated to the grid in process 2?
>>>
>>> Thanks,
>>>
>>> Anthony
>>>
>>


Re: Concept Question about Ignite

2020-04-07 Thread Anthony
Thanks for your help Evgenii!

On Tue, Apr 7, 2020 at 10:38 AM Evgenii Zhuravlev 
wrote:

> Hi,
>
> If these nodes are combined into one cluster, then it will be the same
> cache. By default, it will be Partitioned cache without backups and both
> nodes will have part of the data. If you want to replicate data fully, you
> can set backups to 1 or create cache as Replicated instead of Partitioned.
> More information on CacheConfiguration can be found here:
>
> Best Regards,
> Evgenii
>
> вт, 7 апр. 2020 г. в 10:25, Anthony :
>
>> Hello,
>>
>> I am new to Ignite and have a few questions.
>> If I have two process running the following code:
>>
>> Process 1:
>> Ignite grid = Ignition::Start(cfg);
>> Cache cache = grid.GetOrCreateCache> std::string>("myCache");
>>
>>   Process 2:
>>  Ignite grid = Ignition::Start(cfg);
>> Cache cache = grid.GetCache> std::string>("myCache");
>>
>> Will Cache be duplicated to the grid in process 2?
>>
>> Thanks,
>>
>> Anthony
>>
>


Concept Question about Ignite

2020-04-07 Thread Anthony
Hello,

I am new to Ignite and have a few questions.
If I have two process running the following code:

Process 1:
Ignite grid = Ignition::Start(cfg);
Cache cache = grid.GetOrCreateCache("myCache");

  Process 2:
 Ignite grid = Ignition::Start(cfg);
Cache cache = grid.GetCache("myCache");

Will Cache be duplicated to the grid in process 2?

Thanks,

Anthony


C++ ODBC Example Question

2020-04-06 Thread Anthony
Hello,

For the following example, instead of storing the "Person" using ODBC, is
it possible to build the "Person" in c++  and store to in the server?

I still want to use ODBC to retrieve the data.

https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp


Thanks,

Anthony


Re: Error and Question about communication between java node and c++ node

2020-04-03 Thread Anthony
It works, thank you so much for your help!

On Fri, Apr 3, 2020 at 8:42 AM Ilya Kasnacheev 
wrote:

> Hello!
>
> Local node's binary configuration is not equal to remote node's binary
> configuration [locNodeId=155424bd-1c8e-48a2-83ff-26aa6cf9e7af,
> rmtNodeId=db4efc6e-44c7-46ce-b7c0-154e387c0448,
> locBinaryCfg={globIdMapper=org.apache.ignite.binary.BinaryBasicIdMapper,
> compactFooter=false, globSerializer=null}, rmtBinaryCfg=null]
>
> As explained in the docs, C++ nodes require compactFooter to be false, so
> it is necessary to include  matching BinaryConfiguration in your Java
> node's IgniteConfiguration. Tune it until the error goes away.
> Please check
> https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 3 апр. 2020 г. в 17:24, Anthony :
>
>> Attached is the log file from C++Side:
>> [07:20:41,216][WARNING][main][G] Ignite work directory is not provided,
>> automatically resolved to:
>> C:\Users\harte\Desktop\work\apache-ignite-2.8.0-bin-try\apache-ignite-2.8.0-bin\work
>> [07:20:41,344][INFO][main][IgniteKernal%myGrid]
>>
>> >>>__  
>> >>>   /  _/ ___/ |/ /  _/_  __/ __/
>> >>>  _/ // (7 7// /  / / / _/
>> >>> /___/\___/_/|_/___/ /_/ /___/
>> >>>
>> >>> ver. 2.8.0#20200226-sha1:341b01df
>> >>> 2020 Copyright(C) Apache Software Foundation
>> >>>
>> >>> Ignite documentation: http://ignite.apache.org
>>
>> [07:20:41,353][INFO][main][IgniteKernal%myGrid] Config URL: n/a
>> [07:20:41,367][INFO][main][IgniteKernal%myGrid] IgniteConfiguration
>> [igniteInstanceName=myGrid, pubPoolSize=8, svcPoolSize=8,
>> callbackPoolSize=8, stripedPoolSize=8, sysPoolSize=8, mgmtPoolSize=4,
>> igfsPoolSize=8, dataStreamerPoolSize=8, utilityCachePoolSize=8,
>> utilityCacheKeepAliveTime=6, p2pPoolSize=2, qryPoolSize=8,
>> sqlQryHistSize=1000, dfltQryTimeout=0,
>> igniteHome=C:\Users\harte\Desktop\work\apache-ignite-2.8.0-bin-try\apache-ignite-2.8.0-bin,
>> igniteWorkDir=C:\Users\harte\Desktop\work\apache-ignite-2.8.0-bin-try\apache-ignite-2.8.0-bin\work,
>> mbeanSrv=com.sun.jmx.mbeanserver.JmxMBeanServer@5f0fd5a0,
>> nodeId=155424bd-1c8e-48a2-83ff-26aa6cf9e7af, marsh=BinaryMarshaller [],
>> marshLocJobs=false, daemon=false, p2pEnabled=true, netTimeout=5000,
>> netCompressionLevel=1, sndRetryDelay=1000, sndRetryCnt=3,
>> metricsHistSize=1, metricsUpdateFreq=2000,
>> metricsExpTime=9223372036854775807, discoSpi=TcpDiscoverySpi
>> [addrRslvr=null, sockTimeout=0, ackTimeout=0, marsh=null, reconCnt=10,
>> reconDelay=2000, maxAckTimeout=60, soLinger=5, forceSrvMode=false,
>> clientReconnectDisabled=false, internalLsnr=null,
>> skipAddrsRandomization=false], segPlc=STOP, segResolveAttempts=2,
>> waitForSegOnStart=true, allResolversPassReq=true, segChkFreq=1,
>> commSpi=TcpCommunicationSpi [connectGate=null,
>> connPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$FirstConnectionPolicy@604f2bd2,
>> chConnPlc=null, enableForcibleNodeKill=false,
>> enableTroubleshootingLog=false, locAddr=null, locHost=null, locPort=47100,
>> locPortRange=100, shmemPort=-1, directBuf=true, directSndBuf=false,
>> idleConnTimeout=60, connTimeout=5000, maxConnTimeout=60,
>> reconCnt=10, sockSndBuf=32768, sockRcvBuf=32768, msgQueueLimit=0,
>> slowClientQueueLimit=0, nioSrvr=null, shmemSrv=null,
>> usePairedConnections=false, connectionsPerNode=1, tcpNoDelay=true,
>> filterReachableAddresses=false, ackSndThreshold=32, unackedMsgsBufSize=0,
>> sockWriteTimeout=2000, boundTcpPort=-1, boundTcpShmemPort=-1,
>> selectorsCnt=4, selectorSpins=0, addrRslvr=null,
>> ctxInitLatch=java.util.concurrent.CountDownLatch@1d3ac898[Count = 1],
>> stopping=false, metricsLsnr=null],
>> evtSpi=org.apache.ignite.spi.eventstorage.NoopEventStorageSpi@1b73be9f,
>> colSpi=NoopCollisionSpi [], deploySpi=LocalDeploymentSpi [],
>> indexingSpi=org.apache.ignite.spi.indexing.noop.NoopIndexingSpi@366ac49b,
>> addrRslvr=null,
>> encryptionSpi=org.apache.ignite.spi.encryption.noop.NoopEncryptionSpi@6ad59d92,
>> clientMode=false, rebalanceThreadPoolSize=4, rebalanceTimeout=1,
>> rebalanceBatchesPrefetchCnt=3, rebalanceThrottle=0,
>> rebalanceBatchSize=524288, txCfg=TransactionConfiguration
>> [txSerEnabled=false, dfltIsolation=REPEATABLE_READ,
>> dfltConcurrency=PESSIMISTIC, dfltTxTimeout=0,
>> txTimeoutOnPartitionMapExchange=0, deadlockTimeout=1,
>> pessimisticTxLogSize=0, pessimisticTxLogLinger=1, tmLookupClsName=null,
>> t

Re: Error and Question about communication between java node and c++ node

2020-04-03 Thread Anthony
 [pages=2252]
^-- Heap [used=43MB, free=98.92%, comm=87MB]
^-- Off-heap [used=8MB, free=99.74%, comm=336MB]
^--   sysMemPlc region [used=0MB, free=99.21%, comm=40MB]
^--   default region [used=8MB, free=99.75%, comm=256MB]
^--   TxLog region [used=0MB, free=100%, comm=40MB]
^-- Outbound messages queue [size=0]
^-- Public thread pool [active=0, idle=0, qSize=0]
^-- System thread pool [active=0, idle=8, qSize=0]
[2020-04-03 07:21:38,870][INFO ][grid-timeout-worker-#23][IgniteKernal]
FreeList [name=default##FreeList, buckets=256, dataPages=1, reusePages=0]
[2020-04-03 07:22:38,880][INFO ][grid-timeout-worker-#23][IgniteKernal]
Metrics for local node (to disable set 'metricsLogFrequency' to 0)
^-- Node [id=db4efc6e, uptime=00:02:00.022]
^-- H/N/C [hosts=1, nodes=1, CPUs=8]
^-- CPU [cur=-100%, avg=-97.87%, GC=0%]
^-- PageMemory [pages=2252]
^-- Heap [used=46MB, free=98.85%, comm=87MB]
^-- Off-heap [used=8MB, free=99.74%, comm=336MB]
^--   sysMemPlc region [used=0MB, free=99.21%, comm=40MB]
^--   default region [used=8MB, free=99.75%, comm=256MB]
^--   TxLog region [used=0MB, free=100%, comm=40MB]
^-- Outbound messages 

Error and Question about communication between java node and c++ node

2020-04-02 Thread Anthony
Hello,

I am trying to make java node and c++ node communicate with each other. I
have successfully done it between two c++ node (which is straight forward).

However, when I tried to do a put in java and a get in c++, I got some
errors. Could anyone have a look? Thanks.

Also, examples of the communication would be helpful!

I first created a node and cache in Java:
Ignite ignite = Ignition.start();
IgniteCache caches = ignite.getOrCreateCache("myCache");

And in C++:
  IgniteConfiguration cfg;
  Ignite grid = Ignition::Start(cfg);
   // Get cache instance.
   Cache caches = grid.GetCache("myCache");

Then I got the following error messages on java side:

[2020-04-02 16:10:27,131][ERROR][main][IgniteKernal] Failed to start
manager: GridManagerAdapter [enabled=true,
name=o.a.i.i.managers.discovery.GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedException: Failed to start SPI:
TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000,
marsh=JdkMarshaller
[clsFilter=org.apache.ignite.marshaller.MarshallerUtils$1@fd9ebde],
reconCnt=10, reconDelay=2000, maxAckTimeout=60, soLinger=5,
forceSrvMode=false, clientReconnectDisabled=false, internalLsnr=null,
skipAddrsRandomization=false]
at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:943)


Re: Need help for Access Violation

2020-02-10 Thread Anthony
Yes. I was using MSVC for both of them.

BTW, are the project odbc and thin-client in the ignite needed? I did not
build them because of some compiling issues.

On Mon, Feb 10, 2020 at 5:54 AM Igor Sapego  wrote:

> The issue looks very weird to me. Have you compiled the Ignite
> libs using the same compiler as you use in your project?
>
> Best Regards,
> Igor
>
>
> On Fri, Feb 7, 2020 at 7:39 PM Anthony  wrote:
>
>> Hello,
>> The "usrCp" value is
>> NameValueType
>> ▶ usrCp  const std::string &
>> Seems that the "cfg.jvmClassPath" was not set properly?
>>
>> I am not familiar with java environment, should i set some environmental
>> variable?
>>
>> Thank you!
>>
>> Anthony
>>
>> On Fri, Feb 7, 2020 at 5:20 AM Igor Sapego  wrote:
>>
>>> Hi
>>>
>>> And what is the value of "usrCp" argument?
>>> For me the code works just fine.
>>>
>>> Best Regards,
>>> Igor
>>>
>>>
>>> On Fri, Feb 7, 2020 at 12:22 AM Anthony  wrote:
>>>
>>>> Hello,
>>>>
>>>> I am new to ignite C++. I am using windows 10, VS community.
>>>>
>>>> I keep getting Access Violation when I am trying to run the following
>>>> code.
>>>>
>>>> #include
>>>> #include
>>>> using namespace ignite;
>>>>
>>>> int main() {
>>>> IgniteConfiguration cfg;
>>>> Ignite node = Ignition::Start(cfg);
>>>> std::cout << "node started" << std::endl;
>>>> return 0;
>>>> }
>>>>
>>>> Can anyone help with that?
>>>>
>>>> The error was generated from:
>>>>
>>>> std::string NormalizeClasspath(const std::string& usrCp)
>>>> {
>>>> if (usrCp.empty() || *usrCp.rbegin() == ';')
>>>> return usrCp;
>>>>
>>>> return usrCp + ';';
>>>> }
>>>> Following are the error messages:
>>>>
>>>> Exception thrown at 0x7FFBADD635D6 (ignite.jni.dll) in
>>>> Project1.exe: 0xC005: Access violation reading location
>>>> 0x. occurred
>>>>
>>>> Thank you !!
>>>>
>>>


Re: Need help for Access Violation

2020-02-07 Thread Anthony
Hello,
The "usrCp" value is
NameValueType
▶ usrCp  const std::string &
Seems that the "cfg.jvmClassPath" was not set properly?

I am not familiar with java environment, should i set some environmental
variable?

Thank you!

Anthony

On Fri, Feb 7, 2020 at 5:20 AM Igor Sapego  wrote:

> Hi
>
> And what is the value of "usrCp" argument?
> For me the code works just fine.
>
> Best Regards,
> Igor
>
>
> On Fri, Feb 7, 2020 at 12:22 AM Anthony  wrote:
>
>> Hello,
>>
>> I am new to ignite C++. I am using windows 10, VS community.
>>
>> I keep getting Access Violation when I am trying to run the following
>> code.
>>
>> #include
>> #include
>> using namespace ignite;
>>
>> int main() {
>> IgniteConfiguration cfg;
>> Ignite node = Ignition::Start(cfg);
>> std::cout << "node started" << std::endl;
>> return 0;
>> }
>>
>> Can anyone help with that?
>>
>> The error was generated from:
>>
>> std::string NormalizeClasspath(const std::string& usrCp)
>> {
>> if (usrCp.empty() || *usrCp.rbegin() == ';')
>> return usrCp;
>>
>> return usrCp + ';';
>> }
>> Following are the error messages:
>>
>> Exception thrown at 0x7FFBADD635D6 (ignite.jni.dll) in Project1.exe:
>> 0xC005: Access violation reading location 0x. occurred
>>
>> Thank you !!
>>
>


Need help for Access Violation

2020-02-06 Thread Anthony
Hello,

I am new to ignite C++. I am using windows 10, VS community.

I keep getting Access Violation when I am trying to run the following code.

#include
#include
using namespace ignite;

int main() {
IgniteConfiguration cfg;
Ignite node = Ignition::Start(cfg);
std::cout << "node started" << std::endl;
return 0;
}

Can anyone help with that?

The error was generated from:

std::string NormalizeClasspath(const std::string& usrCp)
{
if (usrCp.empty() || *usrCp.rbegin() == ';')
return usrCp;

return usrCp + ';';
}
Following are the error messages:

Exception thrown at 0x7FFBADD635D6 (ignite.jni.dll) in Project1.exe:
0xC005: Access violation reading location 0x. occurred

Thank you !!