brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bostko <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Add Solr support
Date Wed, 29 Apr 2015 08:57:23 GMT
Github user bostko commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/615#issuecomment-97356931
  
    This code is working and all of the entities are in green although I didn't test with
search queries against riak.
    I will be grateful if you give me some feedback.
    
    I tried to set Solr as a child 
    ```java
    EntitySpec.create(RiakNode.class)
            .configure(RiakNode.RIAK_CONF_ADDITIONAL_CONTENT, "search = on")
            .child(getConfig(
                    SOLR_MEMBER_SPEC,
                    EntitySpec.create(SolrServer.class))
                    .configure(ConfigKeys.newIntegerSensorAndConfigKey("solr.http.port", "Solr
HTTP communications port", 8983), 8983))
            .configure(SoftwareProcess.CHILDREN_STARTABLE_MODE, SoftwareProcess.ChildStartableMode.FOREGROUND));
    ```
    but this breaks SolrServerImpl.getSolrPort() and it returns null. If the key is not an
integer then either in Solr or in the RiakNode the port is incremented since it cannot set
a port twice on one machine.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message