You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Andrei Savu (Created) (JIRA)" <ji...@apache.org> on 2012/01/04 09:59:38 UTC

[jira] [Created] (WHIRR-465) Add Solr as a service

Add Solr as a service
---------------------

                 Key: WHIRR-465
                 URL: https://issues.apache.org/jira/browse/WHIRR-465
             Project: Whirr
          Issue Type: New Feature
          Components: new service
            Reporter: Andrei Savu
             Fix For: 0.8.0


http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment:     (was: WHIRR-645.diff)
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205755#comment-13205755 ] 

David Arthur edited comment on WHIRR-465 at 2/10/12 9:07 PM:
-------------------------------------------------------------

Updated patch

* -can we reference a specific Apache Solr 4.0 build? Or star a build? Deploying from snapshot can be brittle-
* -it should be possible to specify the .tar.gz URL-
* -please generate the patch using "git diff --no-prefix trunk" or "svn diff"-
* -use getInstallFunction to get the name of the script for install_java-
* -as we have a start script now we should also have a config and a stop script-
* -we usually install services in /usr/local/-

Still need a more robust start/stop mechanism and some integration tests
                
      was (Author: mumrah):
    * -can we reference a specific Apache Solr 4.0 build? Or star a build? Deploying from snapshot can be brittle-
* -it should be possible to specify the .tar.gz URL-
* -please generate the patch using "git diff --no-prefix trunk" or "svn diff"-
* -use getInstallFunction to get the name of the script for install_java-
* -as we have a start script now we should also have a config and a stop script-
* -we usually install services in /usr/local/-

Still need a more robust start/stop mechanism and some integration tests
                  
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271287#comment-13271287 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

And one last thing: don't forget to add whirr-solr as a dependency to whirr-cli. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271193#comment-13271193 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

Currently the bucket with the Solr configuration tarball is not destroyed when the cluster is taken down.
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment: WHIRR-465.diff

* -can we reference a specific Apache Solr 4.0 build? Or star a build? Deploying from snapshot can be brittle-
* -it should be possible to specify the .tar.gz URL-
* -please generate the patch using "git diff --no-prefix trunk" or "svn diff"-
* -use getInstallFunction to get the name of the script for install_java-
* -as we have a start script now we should also have a config and a stop script-
* -we usually install services in /usr/local/-

Still need a more robust start/stop mechanism and some integration tests
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment: WHIRR-465.diff
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated WHIRR-465:
---------------------------------

    Affects Version/s: 0.7.2
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0, 0.7.2
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated WHIRR-465:
---------------------------------

    Attachment: WHIRR-465.patch

Updated patch which removes the BlobCache.
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment: WHIRR-465-1.diff

This is an additive patch, apply it after first applying WHIRR-465.diff
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217179#comment-13217179 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Is the trunk working as expected for you now? I know we had some issue with ZooKeeper & JDK. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-465:
------------------------------

    Fix Version/s:     (was: 0.9.0)
                   0.8.0

Moving on the roadmap for 0.8.0. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205150#comment-13205150 ] 

David Arthur commented on WHIRR-465:
------------------------------------

Adds Solr to Whirr

Example recipe:
{code}
whirr.cluster-name=solr
whirr.instance-templates=1 zookeeper,2 solr
whirr.solr.shards.num=8
whirr.solr.collection.name=myconf
whirr.solr.jetty.port=8080
whirr.provider=aws-ec2
whirr.identity=${env:AWS_ACCESS_KEY_ID}
whirr.credential=${env:AWS_SECRET_ACCESS_KEY}
{code}
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271205#comment-13271205 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

I think that's a race condition on jvm shutdown - all shutdown hooks are executed in parallel. Maybe we should do an explicit call to BlobCache.dropAndCloseAll():

https://github.com/apache/whirr/blob/trunk/core/src/main/java/org/apache/whirr/util/BlobCache.java 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271310#comment-13271310 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

+1
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-465:
------------------------------

    Fix Version/s: 0.7.2
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0, 0.7.2
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0, 0.7.2
>
>         Attachments: WHIRR-465-0.7.patch, WHIRR-465-0_7_2.patch, WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment: WHIRR-645.diff

