Member since
07-29-2024
2
Posts
0
Kudos Received
0
Solutions
07-09-2025
06:37 AM
Hello, thank you for your help. We made progress. However, now we are running into an ERROR 500 when we try to POST the filled out template that we exported before. We verified again, that there is no problem with the json format and that there is no typo in the instantiator section. We did following command: # curl -X POST -H "Content-Type: application/json" -d @cloudera.json http://admin:admin@<IP>:7182/api/v54/cm/importClusterTemplate?addRepositories=true Warning: Couldn't read data from file "cloudera.json", this makes an Warning: empty POST. <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 500 Error processing POST request. Check the system logs for more information.</title> </head> <body><h2>HTTP ERROR 500 Error processing POST request. Check the system logs for more information.</h2> <table> <tr><th>URI:</th><td>/api/v54/cm/importClusterTemplate</td></tr> <tr><th>STATUS:</th><td>500</td></tr> <tr><th>MESSAGE:</th><td>Error processing POST request. Check the system logs for more information.</td></tr> <tr><th>SERVLET:</th><td>com.cloudera.server.common.AgentAvroServlet-70ce31c3</td></tr> </table> </body> </html> and following traceback in the log: 2025-07-09 15:14:22,469 ERROR agentServer-55:com.cloudera.server.common.AgentAvroServlet: Error processing Avro request java.io.IOException: Unexpected length: -16843009, max: 10485760 at com.cloudera.enterprise.SafeAvroHttpTransceiver.checkLength(SafeAvroHttpTransceiver.java:139) at com.cloudera.enterprise.SafeAvroHttpTransceiver.readBuffers(SafeAvroHttpTransceiver.java:96) at com.cloudera.server.common.HttpConnectorServer$FunctionsImpl.read(HttpConnectorServer.java:118) at com.cloudera.server.common.HttpConnectorServer$FunctionsImpl.read(HttpConnectorServer.java:110) at com.cloudera.server.common.AgentAvroServlet.doPost(AgentAvroServlet.java:90) at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at com.cloudera.server.common.MovingStats$1.get(MovingStats.java:32) at com.cloudera.server.common.MovingStats$1.get(MovingStats.java:29) at com.cloudera.server.common.MovingStats.measure(MovingStats.java:41) at com.cloudera.server.common.MovingStats.measure(MovingStats.java:29) at com.cloudera.server.common.MonitoringThreadPool$RunnableImpl.run(MonitoringThreadPool.java:135) at com.cloudera.server.common.BoundedQueuedThreadPool$2.run(BoundedQueuedThreadPool.java:94) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.lang.Thread.run(Thread.java:750) We also tried the command without an "@" in front of the json file argument with following result: # curl -X POST -H "Content-Type: application/json" -d /tmp/cloudera.json http://admin:admin@<IP>:7182/api/v54/cm/importClusterTemplate?addRepositories=true <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 500 Error processing POST request. Check the system logs for more information.</title> </head> <body><h2>HTTP ERROR 500 Error processing POST request. Check the system logs for more information.</h2> <table> <tr><th>URI:</th><td>/api/v54/cm/importClusterTemplate</td></tr> <tr><th>STATUS:</th><td>500</td></tr> <tr><th>MESSAGE:</th><td>Error processing POST request. Check the system logs for more information.</td></tr> <tr><th>SERVLET:</th><td>com.cloudera.server.common.AgentAvroServlet-70ce31c3</td></tr> </table> </body> </html> and following error in the logs: 2025-07-09 14:18:12,393 ERROR agentServer-57:com.cloudera.server.common.AgentAvroServlet: Error processing Avro request java.io.IOException: Unexpected length (too long): 796159344, max:10485760 at com.cloudera.enterprise.SafeAvroHttpTransceiver.checkLength(SafeAvroHttpTransceiver.java:137) at com.cloudera.enterprise.SafeAvroHttpTransceiver.readBuffers(SafeAvroHttpTransceiver.java:96) at com.cloudera.server.common.HttpConnectorServer$FunctionsImpl.read(HttpConnectorServer.java:118) at com.cloudera.server.common.HttpConnectorServer$FunctionsImpl.read(HttpConnectorServer.java:110) at com.cloudera.server.common.AgentAvroServlet.doPost(AgentAvroServlet.java:90) at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) [...] My colleague and I do not see, where we could have made a mistake. What can be the cause of this? Thanks for your help!
... View more