You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by jayf <ja...@ymail.com> on 2010/07/04 21:37:37 UTC
Error in building Solr-Cloud (ant example)
Hi there,
I'm having a trouble installing Solr Cloud. I checked out the project, but
when compiling ("ant example" on OSX) I get compile a error (cannot find
symbol - pasted below).
I also get a bunch of warnings:
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
I have tried both Java 1.5 and 1.6.
Before I got to this point, I was having problems with the included
ZooKeeper jar (java versioning issue) - so I had to download the source and
build this. Now 'ant' gets a bit further, to the stage listed above.
Any idea of the problem??? THANKS!
[javac] Compiling 438 source files to
/Volumes/newpart/solrcloud/cloud/build/solr
[javac]
/Volumes/newpart/solrcloud/cloud/src/java/org/apache/solr/cloud/ZkController.java:588:
cannot find symbol
[javac] symbol : method stringPropertyNames()
[javac] location: class java.util.Properties
[javac] for (String sprop :
System.getProperties().stringPropertyNames()) {
--
View this message in context: http://lucene.472066.n3.nabble.com/Error-in-building-Solr-Cloud-ant-example-tp942836p942836.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Error in building Solr-Cloud (ant example)
Posted by jayf <ja...@ymail.com>.
Hi Mark,
Thanks for your reply.
Sorry for this stupid question, but when you say trunk, do you mean the SOLR trunk as in
https://svn.apache.org/repos/asf/lucene/dev/trunk ?
If so, I assume I just check that out and apply the patch?
Or is there a specific SOLR-Cloud trunk?
Thanks!!
________________________________
From: Mark Miller-3 [via Lucene] <ml...@n3.nabble.com>
To: jayf <ja...@ymail.com>
Sent: Sun, July 4, 2010 9:35:31 PM
Subject: Re: Error in building Solr-Cloud (ant example)
Hey jayf -
Offhand I'm not sure why you are having these issues - last I knew, a
couple people had had success with the cloud branch. Cloud has moved on
from that branch really though - we probably should update the wiki
about that. More important than though, that I need to get Cloud
committed to trunk!
I've been saying it for a while, but I'm going to make a strong effort
to wrap up the final unit test issue (apparently a testing issue, not
cloud issue) and get this committed for further iterations.
The way to follow along with the latest work is to go to :
https://issues.apache.org/jira/browse/SOLR-1873
The latest patch there should apply to recent trunk.
I've scheduled a bit of time to work on getting this committed this
week, fingers crossed.
--
- Mark
http://www.lucidimagination.com?by-user=t
On 7/4/10 3:37 PM, jayf wrote:
>
> Hi there,
>
> I'm having a trouble installing Solr Cloud. I checked out the project, but
> when compiling ("ant example" on OSX) I get compile a error (cannot find
> symbol - pasted below).
>
> I also get a bunch of warnings:
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> I have tried both Java 1.5 and 1.6.
>
>
> Before I got to this point, I was having problems with the included
> ZooKeeper jar (java versioning issue) - so I had to download the source and
> build this. Now 'ant' gets a bit further, to the stage listed above.
>
> Any idea of the problem??? THANKS!
>
> [javac] Compiling 438 source files to
> /Volumes/newpart/solrcloud/cloud/build/solr
> [javac]
> /Volumes/newpart/solrcloud/cloud/src/java/org/apache/solr/cloud/ZkController.java:588:
> cannot find symbol
> [javac] symbol : method stringPropertyNames()
> [javac] location: class java.util.Properties
> [javac] for (String sprop :
> System.getProperties().stringPropertyNames()) {
>
________________________________
View message @ http://lucene.472066.n3.nabble.com/Error-in-building-Solr-Cloud-ant-example-tp942836p942934.html
To unsubscribe from Error in building Solr-Cloud (ant example), click here.
--
View this message in context: http://lucene.472066.n3.nabble.com/Error-in-building-Solr-Cloud-ant-example-tp942836p943969.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Error in building Solr-Cloud (ant example)
Posted by Robert Muir <rc...@gmail.com>.
this test needs to call super.setUp() in its setUp()...
On Thu, Jul 15, 2010 at 3:15 AM, Rebecca Watson <be...@gmail.com>wrote:
> hi mark,
>
> jayf and i are working together :)
>
> i tried to apply the patch to the trunk, but the ant tests failed...
>
> i checked out the latest trunk:
> svn checkout http://svn.apache.org/repos/asf/lucene/dev/trunk
>
> patched it with SOLR-1873, and put the two JARs into trunk/solr/lib
>
> ant compile in the top level trunk directory worked fine, but ant test
> had a few errors.
>
> the first error was:
>
> [junit] Testsuite: org.apache.solr.cloud.BasicZkTest
> [junit] Testcase:
> testBasic(org.apache.solr.cloud.BasicZkTest): Caused an ERROR
> [junit] maxClauseCount must be >= 1
> [junit] java.lang.IllegalArgumentException: maxClauseCount must be >= 1
> [junit] at
>
> org.apache.lucene.search.BooleanQuery.setMaxClauseCount(BooleanQuery.java:62)
> [junit] at
> org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:131)
> [junit] at
>
> org.apache.solr.util.AbstractSolrTestCase.tearDown(AbstractSolrTestCase.java:182)
> [junit] at
>
> org.apache.solr.cloud.AbstractZkTestCase.tearDown(AbstractZkTestCase.java:135)
> [junit] at
> org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:277)
> [junit]
>
>
> after this, tests passed until there were a lot of errors with this output:
>
> [junit] ------------- Standard Error -----------------
> [junit] Jul 15, 2010 3:00:53 PM org.apache.solr.handler.SnapPuller
> fetchLatestIndex
> [junit] SEVERE: Master at:
> http://localhost:TEST_PORT/solr/replication is not available. Index
> fetch failed. Exception: Invalid uri
> 'http://localhost:TEST_PORT/solr/replication': invalid port number
> ....
> followed by a final message:
> [junit] SEVERE: Master at: http://localhost:57146/solr/replication is
> not available. Index fetch failed. Exception: Connection refused
>
> a few more tests passed... then at the end:
>
> BUILD FAILED
> /Users/iwatson/work/solr/trunk/build.xml:31: The following error
> occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:395:
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
> The following error occurred while executing this line:
> /Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
>
> are these errors currently expected (i.e. issues being sorted) or
> does it look like i'm doing something wrong/stupid!?
>
> thanks for your help
>
> bec :)
>
> On 5 July 2010 04:34, Mark Miller <ma...@gmail.com> wrote:
> > Hey jayf -
> >
> > Offhand I'm not sure why you are having these issues - last I knew, a
> > couple people had had success with the cloud branch. Cloud has moved on
> > from that branch really though - we probably should update the wiki
> > about that. More important than though, that I need to get Cloud
> > committed to trunk!
> >
> > I've been saying it for a while, but I'm going to make a strong effort
> > to wrap up the final unit test issue (apparently a testing issue, not
> > cloud issue) and get this committed for further iterations.
> >
> > The way to follow along with the latest work is to go to :
> > https://issues.apache.org/jira/browse/SOLR-1873
> >
> > The latest patch there should apply to recent trunk.
> >
> > I've scheduled a bit of time to work on getting this committed this
> > week, fingers crossed.
> >
> > --
> > - Mark
> >
> > http://www.lucidimagination.com
> >
> > On 7/4/10 3:37 PM, jayf wrote:
> >>
> >> Hi there,
> >>
> >> I'm having a trouble installing Solr Cloud. I checked out the project,
> but
> >> when compiling ("ant example" on OSX) I get compile a error (cannot find
> >> symbol - pasted below).
> >>
> >> I also get a bunch of warnings:
> >> [javac] Note: Some input files use or override a deprecated API.
> >> [javac] Note: Recompile with -Xlint:deprecation for details.
> >> I have tried both Java 1.5 and 1.6.
> >>
> >>
> >> Before I got to this point, I was having problems with the included
> >> ZooKeeper jar (java versioning issue) - so I had to download the source
> and
> >> build this. Now 'ant' gets a bit further, to the stage listed above.
> >>
> >> Any idea of the problem??? THANKS!
> >>
> >> [javac] Compiling 438 source files to
> >> /Volumes/newpart/solrcloud/cloud/build/solr
> >> [javac]
> >>
> /Volumes/newpart/solrcloud/cloud/src/java/org/apache/solr/cloud/ZkController.java:588:
> >> cannot find symbol
> >> [javac] symbol : method stringPropertyNames()
> >> [javac] location: class java.util.Properties
> >> [javac] for (String sprop :
> >> System.getProperties().stringPropertyNames()) {
> >>
> >
> >
> >
>
--
Robert Muir
rcmuir@gmail.com
Re: Error in building Solr-Cloud (ant example)
Posted by Rebecca Watson <be...@gmail.com>.
hi mark,
jayf and i are working together :)
i tried to apply the patch to the trunk, but the ant tests failed...
i checked out the latest trunk:
svn checkout http://svn.apache.org/repos/asf/lucene/dev/trunk
patched it with SOLR-1873, and put the two JARs into trunk/solr/lib
ant compile in the top level trunk directory worked fine, but ant test
had a few errors.
the first error was:
[junit] Testsuite: org.apache.solr.cloud.BasicZkTest
[junit] Testcase:
testBasic(org.apache.solr.cloud.BasicZkTest): Caused an ERROR
[junit] maxClauseCount must be >= 1
[junit] java.lang.IllegalArgumentException: maxClauseCount must be >= 1
[junit] at
org.apache.lucene.search.BooleanQuery.setMaxClauseCount(BooleanQuery.java:62)
[junit] at
org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:131)
[junit] at
org.apache.solr.util.AbstractSolrTestCase.tearDown(AbstractSolrTestCase.java:182)
[junit] at
org.apache.solr.cloud.AbstractZkTestCase.tearDown(AbstractZkTestCase.java:135)
[junit] at
org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:277)
[junit]
after this, tests passed until there were a lot of errors with this output:
[junit] ------------- Standard Error -----------------
[junit] Jul 15, 2010 3:00:53 PM org.apache.solr.handler.SnapPuller
fetchLatestIndex
[junit] SEVERE: Master at:
http://localhost:TEST_PORT/solr/replication is not available. Index
fetch failed. Exception: Invalid uri
'http://localhost:TEST_PORT/solr/replication': invalid port number
....
followed by a final message:
[junit] SEVERE: Master at: http://localhost:57146/solr/replication is
not available. Index fetch failed. Exception: Connection refused
a few more tests passed... then at the end:
BUILD FAILED
/Users/iwatson/work/solr/trunk/build.xml:31: The following error
occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:395:
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
The following error occurred while executing this line:
/Users/iwatson/work/solr/trunk/solr/build.xml:477: Tests failed!
are these errors currently expected (i.e. issues being sorted) or
does it look like i'm doing something wrong/stupid!?
thanks for your help
bec :)
On 5 July 2010 04:34, Mark Miller <ma...@gmail.com> wrote:
> Hey jayf -
>
> Offhand I'm not sure why you are having these issues - last I knew, a
> couple people had had success with the cloud branch. Cloud has moved on
> from that branch really though - we probably should update the wiki
> about that. More important than though, that I need to get Cloud
> committed to trunk!
>
> I've been saying it for a while, but I'm going to make a strong effort
> to wrap up the final unit test issue (apparently a testing issue, not
> cloud issue) and get this committed for further iterations.
>
> The way to follow along with the latest work is to go to :
> https://issues.apache.org/jira/browse/SOLR-1873
>
> The latest patch there should apply to recent trunk.
>
> I've scheduled a bit of time to work on getting this committed this
> week, fingers crossed.
>
> --
> - Mark
>
> http://www.lucidimagination.com
>
> On 7/4/10 3:37 PM, jayf wrote:
>>
>> Hi there,
>>
>> I'm having a trouble installing Solr Cloud. I checked out the project, but
>> when compiling ("ant example" on OSX) I get compile a error (cannot find
>> symbol - pasted below).
>>
>> I also get a bunch of warnings:
>> [javac] Note: Some input files use or override a deprecated API.
>> [javac] Note: Recompile with -Xlint:deprecation for details.
>> I have tried both Java 1.5 and 1.6.
>>
>>
>> Before I got to this point, I was having problems with the included
>> ZooKeeper jar (java versioning issue) - so I had to download the source and
>> build this. Now 'ant' gets a bit further, to the stage listed above.
>>
>> Any idea of the problem??? THANKS!
>>
>> [javac] Compiling 438 source files to
>> /Volumes/newpart/solrcloud/cloud/build/solr
>> [javac]
>> /Volumes/newpart/solrcloud/cloud/src/java/org/apache/solr/cloud/ZkController.java:588:
>> cannot find symbol
>> [javac] symbol : method stringPropertyNames()
>> [javac] location: class java.util.Properties
>> [javac] for (String sprop :
>> System.getProperties().stringPropertyNames()) {
>>
>
>
>
Re: Error in building Solr-Cloud (ant example)
Posted by Mark Miller <ma...@gmail.com>.
Hey jayf -
Offhand I'm not sure why you are having these issues - last I knew, a
couple people had had success with the cloud branch. Cloud has moved on
from that branch really though - we probably should update the wiki
about that. More important than though, that I need to get Cloud
committed to trunk!
I've been saying it for a while, but I'm going to make a strong effort
to wrap up the final unit test issue (apparently a testing issue, not
cloud issue) and get this committed for further iterations.
The way to follow along with the latest work is to go to :
https://issues.apache.org/jira/browse/SOLR-1873
The latest patch there should apply to recent trunk.
I've scheduled a bit of time to work on getting this committed this
week, fingers crossed.
--
- Mark
http://www.lucidimagination.com
On 7/4/10 3:37 PM, jayf wrote:
>
> Hi there,
>
> I'm having a trouble installing Solr Cloud. I checked out the project, but
> when compiling ("ant example" on OSX) I get compile a error (cannot find
> symbol - pasted below).
>
> I also get a bunch of warnings:
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> I have tried both Java 1.5 and 1.6.
>
>
> Before I got to this point, I was having problems with the included
> ZooKeeper jar (java versioning issue) - so I had to download the source and
> build this. Now 'ant' gets a bit further, to the stage listed above.
>
> Any idea of the problem??? THANKS!
>
> [javac] Compiling 438 source files to
> /Volumes/newpart/solrcloud/cloud/build/solr
> [javac]
> /Volumes/newpart/solrcloud/cloud/src/java/org/apache/solr/cloud/ZkController.java:588:
> cannot find symbol
> [javac] symbol : method stringPropertyNames()
> [javac] location: class java.util.Properties
> [javac] for (String sprop :
> System.getProperties().stringPropertyNames()) {
>