Andrei, feel free to take over. The latest diff includes an integration test I started work on.
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-645.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235717#comment-13235717 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

I wrote an integration test for the Solr service but I am having problems running it via BYON on Vagrant VMs.

Check out the WHIRR-465 branch at my Github https://github.com/frankscholten/whirr/tree/WHIRR-465

If you run 'vagrant up' in services/solr/src/test/resources and then run SolrServiceTest it throws the exception

java.util.NoSuchElementException: no image matched predicate: and(locationEqualsOrChildOf(byon),And(osFamily(ubuntu),osVersion(10.04)))

Is this a problem in the YAML file?
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271315#comment-13271315 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

How about having a version of this that we can ship with 0.7.2? The code is almost the same (except the OSGI bits & start/stop functions).
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated WHIRR-465:
---------------------------------

    Attachment: WHIRR-465.patch

Single node Solr service.

Test passes but I do get a concurrent excecution exception when the blobstore is destroyed when the test finishes. How can this be fixed?
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228719#comment-13228719 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Right & the upload of local files is something that Whirr already knows how to handle. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-465:
------------------------------

    Attachment: WHIRR-465-0.7.patch

Updated patch for latest 0.7 branch. Building fine but integration tests still fail. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0, 0.7.2
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0, 0.7.2
>
>         Attachments: WHIRR-465-0.7.patch, WHIRR-465-0_7_2.patch, WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271284#comment-13271284 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Also working fine with cloudservers-uk & cloudfiles. The only change I made to the initial patch was to add BlobCache.dropAndCloseAll() to SolrServiceTest.after
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271278#comment-13271278 ] 

Frank Scholten edited comment on WHIRR-465 at 5/9/12 10:23 AM:
---------------------------------------------------------------

Updated patch which removes the BlobCache. Tested on aws-ec2
                
      was (Author: frankscholten):
    Updated patch which removes the BlobCache.
                  
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205150#comment-13205150 ] 

David Arthur edited comment on WHIRR-465 at 2/10/12 1:55 AM:
-------------------------------------------------------------

Adds Solr to Whirr

Example recipe:
{code}
whirr.cluster-name=solr
whirr.instance-templates=1 zookeeper,2 solr
whirr.solr.shards.num=8
whirr.solr.collection.name=myconf
whirr.solr.jetty.port=8080
whirr.provider=aws-ec2
whirr.identity=${env:AWS_ACCESS_KEY_ID}
whirr.credential=${env:AWS_SECRET_ACCESS_KEY}
{code}

N.B., that a ZooKeeper node is required for things to work correctly. It does not need to be a standalone ZooKeeper though, it can live along side Solr.
                
      was (Author: mumrah):
    Adds Solr to Whirr

Example recipe:
{code}
whirr.cluster-name=solr
whirr.instance-templates=1 zookeeper,2 solr
whirr.solr.shards.num=8
whirr.solr.collection.name=myconf
whirr.solr.jetty.port=8080
whirr.provider=aws-ec2
whirr.identity=${env:AWS_ACCESS_KEY_ID}
whirr.credential=${env:AWS_SECRET_ACCESS_KEY}
{code}
                  
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Comment: was deleted

(was: Adding Solr to Whirr)
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205309#comment-13205309 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Nice work! Here are some quick comments / questions:

* can we reference a specific Apache Solr 4.0 build? Or star a build? Deploying from snapshot can be brittle
* it should be possible to specify the .tar.gz URL
* we need an integration test to show that the service starts as expected (indexing a document? status page?)
* please generate the patch using "git diff --no-prefix trunk" or "svn diff"
* use getInstallFunction to get the name of the script for install_java 
* it would be nice to have an init script. See core/src/main/resources/functions/{install,remove}_service.sh
* as we have a start script now we should also have a config and a stop script
* we usually install services in /usr/local/

Let me know if I can help on the way. I'm available most of the time on IRC at #whirr (asavu)

                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur reassigned WHIRR-465:
----------------------------------

    Assignee: Frank Scholten  (was: David Arthur)

Reassigning to you, Frank. I'll continue watching this issue and providing feedback.

Thanks again for picking this up!
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206220#comment-13206220 ] 

