post.jar was removed in solr 5 I think. There are ways to index your files you 
can use the post tool https://lucene.apache.org/solr/guide/8_1/post-tool.html 
<https://lucene.apache.org/solr/guide/8_1/post-tool.html>, or you can try tika 
to extract text from docuements, or you can use curl 
https://lucene.apache.org/solr/guide/8_1/uploading-data-with-index-handlers.html#using-curl-to-perform-updates
 
<https://lucene.apache.org/solr/guide/8_1/uploading-data-with-index-handlers.html#using-curl-to-perform-updates>
  

On Sep 18, 2019, at 13:33, Raymond Xie <xie3208...@gmail.com> wrote:

I remember there is a post.jar in Cloudera's Solr (very old version) that
allows indexing doc like:

java -Dtype=application/json -Drecursive -Durl="
https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8983_solr_indexer-5Fodac_update_json_docs&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU&m=46aWsPOdFln3UfXqa4uKg7kfgMDRN4sPY-mHbsuWcTs&s=ZiW2uFD77PXO_3ZCczSQ4DAY5O_dOSYy5pUOpOBRFjI&e=
 " -jar post.jar
/tmp/solr_data/data

I don't see the post.jar in Solr 7.2 anymore, it is just "post", not
"post.jar"

Can you tell me what is the right command to do the index on a folder? I am
not able to find that information in the documentation.

Thank you very much.

On Tue, Sep 17, 2019 at 9:42 AM Raymond Xie <xie3208...@gmail.com> wrote:

