RE: Modifing create_core's instanceDir attribute
Thanks to you all. When I used the curl command (which I had forgotten to use) and put the url in quotes it worked with one exception. It did not copy the "conf" folder from my custom_configs folder that I had created under the configsets folder. I was able to just add a copy command in my shell script to copy this folder over and it works just fine now. So again thanks to all of you for your help. ~~~ William Kevin Miller ECS Federal, Inc. USPS/MTSC (405) 573-2158 -Original Message- From: Shawn Heisey [mailto:apa...@elyograg.org] Sent: Thursday, September 28, 2017 10:02 AM To: solr-user@lucene.apache.org Subject: Re: Modifing create_core's instanceDir attribute On 9/27/2017 10:24 AM, Miller, William K - Norman, OK - Contractor wrote: > Thanks Erick for pointing me in this direction. Unfortunately when I try to > us this I get an error. Here is the command that I am using and the response > I get: > > https://solrserver:8983/solr/admin/cores?action=CREATE=mycore > tanceDir=/var/solr/data/mycore=data=custom_configs > > > [1] 32023 > [2] 32024 > [3] 32025 > -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No such > file or directory [4] 32026 > [1] Exit 127 > https://solrserver:8983/solr/adkmin/cores?action=CREATE > [2] Donename=mycore > [3]- DoneinstanceDir=/var/solr/data/mycore > [4]+ DonedataDir=data It appears that you are trying to type the bare URL into a shell prompt as a command. The shell doesn't know how to deal with a URL -- a URL isn't a program or a shell command. If you put the URL into a browser, which knows how to deal with it, the request will go to Solr, and then you can deal with any further problems. If you want to do it on the commandline, you're going to have to have a valid command/program for the shell. The "curl" and "wget" programs are commonly available on systems with a shell prompt. Here's one command that might work. Replace the text URL with your actual URL, and be sure that you keep the quotes: curl "URL" Thanks, Shawn
Re: Modifing create_core's instanceDir attribute
On 9/27/2017 10:24 AM, Miller, William K - Norman, OK - Contractor wrote: > Thanks Erick for pointing me in this direction. Unfortunately when I try to > us this I get an error. Here is the command that I am using and the response > I get: > > https://solrserver:8983/solr/admin/cores?action=CREATE=mycore=/var/solr/data/mycore=data=custom_configs > > > [1] 32023 > [2] 32024 > [3] 32025 > -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No such file > or directory > [4] 32026 > [1] Exit 127 > https://solrserver:8983/solr/adkmin/cores?action=CREATE > [2] Donename=mycore > [3]- DoneinstanceDir=/var/solr/data/mycore > [4]+ DonedataDir=data It appears that you are trying to type the bare URL into a shell prompt as a command. The shell doesn't know how to deal with a URL -- a URL isn't a program or a shell command. If you put the URL into a browser, which knows how to deal with it, the request will go to Solr, and then you can deal with any further problems. If you want to do it on the commandline, you're going to have to have a valid command/program for the shell. The "curl" and "wget" programs are commonly available on systems with a shell prompt. Here's one command that might work. Replace the text URL with your actual URL, and be sure that you keep the quotes: curl "URL" Thanks, Shawn
Re: Modifing create_core's instanceDir attribute
I'd rather say you didn't quote the URL when sending it using curl. Bash accepts the ampersand as a request to execute curl including the URL up to CREATE in background - that's why the error is included within the next output, followed by "Exit" - and then tries to execute the following part of the URL as additional commands, which of course fails. Just put the URL in quotes, and it will work much better. -Michael Am 27.09.2017 um 23:14 schrieb Miller, William K - Norman, OK - Contractor: > I understand that this has to be done on the command line, but I don't know > where to put this structure or what it should look like. Can you please be > more specific in this answer? I have only been working with Solr for about > six months. > > > > > ~~~ > William Kevin Miller > > ECS Federal, Inc. > USPS/MTSC > (405) 573-2158 > > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Wednesday, September 27, 2017 3:57 PM > To: solr-user > Subject: Re: Modifing create_core's instanceDir attribute > > Standard command-line. You're doing this on the box itself, not through a > REST API. > > Erick > > On Wed, Sep 27, 2017 at 10:26 AM, Miller, William K - Norman, OK - Contractor > <william.k.mil...@usps.gov.invalid> wrote: >> This is my first time to try using the core admin API. How do I go about >> creating the directory structure? >> >> >> >> >> ~~~ >> William Kevin Miller >> >> ECS Federal, Inc. >> USPS/MTSC >> (405) 573-2158 >> >> >> -Original Message- >> From: Erick Erickson [mailto:erickerick...@gmail.com] >> Sent: Wednesday, September 27, 2017 11:45 AM >> To: solr-user >> Subject: Re: Modifing create_core's instanceDir attribute >> >> Right, the core admin API is pretty low-level, it expects the base directory >> exists, you have to create the directory structure by hand. >> >> Best, >> Erick >> >> On Wed, Sep 27, 2017 at 9:24 AM, Miller, William K - Norman, OK - Contractor >> <william.k.mil...@usps.gov.invalid> wrote: >>> Thanks Erick for pointing me in this direction. Unfortunately when I try >>> to us this I get an error. Here is the command that I am using and the >>> response I get: >>> >>> https://solrserver:8983/solr/admin/cores?action=CREATE=mycore >>> s >>> tanceDir=/var/solr/data/mycore=data=custom_configs >>> >>> >>> [1] 32023 >>> [2] 32024 >>> [3] 32025 >>> -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No >>> such file or directory [4] 32026 >>> [1] Exit 127 >>> https://solrserver:8983/solr/adkmin/cores?action=CREATE >>> [2] Donename=mycore >>> [3]-DoneinstanceDir=/var/solr/data/mycore >>> [4]+DonedataDir=data >>> >>> >>> I even tried to use the UNLOAD action to remove a core and got the same >>> type of error as the -bash line above. >>> >>> I have tried searching online for an answer and have found nothing so far. >>> Any ideas why this error is occuring. >>> >>> >>> >>> ~~~ >>> William Kevin Miller >>> >>> ECS Federal, Inc. >>> USPS/MTSC >>> (405) 573-2158 >>> >>> -Original Message- >>> From: Erick Erickson [mailto:erickerick...@gmail.com] >>> Sent: Tuesday, September 26, 2017 3:33 PM >>> To: solr-user >>> Subject: Re: Modifing create_core's instanceDir attribute >>> >>> I don't think you can. You can, however, use the core admin API to do >>> that, >>> see: >>> https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin >>> - >>> api >>> >>> Best, >>> Erick >>> >>> On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - >>> Contractor <william.k.mil...@usps.gov.invalid> wrote: >>> >>>> I know that when the create_core command is used that it sets the >>>> core to the name of the parameter supplied with the “-c” option and >>>> the instanceDir attribute in the http is also set to the name of the core. >>>> What I want is to tell the create_core to use a different >>>> instanceDir parameter. How can I go about doing this? >>>> >>>> >>>> >>>> >>>> >>>> I am using Solr 6.5.1 and it is running on a linux server using the >>>> apache tomcat webserver. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> ~~~ >>>> >>>> William Kevin Miller >>>> >>>> [image: ecsLogo] >>>> >>>> ECS Federal, Inc. >>>> >>>> USPS/MTSC >>>> >>>> (405) 573-2158 >>>> >>>> >>>>
RE: Modifing create_core's instanceDir attribute
I understand that this has to be done on the command line, but I don't know where to put this structure or what it should look like. Can you please be more specific in this answer? I have only been working with Solr for about six months. ~~~ William Kevin Miller ECS Federal, Inc. USPS/MTSC (405) 573-2158 -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Wednesday, September 27, 2017 3:57 PM To: solr-user Subject: Re: Modifing create_core's instanceDir attribute Standard command-line. You're doing this on the box itself, not through a REST API. Erick On Wed, Sep 27, 2017 at 10:26 AM, Miller, William K - Norman, OK - Contractor <william.k.mil...@usps.gov.invalid> wrote: > This is my first time to try using the core admin API. How do I go about > creating the directory structure? > > > > > ~~~ > William Kevin Miller > > ECS Federal, Inc. > USPS/MTSC > (405) 573-2158 > > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Wednesday, September 27, 2017 11:45 AM > To: solr-user > Subject: Re: Modifing create_core's instanceDir attribute > > Right, the core admin API is pretty low-level, it expects the base directory > exists, you have to create the directory structure by hand. > > Best, > Erick > > On Wed, Sep 27, 2017 at 9:24 AM, Miller, William K - Norman, OK - Contractor > <william.k.mil...@usps.gov.invalid> wrote: >> Thanks Erick for pointing me in this direction. Unfortunately when I try to >> us this I get an error. Here is the command that I am using and the >> response I get: >> >> https://solrserver:8983/solr/admin/cores?action=CREATE=mycore >> s >> tanceDir=/var/solr/data/mycore=data=custom_configs >> >> >> [1] 32023 >> [2] 32024 >> [3] 32025 >> -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No >> such file or directory [4] 32026 >> [1] Exit 127 >> https://solrserver:8983/solr/adkmin/cores?action=CREATE >> [2] Donename=mycore >> [3]-DoneinstanceDir=/var/solr/data/mycore >> [4]+DonedataDir=data >> >> >> I even tried to use the UNLOAD action to remove a core and got the same type >> of error as the -bash line above. >> >> I have tried searching online for an answer and have found nothing so far. >> Any ideas why this error is occuring. >> >> >> >> ~~~~~~~ >> William Kevin Miller >> >> ECS Federal, Inc. >> USPS/MTSC >> (405) 573-2158 >> >> -Original Message- >> From: Erick Erickson [mailto:erickerick...@gmail.com] >> Sent: Tuesday, September 26, 2017 3:33 PM >> To: solr-user >> Subject: Re: Modifing create_core's instanceDir attribute >> >> I don't think you can. You can, however, use the core admin API to do >> that, >> see: >> https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin >> - >> api >> >> Best, >> Erick >> >> On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractor >> <william.k.mil...@usps.gov.invalid> wrote: >> >>> I know that when the create_core command is used that it sets the >>> core to the name of the parameter supplied with the “-c” option and >>> the instanceDir attribute in the http is also set to the name of the core. >>> What I want is to tell the create_core to use a different >>> instanceDir parameter. How can I go about doing this? >>> >>> >>> >>> >>> >>> I am using Solr 6.5.1 and it is running on a linux server using the >>> apache tomcat webserver. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ~~~ >>> >>> William Kevin Miller >>> >>> [image: ecsLogo] >>> >>> ECS Federal, Inc. >>> >>> USPS/MTSC >>> >>> (405) 573-2158 >>> >>> >>>
Re: Modifing create_core's instanceDir attribute
Standard command-line. You're doing this on the box itself, not through a REST API. Erick On Wed, Sep 27, 2017 at 10:26 AM, Miller, William K - Norman, OK - Contractor <william.k.mil...@usps.gov.invalid> wrote: > This is my first time to try using the core admin API. How do I go about > creating the directory structure? > > > > > ~~~ > William Kevin Miller > > ECS Federal, Inc. > USPS/MTSC > (405) 573-2158 > > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Wednesday, September 27, 2017 11:45 AM > To: solr-user > Subject: Re: Modifing create_core's instanceDir attribute > > Right, the core admin API is pretty low-level, it expects the base directory > exists, you have to create the directory structure by hand. > > Best, > Erick > > On Wed, Sep 27, 2017 at 9:24 AM, Miller, William K - Norman, OK - Contractor > <william.k.mil...@usps.gov.invalid> wrote: >> Thanks Erick for pointing me in this direction. Unfortunately when I try to >> us this I get an error. Here is the command that I am using and the >> response I get: >> >> https://solrserver:8983/solr/admin/cores?action=CREATE=mycore >> tanceDir=/var/solr/data/mycore=data=custom_configs >> >> >> [1] 32023 >> [2] 32024 >> [3] 32025 >> -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No such >> file or directory [4] 32026 >> [1] Exit 127 >> https://solrserver:8983/solr/adkmin/cores?action=CREATE >> [2] Donename=mycore >> [3]-DoneinstanceDir=/var/solr/data/mycore >> [4]+DonedataDir=data >> >> >> I even tried to use the UNLOAD action to remove a core and got the same type >> of error as the -bash line above. >> >> I have tried searching online for an answer and have found nothing so far. >> Any ideas why this error is occuring. >> >> >> >> ~~~ >> William Kevin Miller >> >> ECS Federal, Inc. >> USPS/MTSC >> (405) 573-2158 >> >> -Original Message- >> From: Erick Erickson [mailto:erickerick...@gmail.com] >> Sent: Tuesday, September 26, 2017 3:33 PM >> To: solr-user >> Subject: Re: Modifing create_core's instanceDir attribute >> >> I don't think you can. You can, however, use the core admin API to do >> that, >> see: >> https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin- >> api >> >> Best, >> Erick >> >> On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractor >> <william.k.mil...@usps.gov.invalid> wrote: >> >>> I know that when the create_core command is used that it sets the >>> core to the name of the parameter supplied with the “-c” option and >>> the instanceDir attribute in the http is also set to the name of the core. >>> What I want is to tell the create_core to use a different instanceDir >>> parameter. How can I go about doing this? >>> >>> >>> >>> >>> >>> I am using Solr 6.5.1 and it is running on a linux server using the >>> apache tomcat webserver. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ~~~ >>> >>> William Kevin Miller >>> >>> [image: ecsLogo] >>> >>> ECS Federal, Inc. >>> >>> USPS/MTSC >>> >>> (405) 573-2158 >>> >>> >>>
RE: Modifing create_core's instanceDir attribute
This is my first time to try using the core admin API. How do I go about creating the directory structure? ~~~ William Kevin Miller ECS Federal, Inc. USPS/MTSC (405) 573-2158 -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Wednesday, September 27, 2017 11:45 AM To: solr-user Subject: Re: Modifing create_core's instanceDir attribute Right, the core admin API is pretty low-level, it expects the base directory exists, you have to create the directory structure by hand. Best, Erick On Wed, Sep 27, 2017 at 9:24 AM, Miller, William K - Norman, OK - Contractor <william.k.mil...@usps.gov.invalid> wrote: > Thanks Erick for pointing me in this direction. Unfortunately when I try to > us this I get an error. Here is the command that I am using and the response > I get: > > https://solrserver:8983/solr/admin/cores?action=CREATE=mycore > tanceDir=/var/solr/data/mycore=data=custom_configs > > > [1] 32023 > [2] 32024 > [3] 32025 > -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No such > file or directory [4] 32026 > [1] Exit 127 > https://solrserver:8983/solr/adkmin/cores?action=CREATE > [2] Donename=mycore > [3]-DoneinstanceDir=/var/solr/data/mycore > [4]+DonedataDir=data > > > I even tried to use the UNLOAD action to remove a core and got the same type > of error as the -bash line above. > > I have tried searching online for an answer and have found nothing so far. > Any ideas why this error is occuring. > > > > ~~~ > William Kevin Miller > > ECS Federal, Inc. > USPS/MTSC > (405) 573-2158 > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Tuesday, September 26, 2017 3:33 PM > To: solr-user > Subject: Re: Modifing create_core's instanceDir attribute > > I don't think you can. You can, however, use the core admin API to do > that, > see: > https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin- > api > > Best, > Erick > > On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractor > <william.k.mil...@usps.gov.invalid> wrote: > >> I know that when the create_core command is used that it sets the >> core to the name of the parameter supplied with the “-c” option and >> the instanceDir attribute in the http is also set to the name of the core. >> What I want is to tell the create_core to use a different instanceDir >> parameter. How can I go about doing this? >> >> >> >> >> >> I am using Solr 6.5.1 and it is running on a linux server using the >> apache tomcat webserver. >> >> >> >> >> >> >> >> >> >> >> >> ~~~ >> >> William Kevin Miller >> >> [image: ecsLogo] >> >> ECS Federal, Inc. >> >> USPS/MTSC >> >> (405) 573-2158 >> >> >>
Re: Modifing create_core's instanceDir attribute
Right, the core admin API is pretty low-level, it expects the base directory exists, you have to create the directory structure by hand. Best, Erick On Wed, Sep 27, 2017 at 9:24 AM, Miller, William K - Norman, OK - Contractor <william.k.mil...@usps.gov.invalid> wrote: > Thanks Erick for pointing me in this direction. Unfortunately when I try to > us this I get an error. Here is the command that I am using and the response > I get: > > https://solrserver:8983/solr/admin/cores?action=CREATE=mycore=/var/solr/data/mycore=data=custom_configs > > > [1] 32023 > [2] 32024 > [3] 32025 > -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No such file > or directory > [4] 32026 > [1] Exit 127 > https://solrserver:8983/solr/adkmin/cores?action=CREATE > [2] Donename=mycore > [3]-DoneinstanceDir=/var/solr/data/mycore > [4]+DonedataDir=data > > > I even tried to use the UNLOAD action to remove a core and got the same type > of error as the -bash line above. > > I have tried searching online for an answer and have found nothing so far. > Any ideas why this error is occuring. > > > > ~~~ > William Kevin Miller > > ECS Federal, Inc. > USPS/MTSC > (405) 573-2158 > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Tuesday, September 26, 2017 3:33 PM > To: solr-user > Subject: Re: Modifing create_core's instanceDir attribute > > I don't think you can. You can, however, use the core admin API to do that, > see: > https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin-api > > Best, > Erick > > On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractor > <william.k.mil...@usps.gov.invalid> wrote: > >> I know that when the create_core command is used that it sets the core >> to the name of the parameter supplied with the “-c” option and the >> instanceDir attribute in the http is also set to the name of the core. >> What I want is to tell the create_core to use a different instanceDir >> parameter. How can I go about doing this? >> >> >> >> >> >> I am using Solr 6.5.1 and it is running on a linux server using the >> apache tomcat webserver. >> >> >> >> >> >> >> >> >> >> >> >> ~~~ >> >> William Kevin Miller >> >> [image: ecsLogo] >> >> ECS Federal, Inc. >> >> USPS/MTSC >> >> (405) 573-2158 >> >> >>
RE: Modifing create_core's instanceDir attribute
Thanks Erick for pointing me in this direction. Unfortunately when I try to us this I get an error. Here is the command that I am using and the response I get: https://solrserver:8983/solr/admin/cores?action=CREATE=mycore=/var/solr/data/mycore=data=custom_configs [1] 32023 [2] 32024 [3] 32025 -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No such file or directory [4] 32026 [1] Exit 127 https://solrserver:8983/solr/adkmin/cores?action=CREATE [2] Donename=mycore [3]-DoneinstanceDir=/var/solr/data/mycore [4]+DonedataDir=data I even tried to use the UNLOAD action to remove a core and got the same type of error as the -bash line above. I have tried searching online for an answer and have found nothing so far. Any ideas why this error is occuring. ~~~ William Kevin Miller ECS Federal, Inc. USPS/MTSC (405) 573-2158 -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Tuesday, September 26, 2017 3:33 PM To: solr-user Subject: Re: Modifing create_core's instanceDir attribute I don't think you can. You can, however, use the core admin API to do that, see: https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin-api Best, Erick On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractor <william.k.mil...@usps.gov.invalid> wrote: > I know that when the create_core command is used that it sets the core > to the name of the parameter supplied with the “-c” option and the > instanceDir attribute in the http is also set to the name of the core. > What I want is to tell the create_core to use a different instanceDir > parameter. How can I go about doing this? > > > > > > I am using Solr 6.5.1 and it is running on a linux server using the > apache tomcat webserver. > > > > > > > > > > > > ~~~ > > William Kevin Miller > > [image: ecsLogo] > > ECS Federal, Inc. > > USPS/MTSC > > (405) 573-2158 > > >
Re: Modifing create_core's instanceDir attribute
I don't think you can. You can, however, use the core admin API to do that, see: https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin-api Best, Erick On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractorwrote: > I know that when the create_core command is used that it sets the core to > the name of the parameter supplied with the “-c” option and the instanceDir > attribute in the http is also set to the name of the core. What I want is > to tell the create_core to use a different instanceDir parameter. How can > I go about doing this? > > > > > > I am using Solr 6.5.1 and it is running on a linux server using the apache > tomcat webserver. > > > > > > > > > > > > ~~~ > > William Kevin Miller > > [image: ecsLogo] > > ECS Federal, Inc. > > USPS/MTSC > > (405) 573-2158 > > >
Modifing create_core's instanceDir attribute
I know that when the create_core command is used that it sets the core to the name of the parameter supplied with the "-c" option and the instanceDir attribute in the http is also set to the name of the core. What I want is to tell the create_core to use a different instanceDir parameter. How can I go about doing this? I am using Solr 6.5.1 and it is running on a linux server using the apache tomcat webserver. ~~~ William Kevin Miller [ecsLogo] ECS Federal, Inc. USPS/MTSC (405) 573-2158