Re: Configuring ignite distributed hibernate cache

2016-09-27 Thread Denis Magda
Val,

Can we add this workaround to our documentation by creating an “attention” 
block? The block can be removed once the issue is fixed for binary marshaller.

—
Denis

> On Sep 27, 2016, at 3:35 PM, vkulichenko  
> wrote:
> 
> BTW, as a workaround you can try switching to OptimizedMarshaller. Add this
> to your Ignite config:
> 
> 
> class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller"/>
> 
> 
> Let me know if it works.
> 
> -Val
> 
> 
> 
> --
> View this message in context: 
> http://apache-ignite-users.70518.x6.nabble.com/Configuring-ignite-distributed-hibernate-cache-tp7975p7977.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.



Re: Configuring ignite distributed hibernate cache

2016-09-27 Thread Himetic
Excellent, that did the trick!  Thanks a lot for the help.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Configuring-ignite-distributed-hibernate-cache-tp7975p7982.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: How to avoid the event lost in the continuous query

2016-09-27 Thread vkulichenko
Remote filter is on server nodes, local listener is on the client. Here is an
example:
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-to-avoid-the-event-lost-in-the-continuous-query-tp7904p7981.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Configuring ignite distributed hibernate cache

2016-09-27 Thread vkulichenko
BTW, as a workaround you can try switching to OptimizedMarshaller. Add this
to your Ignite config:





Let me know if it works.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Configuring-ignite-distributed-hibernate-cache-tp7975p7977.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Configuring ignite distributed hibernate cache

2016-09-27 Thread vkulichenko
Hi,

Most likely this is caused by this issue:
https://issues.apache.org/jira/browse/IGNITE-3429. Hopefully, someone in the
community will pick it up and fix.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Configuring-ignite-distributed-hibernate-cache-tp7975p7976.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Configuring ignite distributed hibernate cache

2016-09-27 Thread Himetic
I'm using the hibernate caching ignite provides (as documented here:
https://apacheignite.readme.io/docs/hibernate-l2-cache) and having some
difficulty getting the caching to work in a distributed manner.  It works
fine when the object is cached locally, and it seems to be aware of the
other machine (in the logs it prints:

Metrics for local node (to disable set 'metricsLogFrequency' to 0)
^-- Node [id=5ae49faa, name=hibernate-grid, uptime=00:01:00:000]
^-- *H/N/C [hosts=2, nodes=2, CPUs=16]*
^-- CPU [cur=0.53%, avg=9.92%, GC=0%]
^-- Heap [used=986MB, free=45.84%, comm=1597MB]
^-- Non heap [used=146MB, free=-1%, comm=150MB]
^-- Public thread pool [active=0, idle=16, qSize=0]
^-- System thread pool [active=0, idle=16, qSize=0]
^-- Outbound messages queue [size=0]

when we start up the second machine, which seems to indicate that it's
reaching the second machine, at least in some capacity.  But when we perform
a GET on one machine, and then on the other, the second machine isn't
hitting the cached value.

I believe we've got it set up for partitioned caching across the hosts. 
Here's the xml for the hosts:










[IP addr 1]:48500..48520
[IP addr 2]:48500..48520







Each of the caches is set up to extend the transactional parent from the
documentation:







As I said, the cache itself IS working locally, but it doesn't seem to
actually be partitioning it.  I debugged into the cache retrieval method and
it's going through GridCacheAdapter in Ignite, but ultimately not finding
the value that's supposed to cached already from making the call on the
other machine.  Is there something wrong with our configuration?  Or is
there some other step I missed?  Thanks!



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Configuring-ignite-distributed-hibernate-cache-tp7975.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: No cache SQL queries possible with Default Serializer set to BinaryReflectiveSerializer

2016-09-27 Thread Alexander Paschenko
Alexey,

Long time no see! :)

2016-08-24 12:03 GMT+03:00 exones :
> Pavel,
>
> Now it's absolutely clear, thank you very much. Looking forward to this
> feature


Getting a cluster-configured JCache CacheManager instance

2016-09-27 Thread Josh Cummings
I would like to get an instance of a JCache CacheManager that is configured
to point at a remote Ignite cluster.

I understand that I can provide a location to a spring configuration file
with the correct discovery strategy, etc.; however, it appears that in that
strategy I must supply an IP address directly in the file.

All our configuration is housed centrally, so I cannot provide the
IP address directly in the file.

1. What options are there for doing property placeholder resolution in the
XML file?
2. What options are there for combining XML and java config in such a way
that when I call Caching.getCachingProvider(...).getCacheManager(...), I
get a cache that is the result of both XML and java config? (We are also
evaluating Hazelcast and were able to get things working there over JCache
using this approach.)

-- 

*JOSH CUMMINGS*

Principal Engineer

[image: Workfront] 

*O*  801.477.1234  |  *M*  8015562751

joshcummi...@workfront.com | www.workfront.com
Address   |  Twitter
  |  LinkedIn
  |  Facebook


[image: Workfront] 


Re: How to avoid the event lost in the continuous query

2016-09-27 Thread Vladislav Pyatkov
Hi,

Local listener need to present on side, where the CC will be invoked, and
remote listener need to be on all server nodes.

On Tue, Sep 27, 2016 at 9:59 AM, ght230  wrote:

> How to deployment ContinuousQuery?
>
> Does remoteFilter deploy on Server side and localListener deploy on Client
> side?
> Or both remoteFilter and localListener deploy on Client side?
>
> Can you show me a detailed example?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/How-to-avoid-the-event-lost-in-the-
> continuous-query-tp7904p7961.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov


Re: Ignite zeppelin jdbc connection

2016-09-27 Thread vdpyatkov
Hi,

As I know you can configure CacheJdbcPojoStore in order to pairs of various
object save to different tables. But in the case types of key must be
different.

All nodes of cluster need to have value classes on classpath or to configure


  

About loading data from persistent store you can look the article[1]

PS
Do not forget to subscribe on mailing list, as Val said.

[1]: http://apacheignite.gridgain.org/docs/data-loading


junyoung.kang wrote
> Wow Thank you for reply!!! also I subscribe mail. 
> 
> I respect you.
> 
> I have more question.(to much.. sorry)
> 
> First, you say a cache is a database schema. But Ignite cache have one
> table in one cache. This is why I think I push data to cache, "
> cacheConfiguration.setIndexedTypes(Integer.class, testTable.class) " . 
> Integer.class is table PK, testTable is JavaPoJo class(have table fields).
> So I insert another table..., I make more cache. isn't it ok?
> 
> Second, how to setting classpath?.. because "select * from TbCustomer" ->
> occur below error.
> 
> ERROR [2016-09-27 14:46:00,923] ({pool-2-thread-7}
> IgniteSqlInterpreter.java[interpret]:158) - Exception in
> IgniteSqlInterpreter while InterpreterResult interpret:
> java.sql.SQLException: Failed to query Ignite.
> at
> org.apache.ignite.internal.jdbc2.JdbcStatement.executeQuery(JdbcStatement.java:115)
> at
> org.apache.zeppelin.ignite.IgniteSqlInterpreter.interpret(IgniteSqlInterpreter.java:132)
> at
> org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
> at
> org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:341)
> at org.apache.zeppelin.scheduler.Job.run(Job.java:176)
> at
> org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: class org.apache.ignite.binary.BinaryInvalidTypeException:
> com.navercorp.searchad.model.TbCustomer
> at
> org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:671)
> at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1474)
> at
> org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeValue(BinaryObjectImpl.java:585)
> at
> org.apache.ignite.internal.binary.BinaryObjectImpl.value(BinaryObjectImpl.java:142)
> at
> org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinary(CacheObjectContext.java:272)
> at
> org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinariesIfNeeded(CacheObjectContext.java:185)
> at
> org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinariesIfNeeded(CacheObjectContext.java:169)
> at
> org.apache.ignite.internal.processors.cache.GridCacheContext.unwrapBinariesIfNeeded(GridCacheContext.java:1741)
> at
> org.apache.ignite.internal.processors.query.GridQueryCacheObjectsIterator.next(GridQueryCacheObjectsIterator.java:64)
> at
> org.apache.ignite.internal.processors.query.GridQueryCacheObjectsIterator.next(GridQueryCacheObjectsIterator.java:29)
> at
> org.apache.ignite.internal.jdbc2.JdbcQueryTask.call(JdbcQueryTask.java:177)
> at
> org.apache.ignite.internal.jdbc2.JdbcStatement.executeQuery(JdbcStatement.java:102)
> ... 12 more
> Caused by: java.lang.ClassNotFoundException:
> com.navercorp.searchad.model.TbCustomer
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:348)
> at
> org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8350)
> at
> org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185)
> at
> org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:662)
> ... 23 more
> 
> I know class file is in IGNITE_HOME/libs...?? 
> please example in detail.
> 
> 
> Finally, In client mode, how to connect to persistent store??
> I want to 

Loading data into cache timing issue?

2016-09-27 Thread Ravi Puri
How to manage time issue when loading data using loadCache() method. It takes
10 mins to load 170 number of data's.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Loading-data-into-cache-timing-issue-tp7965.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Hive on Ignited- Yarn

2016-09-27 Thread Vladimir Ozerov
Hi,

First of all we need to ensure that Ignite is really used in your case.
Please advise which Hadoop deployment you use and where mapred-site.xml and
core-site.xml files you mentioned are located?

Vladimir.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Hive-on-Ignited-Yarn-tp7838p7964.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Is ignite installation required on all nodes of hadoop cluster

2016-09-27 Thread Vladimir Ozerov
Hi,

Could you please provide more information on your use case? 

By default we recommend to have a single Ignite node started on every HDFS
data node so that we can take advantage of data locality and minimize
network traffic. But this is not strict requirement and final cluster
deployment may vary depending on the use case technology stack. So the more
details we have about your use case, the better solution we can advise.

Vladimir.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Is-ignite-installation-required-on-all-nodes-of-hadoop-cluster-tp7919p7963.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Is ignite supported on Mapr File system (mfs)

2016-09-27 Thread Vladimir Ozerov
Hi,

MapR support will be available in Apache Ignite 1.8.

Vladimir.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Is-ignite-supported-on-Mapr-File-system-mfs-tp7914p7962.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: How to avoid the event lost in the continuous query

2016-09-27 Thread ght230
How to deployment ContinuousQuery?

Does remoteFilter deploy on Server side and localListener deploy on Client
side?
Or both remoteFilter and localListener deploy on Client side?

Can you show me a detailed example?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-to-avoid-the-event-lost-in-the-continuous-query-tp7904p7961.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.