> Thank you Paras for your reply, yes I downloaded src, after re-download
> the binary, it is working as expected here.
> 
> *------------------------------------------------*
> *Sincerely yours,*
> 
> 
> *Raymond*
> 
> 
> On Tue, Sep 17, 2019 at 9:26 AM Paras Lehana <paras.leh...@indiamart.com>
> wrote:
> 
>> Hi Raymond,
>> 
>> ERROR: start.jar file not found in /opt/solr-8.2.0/solr/server!
>>> 
>> 
>> You had probably downloaded the source version. *Download the binary one*
>> (TGZ
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.apache.org_dyn_closer.lua_lucene_solr_8.2.0_solr-2D8.2.0.tgz&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU&m=46aWsPOdFln3UfXqa4uKg7kfgMDRN4sPY-mHbsuWcTs&s=e6T6nWL0WM6YMV5Y4w1p8pTI_mzgFwD1xgVlwuQQgcA&e=
>>  >
>> or ZIP
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.apache.org_dyn_closer.lua_lucene_solr_8.2.0_solr-2D8.2.0.zip&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU&m=46aWsPOdFln3UfXqa4uKg7kfgMDRN4sPY-mHbsuWcTs&s=PbRMq9EYR46WOL1iDk9TEmQfYYeDrezmbirBOQUl6kk&e=
>>  >).
>> Yes, it does mean that the package is incomplete.
>> 
>> On Tue, 17 Sep 2019 at 18:40, Raymond Xie <xie3208...@gmail.com> wrote:
>> 
>>> Thank you Paras:
>>> 
>>> If I am already user of root, and still run sudo? no, it doesn't work:
>>> [root@pocnnr1n1 solr]# sudo bin/solr start -force
>>> sudo: bin/solr: command not found
>>> 
>>> [root@pocnnr1n1 solr]# ls -l bin/solr
>>> -rw-r--r-- 1 root root 80630 Jul 19 09:09 bin/solr
>>> 
>>> So, I followed your suggestion and added +x, now run the command again:
>>> [root@pocnnr1n1 solr]# bin/solr start
>>> *** [WARN] *** Your open file limit is currently 1024.
>>> It should be set to 65000 to avoid operational disruption.
>>> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
>>> false in your profile or solr.in.sh
>>> *** [WARN] ***  Your Max Processes Limit is currently 63397.
>>> It should be set to 65000 to avoid operational disruption.
>>> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
>>> false in your profile or solr.in.sh
>>> WARNING: Starting Solr as the root user is a security risk and not
>>> considered best practice. Exiting.
>>>         Please consult the Reference Guide. To override this check,
>>> start with argument '-force'
>>> 
>>> alright, I'll add the -force option:
>>> [root@pocnnr1n1 solr]# bin/solr start -force
>>> *** [WARN] *** Your open file limit is currently 1024.
>>> It should be set to 65000 to avoid operational disruption.
>>> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
>>> false in your profile or solr.in.sh
>>> *** [WARN] ***  Your Max Processes Limit is currently 63397.
>>> It should be set to 65000 to avoid operational disruption.
>>> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
>>> false in your profile or solr.in.sh
>>> 
>>> ERROR: start.jar file not found in /opt/solr-8.2.0/solr/server!
>>> Please check your -d parameter to set the correct Solr server directory.
>>> 
>>> BUT: the folder server is there, and no start.jar
>>> 
>>> [root@pocnnr1n1 solr]# ls /opt/solr-8.2.0/solr
>>> bin          common-build.xml  licenses            server
>>> webapp
>>> bin-test     contrib           LICENSE.txt         site
>>> build.xml    core              LUCENE_CHANGES.txt  solrj
>>> CHANGES.txt  docs              NOTICE.txt          solr-ref-guide
>>> cloud-dev    example           README.txt          test-framework
>>> 
>>> [root@pocnnr1n1 server]# ll
>>> total 16
>>> drwxr-xr-x 2 root root    6 Jul 19 09:09 solr-webapp
>>> drwxr-xr-x 3 root root   27 Jul 19 09:09 scripts
>>> -rw-r--r-- 1 root root 3959 Jul 19 09:09 README.txt
>>> -rw-r--r-- 1 root root 5740 Jul 19 09:09 ivy.xml
>>> -rw-r--r-- 1 root root 2214 Jul 19 09:09 build.xml
>>> drwxr-xr-x 2 root root  135 Sep 16 21:13 etc
>>> drwxr-xr-x 2 root root   36 Sep 16 21:13 contexts
>>> drwxr-xr-x 2 root root   82 Sep 16 21:13 resources
>>> drwxr-xr-x 2 root root   90 Sep 16 21:13 modules
>>> drwxr-xr-x 3 root root   73 Sep 16 21:13 solr
>>> 
>>> *So this seems to be something missing from the solr package?*
>>> 
>>> *Thank you.*
>>> 
>>> *------------------------------------------------*
>>> *Sincerely yours,*
>>> 
>>> 
>>> *Raymond*
>>> 
>>> 
>>> On Tue, Sep 17, 2019 at 8:42 AM Paras Lehana <paras.leh...@indiamart.com>
>>> wrote:
>>> 
>>>> Hey Raymond,
>>>> 
>>>> 
>>>> bin/solr start -force
>>>> 
>>>> 
>>>> I know this could be useless, but did you try the following (notice the
>>>> sudo)?
>>>> 
>>>> *sudo* bin/solr start -force
>>>> 
>>>> 
>>>> Also, I suggest you to review permission of solr file by:
>>>> 
>>>> ls -l bin/solr
>>>> 
>>>> 
>>>> If you don't see required executable permissions, you can provide root
>>>> user the permission to execute the file by:
>>>> 
>>>> *chmod +x bin/solr*
>>>> 
>>>> 
>>>> Hope this helps.
>>>> 
>>>> On Tue, 17 Sep 2019 at 18:03, Raymond Xie <xie3208...@gmail.com> wrote:
>>>> 
>>>>> Thank you.
>>>>> 
>>>>> As I suspected, this is something else. It prompts me the same error
>>>>> here:
>>>>> [root@pocnnr1n1 solr]# bin/solr start -force
>>>>> -bash: bin/solr: Permission denied
>>>>> [root@pocnnr1n1 solr]#
>>>>> 
>>>>> It is not a good practice to use root directly, however, using root
>>>>> should not have permission error. This is odd.
>>>>> 
>>>>> 
>>>>> *------------------------------------------------*
>>>>> *Sincerely yours,*
>>>>> 
>>>>> 
>>>>> *Raymond*
>>>>> 
>>>>> 
>>>>> On Tue, Sep 17, 2019 at 12:49 AM Paras Lehana <
>>>>> paras.leh...@indiamart.com> wrote:
>>>>> 
>>>>>> Hi Raymond,
>>>>>> 
>>>>>> It's not recommended to run solr as root (security reasons
>>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene.apache.org_solr_guide_8-5F1_taking-2Dsolr-2Dto-2Dproduction.html-23create-2Dthe-2Dsolr-2Duser&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU&m=46aWsPOdFln3UfXqa4uKg7kfgMDRN4sPY-mHbsuWcTs&s=GomX4dQVwmXtcKqfBpZt-OLWLRTmaoO8KQ3dMB5VOYI&e=
>>>>>>  >).
>>>>>> Nevertheless, in order to answer your question, try this command:
>>>>>> 
>>>>>> *sudo bin/solr start -force*
>>>>>> 
>>>>>> 
>>>>>> From Solr Control Script Reference
>>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene.apache.org_solr_guide_8-5F1_solr-2Dcontrol-2Dscript-2Dreference.html-23start-2Dparameters&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU&m=46aWsPOdFln3UfXqa4uKg7kfgMDRN4sPY-mHbsuWcTs&s=flUlfN-mHFoQpHBOp_3JUMJzzdXNDoz22uebo8zS9E0&e=
>>>>>>  >
>>>>>> :
>>>>>> 
>>>>>> If attempting to start Solr as the root user, the script will exit
>>>>>>> with a warning that running Solr as "root" can cause problems. It is
>>>>>>> possible to override this warning with the -force parameter.
>>>>>> 
>>>>>> 
>>>>>> PS: I suggest you to go through *Service Installation Script *in Taking
>>>>>> Solr to Production
>>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene.apache.org_solr_guide_8-5F1_taking-2Dsolr-2Dto-2Dproduction.html&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU&m=46aWsPOdFln3UfXqa4uKg7kfgMDRN4sPY-mHbsuWcTs&s=4O3z8W7CWbtak5GRcD5oeJqudwQ-annG59Ycs2s_T2k&e=
>>>>>>  > that
>>>>>> describes the ideal Solr setup. A must read!
>>>>>> 
>>>>>> Hope I helped.
>>>>>> 
>>>>>> 
>>>>>> On Tue, 17 Sep 2019 at 08:37, Raymond Xie <xie3208...@gmail.com>
>>>>>> wrote:
>>>>>> 
>>>>>>> [root@pocnnr1n1 solr-8.2.0]# ll
>>>>>>> total 88
>>>>>>> -rw-r--r--  1 root root  4023 Jul 19 09:09 README.md
>>>>>>> -rw-r--r--  1 root root 32153 Jul 19 09:09 build.xml
>>>>>>> -rw-r--r--  1 root root 27717 Jul 19 09:09 NOTICE.txt
>>>>>>> -rw-r--r--  1 root root 12646 Jul 19 09:09 LICENSE.txt
>>>>>>> drwxr-xr-x 10 root root   174 Sep 16 21:13 dev-tools
>>>>>>> drwxr-xr-x 30 root root  4096 Sep 16 21:13 lucene
>>>>>>> drwxr-xr-x 16 root root  4096 Sep 16 21:13 solr
>>>>>>> 
>>>>>>> [root@pocnnr1n1 solr]# bin/solr start
>>>>>>> -bash: bin/solr: Permission denied
>>>>>>> 
>>>>>>> Can anyone please help me to sort it out?
>>>>>>> 
>>>>>>> Thank you. Regards.
>>>>>>> *------------------------------------------------*
>>>>>>> *Sincerely yours,*
>>>>>>> 
>>>>>>> 
>>>>>>> *Raymond*
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> --
>>>>>> Regards,
>>>>>> 
>>>>>> *Paras Lehana* [65871]
>>>>>> Software Programmer, Auto-Suggest,
>>>>>> IndiaMART Intermesh Ltd.
>>>>>> 
>>>>>> 8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
>>>>>> Noida, UP, IN - 201303
>>>>>> 
>>>>>> Mob.: +91-9560911996
>>>>>> Work: 01203916600 | Extn:  *8173*
>>>>>> 
>>>>>> IMPORTANT:
>>>>>> NEVER share your IndiaMART OTP/ Password with anyone.
>>>>>> 
>>>>> 
>>>> 
>>>> --
>>>> --
>>>> Regards,
>>>> 
>>>> *Paras Lehana* [65871]
>>>> Software Programmer, Auto-Suggest,
>>>> IndiaMART Intermesh Ltd.
>>>> 
>>>> 8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
>>>> Noida, UP, IN - 201303
>>>> 
>>>> Mob.: +91-9560911996
>>>> Work: 01203916600 | Extn:  *8173*
>>>> 
>>>> IMPORTANT:
>>>> NEVER share your IndiaMART OTP/ Password with anyone.
>>>> 
>>> 
>> 
>> --
>> --
>> Regards,
>> 
>> *Paras Lehana* [65871]
>> Software Programmer, Auto-Suggest,
>> IndiaMART Intermesh Ltd.
>> 
>> 8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
>> Noida, UP, IN - 201303
>> 
>> Mob.: +91-9560911996
>> Work: 01203916600 | Extn:  *8173*
>> 
>> IMPORTANT:
>> NEVER share your IndiaMART OTP/ Password with anyone.
>> 
> 

*------------------------------------------------*
*Sincerely yours,*


*Raymond*

Reply via email to