datastax enterprise - Querying Solr Config API returns Internal Server Error -


i'm attempting update solr config via solr config api. attempting first query config following endpoint:

http://localhost:8983/solr//config

the response 500 internal server error , noticed in logs deployed solr following exception:

internal server error (500) - no restmanager found! @ org.apache.solr.rest.restmanager.getrestmanager(restmanager.java:245) @ org.apache.solr.rest.solrconfigrestapi.createinboundroot(solrconfigrestapi.java:67) @ org.restlet.application.getinboundroot(application.java:270) @ org.restlet.engine.application.applicationhelper.start(applicationhelper.java:127) @ org.restlet.application.start(application.java:582) 

the core created using following post:

curl "http://localhost:8983/solr/admin/cores?action=create&name=<keyspace.table>&generateresources=true&reindex=true" 

this action successful config api fails.

the url should be: http://localhost:8983/solr/#/[ks.cf]/config

still there convenience/recommended methods avoid curl commands. see:

  • dsetool create_core
  • dsetool get_core_config
  • dsetool get_core_schema
  • dsetool reload_core

in case dsetool create_core, dsetool get_core_config, modify solrconfig.xml , later dsetool reload_core new solrconfig should need. see: dsetool doc usage details

if need examples on how curl, if still need use curl, see shell files under wikipedia demo, 1-add-schema.sh instance. still dsetool commands recommended method.

if intended use solr config api please notice solr 5 feature , in dse find version 4.10 feature not available yet. if want change solr config have reload new solrconfig using outlined dsetool commands above.

it useful know exact version using.

hope helps.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -