Re: Using putAll(TreeMap) with BinaryObjects

2020-05-20 Thread vtchernyi
Hi,I did implement user pojo with comparator on the client node, that pojo exists in the client process jar file. That approach works well on the client.But it seems that pojo will not be zero deployed, since it is just user class without any system inheritance. So I didn't even try to use it in ComputeJobAdapter objects that are executed on the cluster nodes.It will ge great to implement comparable binary object on the system level16:08, 20 мая 2020 г., "Grigory.D" :For solution 2, should Comparator implementation class be present on servernode (in case of no p2p cl enabled)? Or it is used only on client side.-- Sent from: http://apache-ignite-users.70518.x6.nabble.com/-- Отправлено из мобильного приложения Яндекс.Почты

Re: Ignite Node Metrics using JMX

2020-05-20 Thread kay
Thankyou.
I found ClusterLocalNodeMetricsMXBeanImpl bean and attributes.
Is it node information? or os processor? 
ex. currentCpuLoad, CurrentGcCpuload, CurrentThreadCount??

and if i want to get onheap/offheap used size , 
ClusterLocalNodeMetricsMXBeanImpl - HeapMemoryUsed -> a
DataRegionMetrics - offHeapUsedSize -> b

b is offHeapMemoryUsed, onHeap memory used calculation is a-b is it correct?




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


Re: How Ignite launch the ./libs Jar

2020-05-20 Thread marble.zh...@coinflex.com
thanks a lot Alex.

I saw my jar from the java process. But cannot see the logs I print out from
the ignite console, I am not sure whether the task run or not run, 

My META-INF/ignite.xml defined as below,





http://www.springframework.org/schema/beans;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   xmlns:util="http://www.springframework.org/schema/util;
   xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd;>
Ignite Spring configuration file in gar-file.



com.coinflex.ComputeTaskDeployment
   


And the task ComputeTaskDeployment is simple as below,

public class ComputeTaskDeployment extends ComputeTaskSplitAdapter {

@IgniteInstanceResource
Ignite ignite;

public ComputeTaskDeployment() {
System.out.println("starting the ComputeTaskDeployment sample");
}



@Override
protected Collection split(int clusterSize,
String arg) {
Collection jobs = new LinkedList<>();

arg = "how many words there.";


for (final String word : arg.split(" ")) {
jobs.add(new ComputeJobAdapter() {
@Nullable @Override public Object execute() {

// Return number of letters in the word.
int len = word.length();
System.out.println(">>> Printing '" + word + "'
length is:" + len + " on this nodeID "
+ ignite.cluster().localNode().id() + " from
ignite job.");
return len;

}

});
}

return jobs;
}


/** {@inheritDoc} */
@Nullable
@Override
public Integer reduce(List results) {
int sum = 0;
System.out.println("reduce start...");
for (ComputeJobResult res : results)
sum += res.getData();

return sum;
}
}


thanks again Alex




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


Can Tableau Desktop(Windows) connect the database from Apache ignite(Linux)?

2020-05-20 Thread lan
As the topic ,anyone has the experience about this ?



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


Re: Data Consistency Question

2020-05-20 Thread akorensh
Hi, 
   A Streamer -- using IgniteDataStreamer.addData(..) does not guarantee
consistency.

   from doc: Note that streamer will stream data concurrently by multiple
internal threads, so the data may get to remote nodes in different order
from which it was added to the streamer.

   see:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteDataStreamer.html
   and:  https://apacheignite.readme.io/docs/data-streamers

   In your case however, the statements are executed serially therefore
order should be preserved, while
   SET STREAMING ON is designed for multiple INSERTS submitted together.