David Arthur edited comment on WHIRR-465 at 2/11/12 6:44 PM:
-------------------------------------------------------------

This is an additive patch, apply it after first applying WHIRR-465.diff

Solr uses hostnames instead of IPs to communicate. B/c of this we need to update the /etc/hosts file on each Solr machine
                
      was (Author: mumrah):
    This is an additive patch, apply it after first applying WHIRR-465.diff
                  
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240737#comment-13240737 ] 

David Arthur commented on WHIRR-465:
------------------------------------

+1 Just getting single-node Solr in is a good start.

How about the following breakdown:
* Single-node Solr (WHIRR-465, this issue)
* SolrCloud + ZooKeeper
* Advanced configuration for both (BYO solrconfig.xml, schema.xml)

                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu reassigned WHIRR-465:
---------------------------------

    Assignee: David Arthur
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "David Arthur (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated WHIRR-465:
-------------------------------

    Attachment:     (was: 0001-WHIRR-465-Adding-Solr-as-a-Whirr-service.patch)
    
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229089#comment-13229089 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Frank do you want to finish this patch? I want to do it but I won't have enough time until later next week. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227010#comment-13227010 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

David are you still working on this? Do you mind if I takeover & finish this patch? (maybe we can ship it in 0.7.2)
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240727#comment-13240727 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

How about splitting this one up in separate incremental features?

We could start out with a simple solr role that starts a single solr service with a tarball containing core configuration (solr.xml, solrconfig.xml, schema.xml). We can create a separate ticket for 3x solr-master and solr-slave roles for a replicated setup. Then there is also the SolrCloud with Zookeeper setup.

WDYT?
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228703#comment-13228703 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

I think it would be great if you could specify a schema.xml and solrconfig.xml file (via file:// urls) that can be installed under Solr home. We would have to create a script (similar to install_tarball.sh) which creates the destination dirs if needed and moves the file. Correct?



                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241191#comment-13241191 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

Ok. I do think that even for single-node solr you need be able to configure solr.xml, solrconfig.xml and schema.xml before startup. I already have code for this. It installs a tarball with core configuration into $SOLR_HOME.
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206358#comment-13206358 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Looks great! Ready to commit from my point of view as soon as we add an integration test. I will take care of improving how we handle /etc/hosts & private hostnames inside the Whirr core. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated WHIRR-465:
---------------------------------

    Attachment: WHIRR-465.patch

Updated patch with changes for review request https://reviews.apache.org/r/5076/
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271271#comment-13271271 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

I've created a review request at https://reviews.apache.org/r/5076/ and added a few comments. I am also seeing the java.util.concurrent.RejectedExecutionException and I'm looking for an workaround. 
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236522#comment-13236522 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

I did some debugging and I saw that images parameter in the jclouds TemplateBuilderImpl constructor is null and because of this the predicate filter in the build() throws the exception.
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211795#comment-13211795 ] 

Andrei Savu commented on WHIRR-465:
-----------------------------------

Hi David! Any updates?
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229096#comment-13229096 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

Yes. I'll add an integration test and the configuring of schema.xml and solconfig.xml
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Arthur
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated WHIRR-465:
---------------------------------

    Attachment: WHIRR-465-0_7_2.patch

Here is a work in progress patch for 0.7.2. Somehow the Solr config tarball doesn't get installed under /usr/local/solr

WDYT?
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0, 0.7.2
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-0_7_2.patch, WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-465) Add Solr as a service

Posted by "Frank Scholten (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271358#comment-13271358 ] 

Frank Scholten commented on WHIRR-465:
--------------------------------------

Committed to trunk.

Ok, I'll work on a 0.7.2 patch.
                
> Add Solr as a service
> ---------------------
>
>                 Key: WHIRR-465
>                 URL: https://issues.apache.org/jira/browse/WHIRR-465
>             Project: Whirr
>          Issue Type: New Feature
>          Components: new service
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: Frank Scholten
>              Labels: feature, patch
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-465-1.diff, WHIRR-465.diff, WHIRR-465.diff, WHIRR-465.patch, WHIRR-465.patch, WHIRR-465.patch
>
>
> http://lucene.apache.org/solr/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira