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/07/27 23:38:47 UTC
Re: Rest-api: Returning no reply from server
Hi,
Please properly subscribe to the mailing list so that the community can
receive email notifications for your messages. Here is the instruction:
http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1
chetanvyadav wrote
> $ curl http://127.0.0.1:47500/ignite?cmd=version
> curl: (52) Empty reply from server
The default port for HTTP server is 8080, not 47500. Also don't forget to
enable ignite-rest-http module.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Rest-api-Returning-no-reply-from-server-tp6561p6571.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Rest-api: Returning no reply from server
Posted by chevy <ch...@target.com>.
Thanks. It is working now.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Rest-api-Returning-no-reply-from-server-tp6561p6660.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Rest-api: Returning no reply from server
Posted by vkulichenko <va...@gmail.com>.
'host' and 'port' properties are for binary protocol. In case of Jetty,
everything is defined by the XML file.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Rest-api-Returning-no-reply-from-server-tp6561p6628.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Rest-api: Returning no reply from server
Posted by chevy <ch...@target.com>.
I have already added connector config in my xml as shown below. But it is not
working. This is similar to what you have mentioned as Java code if I am not
wrong.
<bean id="rest.cfg"
class="org.apache.ignite.configuration.ConnectorConfiguration">
<property name="host" value="localhost"/>
<property name="port" value="8080"/>
<property name="jettyPath" value="rest-jetty-config.xml"/>
</bean>
<bean abstract="true" id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="connectorConfiguration" ref="rest.cfg" />
. . . . .
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Rest-api-Returning-no-reply-from-server-tp6561p6615.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Rest-api: Returning no reply from server
Posted by vkulichenko <va...@gmail.com>.
chetanvyadav wrote
> I see Jetty XML configuration to use Rest services but I am not sure how
> to start this server with required configuration. Please let me know how
> it can be achieved.
Are you asking how to provide your own XML for Jetty? If so, it can be done
like this:
ConnectorConfiguration connCfg = new ConnectorConfiguration();
connCfg.setJettyPath("/path/to/jetty.xml");
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setConnectorConfiguration(connCfg);
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Rest-api-Returning-no-reply-from-server-tp6561p6600.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.