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 Jim Anderson <jj...@gmail.com> on 2020/06/09 13:50:13 UTC
Error when trying to create a core in solr
Hi,
I am running Solr-7.3.1. I have just untarred the Solr-7.3.1 area and
created a 'nutch' directory for the core. I have downloaded
nutch-master.zip from
https://github.com/apache/nutch, unzipped that file and copied schema.xml
to .../server/solr/configsets/nutch/conf/schema.xml
In the schema file, I modified the lastModified file value to true, with no
other changes.
I am running the following command:
.../bin/solr create -c nutch -d .../server/solr/configsets/nutch/conf/
and getting the error message:
ERROR: Error CREATEing SolrCore 'nutch': Unable to create core [nutch]
Caused by: Illegal pattern component: pp
I have done a search for an error message containing: "Illegal pattern
component: pp" but I did not find anything useful.
Can anyone help explain what this error message means and/or what needs to
be done to fix this problem?
Jim A.
Re: Error when trying to create a core in solr
Posted by Jim Anderson <jj...@gmail.com>.
Hi Erick,
I probably should have included information about the config directory. As
part of the setup, I had copied the config directory as follows:
$ cp -r /usr/share/solr-8.5.1/server/solr/configsets/_default/* .
Note that the copy was from solr-8.5.1 because I could not find a
'_default' directory in solr-7.3.1. Coping from 8.5.1 may well be my
problem.
I will check and see if I can find a 7.3.1 example directory to copy from.
I will report back.
Regards,
Jim
On Tue, Jun 9, 2020 at 10:22 AM Erick Erickson <er...@gmail.com>
wrote:
> You need the entire config directory for a start, not just the schema file.
>
> And there’s no need to copy things around, just path to the nutch-provided
> config directory and you can leave off the “conf” since the upload process
> automatically checks for it and does the right thing.
>
> Best,
> Erick
>
> > On Jun 9, 2020, at 9:50 AM, Jim Anderson <jj...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I am running Solr-7.3.1. I have just untarred the Solr-7.3.1 area and
> > created a 'nutch' directory for the core. I have downloaded
> > nutch-master.zip from
> > https://github.com/apache/nutch, unzipped that file and copied
> schema.xml
> > to .../server/solr/configsets/nutch/conf/schema.xml
> >
> > In the schema file, I modified the lastModified file value to true, with
> no
> > other changes.
> >
> > I am running the following command:
> >
> > .../bin/solr create -c nutch -d .../server/solr/configsets/nutch/conf/
> >
> > and getting the error message:
> >
> > ERROR: Error CREATEing SolrCore 'nutch': Unable to create core [nutch]
> > Caused by: Illegal pattern component: pp
> >
> > I have done a search for an error message containing: "Illegal pattern
> > component: pp" but I did not find anything useful.
> >
> > Can anyone help explain what this error message means and/or what needs
> to
> > be done to fix this problem?
> >
> > Jim A.
>
>
Re: Error when trying to create a core in solr
Posted by Erick Erickson <er...@gmail.com>.
You need the entire config directory for a start, not just the schema file.
And there’s no need to copy things around, just path to the nutch-provided
config directory and you can leave off the “conf” since the upload process
automatically checks for it and does the right thing.
Best,
Erick
> On Jun 9, 2020, at 9:50 AM, Jim Anderson <jj...@gmail.com> wrote:
>
> Hi,
>
> I am running Solr-7.3.1. I have just untarred the Solr-7.3.1 area and
> created a 'nutch' directory for the core. I have downloaded
> nutch-master.zip from
> https://github.com/apache/nutch, unzipped that file and copied schema.xml
> to .../server/solr/configsets/nutch/conf/schema.xml
>
> In the schema file, I modified the lastModified file value to true, with no
> other changes.
>
> I am running the following command:
>
> .../bin/solr create -c nutch -d .../server/solr/configsets/nutch/conf/
>
> and getting the error message:
>
> ERROR: Error CREATEing SolrCore 'nutch': Unable to create core [nutch]
> Caused by: Illegal pattern component: pp
>
> I have done a search for an error message containing: "Illegal pattern
> component: pp" but I did not find anything useful.
>
> Can anyone help explain what this error message means and/or what needs to
> be done to fix this problem?
>
> Jim A.