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 Prasi S <pr...@gmail.com> on 2013/08/05 08:19:02 UTC

Solr 4.3 log4j

Hi,
Im using solr 4.3 to setup solrcloud. I haev placed all jar files in a
folder zoo-lib. I have also placed the jar fiels from /solr/example/lib/ext
to zoo-lib folder.

When I execute this command,

java -classpath .;zoo-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig
-zkhost localhost:2181 -confdir solr-conf -confname myconf

I get the below warning and it stops. Am i missing anything.

log4j:WARN No appenders could be found for logger
(org.apache.zookeeper.ZooKeepe
r).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more in
fo.

Re: Solr 4.3 log4j

Posted by Prasi S <pr...@gmail.com>.
I could see there is a change in the logging for solr from 4.3 onwards and
the steps for setting it up right in tomcat.

But this gives a problem while loading configurations to Zookeeper . Am i
missing anything.


On Mon, Aug 5, 2013 at 12:51 PM, Prasi S <pr...@gmail.com> wrote:

> It didn't work for both options..
>
>
> On Mon, Aug 5, 2013 at 12:19 PM, Shawn Heisey <so...@elyograg.org> wrote:
>
>> On 8/5/2013 12:19 AM, Prasi S wrote:
>> > Im using solr 4.3 to setup solrcloud. I haev placed all jar files in a
>> > folder zoo-lib. I have also placed the jar fiels from
>> /solr/example/lib/ext
>> > to zoo-lib folder.
>> >
>> > When I execute this command,
>> >
>> > java -classpath .;zoo-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig
>> > -zkhost localhost:2181 -confdir solr-conf -confname myconf
>> >
>> > I get the below warning and it stops. Am i missing anything.
>> >
>> > log4j:WARN No appenders could be found for logger
>>
>> The classpath format looks wrong to me.  From what I understand, here's
>> what you'd want:
>>
>> For UNIX/Linux: ".:zoo-lib/*"
>> For Windows: ".;zoo-lib\*"
>>
>> Thanks,
>> Shawn
>>
>>
>

Re: Solr 4.3 log4j

Posted by Prasi S <pr...@gmail.com>.
It didn't work for both options..


On Mon, Aug 5, 2013 at 12:19 PM, Shawn Heisey <so...@elyograg.org> wrote:

> On 8/5/2013 12:19 AM, Prasi S wrote:
> > Im using solr 4.3 to setup solrcloud. I haev placed all jar files in a
> > folder zoo-lib. I have also placed the jar fiels from
> /solr/example/lib/ext
> > to zoo-lib folder.
> >
> > When I execute this command,
> >
> > java -classpath .;zoo-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig
> > -zkhost localhost:2181 -confdir solr-conf -confname myconf
> >
> > I get the below warning and it stops. Am i missing anything.
> >
> > log4j:WARN No appenders could be found for logger
>
> The classpath format looks wrong to me.  From what I understand, here's
> what you'd want:
>
> For UNIX/Linux: ".:zoo-lib/*"
> For Windows: ".;zoo-lib\*"
>
> Thanks,
> Shawn
>
>

Re: Solr 4.3 log4j

Posted by Shawn Heisey <so...@elyograg.org>.
On 8/5/2013 12:19 AM, Prasi S wrote:
> Im using solr 4.3 to setup solrcloud. I haev placed all jar files in a
> folder zoo-lib. I have also placed the jar fiels from /solr/example/lib/ext
> to zoo-lib folder.
> 
> When I execute this command,
> 
> java -classpath .;zoo-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig
> -zkhost localhost:2181 -confdir solr-conf -confname myconf
> 
> I get the below warning and it stops. Am i missing anything.
> 
> log4j:WARN No appenders could be found for logger

The classpath format looks wrong to me.  From what I understand, here's
what you'd want:

For UNIX/Linux: ".:zoo-lib/*"
For Windows: ".;zoo-lib\*"

Thanks,
Shawn