Ray, I am sorry - just read your second email and I realised I originally misunderstood your question. You guessed right, your classes need to be deployed on the server nodes and on the server nodes you need to set the USER_LIBS environment variable like:
export USER_LIBS=<path to your IgniteTest JAR>/<your IgniteTest>.jar On Wed, Sep 13, 2017 at 12:15 PM, Ray Liu (rayliu) <[email protected]> wrote: > Can you share your configuration xml? > > I think it’s a binary masharller configuration issue. > > > > *From: *Alexey Kukushkin <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Wednesday, 13 September 2017 at 17:12 > *To: *"[email protected]" <[email protected]> > *Subject: *Re: Issue when executing sql query using REST API > > > > Hi Ray, > > > > Just copied your code into a simple single file sample project, ran it and > your query worked fine for me: > > > > *1. **Request URL:* > > http://127.0.0.1:8080/ignite?cacheName=person&pageSize=1& > qry=limit+2&cmd=qryexe&type=Person& > > *2. **Request Method:* > > GET > > *3. **Status Code:* > > 200 OK > > 4. --------------------- > > 5. {"successStatus":0,"error":null,"response":{"items":[{" > key":0,"value":{"id":0,"firstName":"John","lastName":" > Doe","salary":2000.0,"organizationId":1}}],"last": > false,"fieldsMetadata":[],"queryId":2},"sessionToken":null} > -- Best regards, Alexey
