You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vkulichenko <va...@gmail.com> on 2016/09/22 22:48:31 UTC

Re: retrieving values from ignite cache but Rdd don´t show values and long time Java

Hi,

Please properly subscribe to the mailing list so that the community can
receive email notifications for your messages. To subscribe, send empty
email to user-subscribe@ignite.apache.org and follow simple instructions in
the reply.


rodrigo thread wrote
> I have an application that saves Rdd's spark with some values (key, value)
> to ignite cache, then I have another application that gets this cache
> ignite and extract these values (key, value), the problem is when you draw
> can not get the values and show them I'm using Java?
> 
> IgniteRDD&lt;Integer, String&gt; javaIRDDRet = ic.fromCache(cacheName);       
> JavaRDD&lt;Tuple2&lt;Integer, String&gt;> javardd =
> javaIRDDRet.toJavaRDD();
>     int j = (int) javardd.count();
>     System.out.println("values count =" + j);
>     for (int i=0;i&lt;j;i++) {
>         try {
>             Tuple2&lt;Integer, String&gt; retorno1 =(Tuple2&lt;Integer,
> String&gt;) javardd.collect().get(i);
> 
>             System.out.println(retorno1._1+" "+retorno1._2);
>             i++;
> 
>         } catch (Exception ex) {
>             ex.printStackTrace();
>         }
>     }

If possible, please provide the full test that will reproduce the issue.
Someone in the community will take a look.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/retrieving-values-from-ignite-cache-but-Rdd-don-t-show-values-and-long-time-Java-tp7812p7888.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.