You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by afedotov <al...@gmail.com> on 2017/03/03 15:26:52 UTC

Re: failed to start Grid Manager Adapter When using PutIgniteCache process in Apache Nifi

Hi, kindly provide the error log.


On Fri, Mar 3, 2017 at 6:40 AM, whateversun [via Apache Ignite Users] <
ml-node+s70518n11012h6@n6.nabble.com> wrote:

> I was trying to store data in Ignite using the PutIgniteCache processor in
> Nifi. The flowfile content is in JSON and have been evaluated using the
> EvaluateJsonPath processor. The PutIgniteCache processor requires a path to
> the Spring property xml file and a cache name. So I started Ignite and
> created a cache in my IDE named "store" and made sure the path I used in my
> IDE and Nifi are the same: example-cache.xml. And now it gives me the error
> in the Subject.
>
> Below is the code in my IDE:
>
> package cache.set;
>
> import org.apache.ignite.Ignition;
> import org.apache.ignite.IgniteException;
> import org.apache.ignite.Ignite;
> import org.apache.ignite.IgniteCache;
> import org.apache.ignite.cache.CacheAtomicityMode;
> import org.apache.ignite.configuration.CacheConfiguration;
> import org.json.JSONObject;
> /**
>  * Hello world!
>  *
>  */
> public class App
> {
>     public static void main( String[] args ) throws IgniteException{
>     try{
>     Ignition.start("/Users/senli/Desktop/apache-ignite-fabric-
> 1.8.0-bin/examples/config/example-cache.xml");
>
>     CacheConfiguration<String, JSONObject> cfg = new
> CacheConfiguration<>();
>     cfg.setName("store");
>     cfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
>     //IgniteCache<String, JSONObject> cache =
> ignite.getOrCreateCache(cfg);
>     //cache.put("username", new JSONObject("haha"));
>     //System.out.println(cache.get("username")); Ignite ignite =
>     } catch (Exception e) {
>     e.printStackTrace();
>     }
>     }
> }
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/failed-to-
> start-Grid-Manager-Adapter-When-using-PutIgniteCache-
> process-in-Apache-Nifi-tp11012.html
> To start a new topic under Apache Ignite Users, email
> ml-node+s70518n1h65@n6.nabble.com
> To unsubscribe from Apache Ignite Users, click here
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=YWxleGFuZGVyLmZlZG90b2ZmQGdtYWlsLmNvbXwxfC0xMzYxNTU0NTg=>
> .
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Kind regards,
Alexander.




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/failed-to-start-Grid-Manager-Adapter-When-using-PutIgniteCache-process-in-Apache-Nifi-tp11012p11023.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.