You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vbm <bm...@gmail.com> on 2018/03/04 03:20:58 UTC
Using Rest module cache not getting created
Hi,
I am using ignite 2.3. I have added the ignite-rest-http folder under libs
folder.
Ignite version command is working as expected:
curl http://10.194.11.99:8080/ignite?cmd=version
{"successStatus":0,"sessionToken":null,"error":null,"response":"2.3.0"}
But when I try to create cache it returns success but cache is not getting
created:
curl http://10.194.11.99:8080/ignite?cmd=getorcreate&cacheName=myCache
[1] 11814
{"successStatus":0,"sessionToken":null,"error":null,"response":null}
I verified using ignite visor script, only default cache is present.
Can you let me know, what is wrong here.
Regards,
Vishwas
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Using Rest module cache not getting created
Posted by vbm <bm...@gmail.com>.
Thanks for the reply.
After adding the single quotes, the cache is getting created using rest API.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Using Rest module cache not getting created
Posted by "ilya.kasnacheev" <il...@gmail.com>.
Hello!
curl http://10.194.11.99:8080/ignite?cmd=getorcreate&cacheName=myCache
[1] 11814
Ah-ah! Notice this [1]? This means that second part of your query was just
eaten by UNIX shell.
Use quotes to protect URLs in commands:
curl 'http://10.194.11.99:8080/ignite?cmd=getorcreate&cacheName=myCache'
Regards,
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Using Rest module cache not getting created
Posted by Alexey Kuznetsov <ak...@apache.org>.
Hi, Vishwas
It is known issue with REST.
I fixed it recently in https://issues.apache.org/jira/browse/IGNITE-7725
It will be available in ignite-2.5 because it was late to push it in
ignite-2.4 due to code freeze.
You can wait for ignite-2.5 or build from sources from master branch.
On Sun, Mar 4, 2018 at 10:20 AM, vbm <bm...@gmail.com> wrote:
> Hi,
>
> I am using ignite 2.3. I have added the ignite-rest-http folder under libs
> folder.
>
> Ignite version command is working as expected:
> curl http://10.194.11.99:8080/ignite?cmd=version
> {"successStatus":0,"sessionToken":null,"error":null,"response":"2.3.0"}
>
>
> But when I try to create cache it returns success but cache is not getting
> created:
> curl http://10.194.11.99:8080/ignite?cmd=getorcreate&cacheName=myCache
> [1] 11814
> {"successStatus":0,"sessionToken":null,"error":null,"response":null}
>
> I verified using ignite visor script, only default cache is present.
> Can you let me know, what is wrong here.
>
>
> Regards,
> Vishwas
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
--
Alexey Kuznetsov