You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Xuesong Luo (JIRA)" <ji...@apache.org> on 2007/07/02 04:19:04 UTC

[jira] Created: (SOLR-282) snapshooter does not work under solaris

snapshooter does not work under solaris 
----------------------------------------

                 Key: SOLR-282
                 URL: https://issues.apache.org/jira/browse/SOLR-282
             Project: Solr
          Issue Type: Bug
          Components: replication
    Affects Versions: 1.2
         Environment: solaris
            Reporter: Xuesong Luo


http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html

solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
-l option for cp command. I changed command "cp -lr dir1 dir2" to:

mkdir dir2
ln dir1/* dir2

It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
and make similar changes.

Thanks
Xuesong



I'm also curious why there is no error log when solr failed running
snapshooter. 

Thanks
Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-282) snapshooter does not work under solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510801 ] 

Bill Au commented on SOLR-282:
------------------------------

I think I will go with:

mkdir dir2
cd dir1
find . -print|cpio -pdlmuv ${full_path_name_to_dir2}

This works closer to cp -lr in that it will take care of any subdirectory nder dir1.  I know Lucene does not put any subdirectory inside the data directory.  But you never know what people may but there to take advantage of the snapshot distribution.

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-282) snapshooter does not work under solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511236 ] 

Bill Au commented on SOLR-282:
------------------------------

I have tested my patch on the only Solaris box that I have access to.  That is running Solaris 8.  It will be good if someone with access to a more recent version of Solaris check it out too.

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>         Attachments: solr-282.patch
>
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-282) snapshooter does not work under solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511128 ] 

Bill Au commented on SOLR-282:
------------------------------

Yes, I am thinking it will be an alternate codepath for Solaris only,
keeping "cp -l" as the default.
With so many different OSes out there I am not sure if we can come up with a
single solution to works everywhere.  I am not sure we want to spend the
time to find it even if it exists.  I for one only have access to a handful
of OSes.

Bill



> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-282) snapshooter does not work under solaris

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

Bill Au updated SOLR-282:
-------------------------

    Attachment: solr-282-solaris-and-osx.patch

Attached is an updated patch that works for both Solaris and OS X.

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>         Attachments: solr-282-solaris-and-osx.patch, solr-282.patch
>
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-282) snapshooter does not work under solaris

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

Bill Au resolved SOLR-282.
--------------------------

    Resolution: Fixed

I have committed the patch.

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>         Attachments: solr-282-solaris-and-osx.patch, solr-282.patch
>
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-282) snapshooter does not work under solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511127 ] 

Bill Au commented on SOLR-282:
------------------------------

Yes, I am thinking it will be an alternate codepath for Solaris only, keeping "cp -l" as the default.  With so many different OSes out there I am not sure if we can come up with a single solution to works everywhere.  I am not sure we want to spend the time to find it even if it exists.  I for one only have access to a handful of OSes. 

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SOLR-282) snapshooter does not work under solaris

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

Bill Au reassigned SOLR-282:
----------------------------

    Assignee: Bill Au

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-282) snapshooter does not work under solaris

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

Bill Au updated SOLR-282:
-------------------------

    Attachment: solr-282.patch

Attached is a patch for using cpio instead of "cp -l" when the scripts are run on SunOS.  While I was at it, I also updated the commit and optimize related scripts to be able to handle both the old and new response format.

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>         Attachments: solr-282.patch
>
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-282) snapshooter does not work under solaris

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

Xuesong Luo updated SOLR-282:
-----------------------------

    Description: 
http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html

solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
-l option for cp command. I changed command "cp -lr dir1 dir2" to:

mkdir dir2
ln dir1/* dir2

It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
and make similar changes.

I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?

Thanks
Xuesong

  was:
http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html

solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
-l option for cp command. I changed command "cp -lr dir1 dir2" to:

mkdir dir2
ln dir1/* dir2

It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
and make similar changes.

Thanks
Xuesong



I'm also curious why there is no error log when solr failed running
snapshooter. 

Thanks
Xuesong


> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-282) snapshooter does not work under solaris

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510804 ] 

Yonik Seeley commented on SOLR-282:
-----------------------------------

lol... is cpio installed by default an all UNIX systems, and are the args the same?
Perhaps this should be an alternate codepath for solaris?

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-282) snapshooter does not work under solaris

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

Bill Au updated SOLR-282:
-------------------------

    Fix Version/s: 1.3

> snapshooter does not work under solaris 
> ----------------------------------------
>
>                 Key: SOLR-282
>                 URL: https://issues.apache.org/jira/browse/SOLR-282
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2
>         Environment: solaris
>            Reporter: Xuesong Luo
>            Assignee: Bill Au
>             Fix For: 1.3
>
>         Attachments: solr-282-solaris-and-osx.patch, solr-282.patch
>
>
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg04761.html
> solr is able to find snapshooter but didn't  generate any snapshot files after the index is updated. I checked the
> log, everything looks fine, then I run snapshooter from command line. It failed because Solaris doesn't support 
> -l option for cp command. I changed command "cp -lr dir1 dir2" to:
> mkdir dir2
> ln dir1/* dir2
> It seems working. Otis suggested to create an issue so that Bill Au & Co. can fix this problem. 
> Please note: several other commands under solr/bin also have this problem. You can use grep "cp -lr" to find all of them 
> and make similar changes.
> I'm also curious why there is no error log when solr failed running snapshooter. Shouldn't solr log an error message?
> Thanks
> Xuesong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.