   https://apacheignite-sql.readme.io/docs/set
Thanks, Alex
  



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


Re: Unable to deploy Ignite Web Console in local

2020-05-20 Thread Evgenii Zhuravlev
Hi,

The community is stopping maintenance for Ignite WebConsole:
http://apache-ignite-developers.2346864.n4.nabble.com/RESULT-VOTE-Stop-Maintenance-of-Ignite-Web-Console-td47548.html.
I recommend using GridGain Webconsole instead:
https://www.gridgain.com/resources/download#webconsole. There is no need to
build it, binaries are available.

Best Regards,
Evgenii

ср, 20 мая 2020 г. в 02:32, BEELA GAYATRI :

> Hi,
>
>
>
>
>
>I am trying to deploy Ignite Web Console in my local machine and
> installed Mongo Dbversion 4.2 and NodeJs 14.0 versions, Ignite version used
> is  apache-ignite-2.7.0.
>
> However am unable to find paths($IGNITE_HOME/modules/web-console/backend
> and $IGNITE_HOME/modules/web-console/frontend)  in Ignite_home  and
>  unable to  create ignite-web-agent-x.x.x.zip
>
>
>
> I am getting below error while running below Command. Please suggest how
> to proceed further.
>
> mvn clean package -pl :ignite-web-agent -am -P web-console -DskipTests=true
>
>
>
>
>
>
>
> https://apacheignite-tools.readme.io/docs/build-and-deploy
>
>
>
>
>
> In order to deploy Ignite Web Console locally, you should install:
>
> · MongoDB (version >=3.2.x <=3.4.15) follow instructions from
> site http://docs.mongodb.org/manual/installation
>
> · NodeJS (version >=8.0.0) using installer from site
> https://nodejs.org/en/download/current for your OS.
>
> Download the following dependencies:
>
> · For backend:
> cd $IGNITE_HOME/modules/web-console/backend
> npm install --no-optional
>
> · For frontend:
> cd $IGNITE_HOME/modules/web-console/frontend
> npm install --no-optional
> Building Ignite Web Agent
>
> To build Ignite Web Agent
> 
>  from
> sources, run the following command from the $IGNITE_HOME folder:
> mvn clean package -pl :ignite-web-agent -am -P web-console -DskipTests=true
>
> Once the build process is over, you can find ignite-web-agent-x.x.x.zip
>  in:
> $IGNITE_HOME/modules/web-console/web-agent/target
>
>
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>


Re: Can you create a cache using Ignite Visor CLI?

2020-05-20 Thread akorensh
you can use the sqlline: https://apacheignite-sql.readme.io/docs/sqlline

run some sql: 
  CREATE TABLE Person(ID INTEGER PRIMARY KEY, NAME VARCHAR(100));
  INSERT INTO Person(ID, NAME) VALUES (1, 'Ed'), (2, 'Ann'), (3, 'Emma');

 You will see a cache created: SQL_PUBLIC_PERSON




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


Re: Can you create a cache using Ignite Visor CLI?

2020-05-20 Thread Andrew Munn
It looks like control.sh won't create caches either.  How can they be
created by a utility in the shell?

On Tue, May 19, 2020 at 3:58 PM akorensh  wrote:

> yes. That is correct:
> https://apacheignite-tools.readme.io/docs/command-line-interface
>
> use the "help cache" command inside the visor to see all of the
> capabilities.
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: How Ignite launch the ./libs Jar

2020-05-20 Thread akorensh
Hi,
   If you are using a regular downloaded version then:
When you put a jar into the libs dir it will be automatically located in
the classpath.
You can then do jinfo  and find your jar.  Use any class within
that jar inside your app and it should work.

   you can do an experiment:
   go into the libs dir and do: touch myfile.jar
   then start ignite using ignite.sh/ignite.bat

   find your java process (use jps -v) then run jinfo  | grep
myfile.jar

   Send your config file/logs and I'll take a look.


Thanks, Alex



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


Re: Cache Item Invalidation

2020-05-20 Thread akorensh
For external events, you would need to monitor those events and expiry
manually.
Ignite does have notification capabilities int the form of events for cache
put/get and other operations
see here: https://apacheignite.readme.io/docs/events
You can use that

example:
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java
 



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


Re: Cache Item Invalidation

2020-05-20 Thread Marty Jones
I understand the expiration policies but my question is about automatically
expiring a cache entry when an external event occurs such as a database
table column changes.

On Wed, May 20, 2020 at 9:49 AM akorensh  wrote:

> Hi,
>   Take a look at: https://apacheignite.readme.io/docs/expiry-policies
>Also pay attention to: https://apacheignite.readme.io/docs/evictions
> Thanks, Alex
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: Cache Item Invalidation

2020-05-20 Thread akorensh
Hi,
  Take a look at: https://apacheignite.readme.io/docs/expiry-policies
   Also pay attention to: https://apacheignite.readme.io/docs/evictions
Thanks, Alex



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


Re: Two specific warnings everytime

2020-05-20 Thread akorensh
see: https://apacheignite.readme.io/docs/continuous-queries



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


Re: Using putAll(TreeMap) with BinaryObjects

2020-05-20 Thread Grigory.D
For solution 2, should Comparator implementation class be present on server
node (in case of no p2p cl enabled)? Or it is used only on client side.



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


How Ignite launch the ./libs Jar

2020-05-20 Thread marble.zh...@coinflex.com
Hi , need your help, or give a link, or give a hint on this deployment,

Ignite Jar deployment case,

Say I have a jar package with the main-class defined, and put it into the
./libs folder, what will the ignite do, ignite how to launch this Jar? Which
is the endpoint for Ignite launch this Jar?

Any specification for the Jar to the ./libs, btw , is there a full example
of the userversion xml of ignite.xml, if put below content into the
ignite.xml, ignite shows cannot recognize the userVersion tag,






my problem is don't know what ignite launch this Jar, I expect ignite can
help launch the Jar main-class, and monitoring the cache put event, and it
will fire the compute/tasks. And which is a loop forever.

Thanks a lot.



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


Unable to deploy Ignite Web Console in local

2020-05-20 Thread BEELA GAYATRI
Hi,


   I am trying to deploy Ignite Web Console in my local machine and installed 
Mongo Dbversion 4.2 and NodeJs 14.0 versions, Ignite version used is  
apache-ignite-2.7.0.
However am unable to find paths($IGNITE_HOME/modules/web-console/backend and 
$IGNITE_HOME/modules/web-console/frontend)  in Ignite_home  and  unable to  
create ignite-web-agent-x.x.x.zip

I am getting below error while running below Command. Please suggest how to 
proceed further.

mvn clean package -pl :ignite-web-agent -am -P web-console -DskipTests=true

[cid:image003.png@01D62EB7.A4FFF8E0]


https://apacheignite-tools.readme.io/docs/build-and-deploy



In order to deploy Ignite Web Console locally, you should install:
· MongoDB (version >=3.2.x <=3.4.15) follow instructions from site 
http://docs.mongodb.org/manual/installation
· NodeJS (version >=8.0.0) using installer from site 
https://nodejs.org/en/download/current for your OS.

Download the following dependencies:

· For backend:
cd $IGNITE_HOME/modules/web-console/backend
npm install --no-optional

· For frontend:
cd $IGNITE_HOME/modules/web-console/frontend
npm install --no-optional

Building Ignite Web Agent

To build Ignite Web 
Agent
 from sources, run the following command from the $IGNITE_HOME folder:
mvn clean package -pl :ignite-web-agent -am -P web-console -DskipTests=true

Once the build process is over, you can find ignite-web-agent-x.x.x.zip in:
$IGNITE_HOME/modules/web-console/web-agent/target


Sent from Mail for Windows 10

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Data Consistency Question

2020-05-20 Thread adipro
Can anyone tell if this code guarantees all the rows to be inserted right
after all the statements are executed?

IgniteSemaphore semaphore = null;
try {
semaphore =
cacheHolder.getJDBCSemaphore(IgniteLocks.JDBC_LOCK.getLockValue());
semaphore.acquire();
try{
   
Class.forName("org.apache.ignite.IgniteJdbcThinDriver");
}
catch(Exception e) {
e.printStackTrace();
}
try(final Connection conn =
DriverManager.getConnection(IgniteCacheTable.JDBC_THIN_URL_STRING.toString())){
try (final Statement stmt =
conn.createStatement()) {
stmt.executeUpdate("SET STREAMING ON
ALLOW_OVERWRITE ON");//No I18N
}
try(final PreparedStatement stmt =
conn.prepareStatement(
"INSERT INTO URLS VALUES (?, ?, ?, ?)"))
{//No I18N
while (keys.hasNext()) {
String key = keys.next().toString();
s_id = cacheHolder.getAtomicSequence();
stmt.setLong(1, s_id);
stmt.setString(2, key);
stmt.setDouble(3,
Double.parseDouble(keyValueMap.get(key).toString()));
stmt.setLong(4, appNameId);
stmt.execute();
   
appNameUrl.put(IgniteCacheTable.FRONTIER_DB.getDBValue()+"|"+objects[1]+"|"+key,
s_id);
}
}
}
}
finally {
if(semaphore != null){
semaphore.release();
}
}



I am having some trouble understanding data consistency when using
IgniteDataStreamers.



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


Re: Two specific warnings everytime

2020-05-20 Thread adipro
I'm sorry I don't have any clue on "continous" queries. What are they? And I
don't use it as per my knowledge.



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