Dan Hill
03/09/2020, 7:36 PMProcessingException(errorCode: 450,
message: InternalError: <http://java.io|java.io>.IOException: Failed: HTTP error code: 500
at org.apache.pinot.controller.api.resources.PinotQueryResource.sendPostRaw(PinotQueryResource.java: 284)
at org.apache.pinot.controller.api.resources.PinotQueryResource.sendRequestRaw(PinotQueryResource.java: 322)
at org.apache.pinot.controller.api.resources.PinotQueryResource.getQueryResponse(PinotQueryResource.java: 204)
at org.apache.pinot.controller.api.resources.PinotQueryResource.handlePostSql(PinotQueryResource.java: 131)
When I look at the log, it looks like it cannot find any segments.
java.lang.NullPointerException: null
at org.apache.pinot.broker.routing.instanceselector.BalancedInstanceSelector.select(BalancedInstanceSelector.java:43) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.broker.routing.instanceselector.BaseInstanceSelector.select(BaseInstanceSelector.java:168) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.broker.routing.instanceselector.BalancedInstanceSelector.select(BalancedInstanceSelector.java:34) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.broker.routing.RoutingManager$RoutingEntry.calculateSegmentToInstanceMap(RoutingManager.java:517) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.broker.routing.RoutingManager.getRoutingTable(RoutingManager.java:416) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:300) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.broker.api.resources.PinotClientRequest.processSqlQueryPost(PinotClientRequest.java:146) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
Dan Hill
03/09/2020, 7:37 PMDan Hill
03/09/2020, 7:37 PMNeha Pawar
Neha Pawar
Dan Hill
03/09/2020, 7:57 PMDan Hill
03/09/2020, 7:58 PMNeha Pawar
StreamAvroIntoKafka
. We don't have a JSON equivalent yet.Neha Pawar
Xiang Fu
StreamAvroIntoKafka
has a parameter called -outputFormat
you can specify json
or avro
Neha Pawar
Xiang Fu
Neha Pawar
Xiang Fu
Xiang Fu
Xiang Fu
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test-json-topic < test.json
Xiang Fu
Dan Hill
03/09/2020, 8:38 PMDan Hill
03/09/2020, 8:38 PMDan Hill
03/09/2020, 8:39 PMNeha Pawar
kafka-console-producer
. Works fine for me.
My hunch is you have an incorrect config. Are the kafka zk port and kafka broker port correct?Dan Hill
03/09/2020, 9:02 PMDan Hill
03/09/2020, 9:02 PMDan Hill
03/09/2020, 9:06 PMjava.nio.file.NoSuchFileException: /var/folders/_h/7cl8qfcd0cb4mhw_mmzytpcr0000gn/T/PinotController/192.168.0.29_9000/fileUploadTemp/events__0__0__20200309T1931Z.b744e958-ae2e-44e8-93df-a0155263978d
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_242]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_242]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_242]
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:1.8.0_242]
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) ~[?:1.8.0_242]
at java.nio.file.Files.newOutputStream(Files.java:216) ~[?:1.8.0_242]
at java.nio.file.Files.copy(Files.java:3016) ~[?:1.8.0_242]
at org.apache.pinot.controller.api.resources.LLCSegmentCompletionHandlers.extractSegmentFromFormToLocalTempFile(LLCSegmentCompletionHandlers.java:404) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.controller.api.resources.LLCSegmentCompletionHandlers.segmentCommit(LLCSegmentCompletionHandlers.java:257) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:219) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
Neha Pawar
Dan Hill
03/09/2020, 9:20 PMDan Hill
03/09/2020, 9:21 PM./bin/pinot-admin.sh LaunchDataIngestionJob -jobSpecFile /my/dir/batch-job-spec.yml
, the query still fails. My expected dir has the segments.Dan Hill
03/09/2020, 9:23 PM"stream.kafka.hlc.zk.connect.string": "localhost:2191/kafka",
   "stream.kafka.zk.broker.url": "localhost:2191/kafka",
   "stream.kafka.broker.list": "localhost:19092",
?Dan Hill
03/09/2020, 9:27 PMNeha Pawar
localhost:2123
, your table config has 2191. Did you setup a separate ZK?