Reply
New Contributor
Posts: 1
Registered: ‎10-31-2017

error : adding a new field from hue after enabling the schema api

{ "message": "{\n \"responseHeader\":{\n \"status\":500,\n \"QTime\":23},\n \"error\":{\n \"metadata\":[\n \"error-class\",\"org.apache.solr.common.SolrException\",\n \"root-error-class\",\"org.apache.zookeeper.KeeperException$NoNodeException\"],\n \"msg\":\"Error persisting managed schema at /configs/knarra_PotentialSource/managed-schema\",\n \"trace\":\"org.apache.solr.common.SolrException: Error persisting managed schema at /configs/knarra_PotentialSource/managed-schema\\n\\tat org.apache.solr.schema.ManagedIndexSchema.persistManagedSchemaToZooKeeper(ManagedIndexSchema.java:166)\\n\\tat org.apache.solr.schema.ManagedIndexSchema.persistManagedSchema(ManagedIndexSchema.java:83)\\n\\tat org.apache.solr.schema.ManagedIndexSchema.addFields(ManagedIndexSchema.java:241)\\n\\tat org.apache.solr.schema.ManagedIndexSchema.addFields(ManagedIndexSchema.java:50)\\n\\tat org.apache.solr.rest.schema.FieldCollectionResource.post(FieldCollectionResource.java:202)\\n\\tat org.restlet.resource.ServerResource.doHandle(ServerResource.java:437)\\n\\tat org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:350)\\n\\tat org.restlet.resource.ServerResource.handle(ServerResource.java:952)\\n\\tat org.restlet.resource.Finder.handle(Finder.java:246)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.routing.Router.doHandle(Router.java:431)\\n\\tat org.restlet.routing.Router.handle(Router.java:648)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)\\n\\tat org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)\\n\\tat org.restlet.Application.handle(Application.java:381)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.routing.Router.doHandle(Router.java:431)\\n\\tat org.restlet.routing.Router.handle(Router.java:648)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.routing.Router.doHandle(Router.java:431)\\n\\tat org.restlet.routing.Router.handle(Router.java:648)\\n\\tat org.restlet.routing.Filter.doHandle(Filter.java:159)\\n\\tat org.restlet.routing.Filter.handle(Filter.java:206)\\n\\tat org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)\\n\\tat org.restlet.Component.handle(Component.java:392)\\n\\tat org.restlet.Server.handle(Server.java:516)\\n\\tat org.restlet.engine.ServerHelper.handle(ServerHelper.java:72)\\n\\tat org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)\\n\\tat org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1089)\\n\\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:723)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\\n\\tat org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)\\n\\tat org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)\\n\\tat org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)\\n\\tat org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)\\n\\tat org.apache.solr.servlet.SolrDispatchFilter.httpSolrCall(SolrDispatchFilter.java:433)\\n\\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)\\n\\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\\n\\tat org.apache.solr.servlet.SolrHadoopAuthenticationFilter$2.doFilter(SolrHadoopAuthenticationFilter.java:408)\\n\\tat org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:631)\\n\\tat org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:301)\\n\\tat org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:579)\\n\\tat org.apache.solr.servlet.SolrHadoopAuthenticationFilter.doFilter(SolrHadoopAuthenticationFilter.java:413)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\\n\\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\\n\\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\\n\\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\\n\\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\\n\\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\\n\\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\\n\\tat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)\\n\\tat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:610)\\n\\tat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:503)\\n\\tat java.lang.Thread.run(Thread.java:745)\\nCaused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /configs/knarra_PotentialSource/managed-schema\\n\\tat org.apache.zookeeper.KeeperException.create(KeeperException.java:111)\\n\\tat org.apache.zookeeper.KeeperException.create(KeeperException.java:51)\\n\\tat org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1266)\\n\\tat org.apache.solr.common.cloud.SolrZkClient$8.execute(SolrZkClient.java:369)\\n\\tat org.apache.solr.common.cloud.SolrZkClient$8.execute(SolrZkClient.java:366)\\n\\tat org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:61)\\n\\tat org.apache.solr.common.cloud.SolrZkClient.setData(SolrZkClient.java:366)\\n\\tat org.apache.solr.schema.ManagedIndexSchema.persistManagedSchemaToZooKeeper(ManagedIndexSchema.java:152)\\n\\t... 69 more\\n\",\n \"code\":500}}\n (error 500)", "traceback": [ [ "/opt/cloudera/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/hue/desktop/libs/libsolr/src/libsolr/api.py", 484, "add_fields", "return self._root.post('%s/schema/fields' % collection, params=params, data=json.dumps(fields), contenttype='application/json')" ], [ "/opt/cloudera/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", 131, "post", "allow_redirects=allow_redirects, clear_cookies=clear_cookies)" ], [ "/opt/cloudera/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", 80, "invoke", "clear_cookies=clear_cookies)" ], [ "/opt/cloudera/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py", 197, "execute", "raise self._exc_class(ex)" ] ], "detail": null, "is_embeddable": false, "title": "Error while accessing Solr" }

Announcements