Dan Hill
03/08/2020, 2:57 AMDan Hill
03/08/2020, 2:59 AMDan Hill
03/08/2020, 3:02 AMXiang Fu
Xiang Fu
executionFrameworkSpec:
name: 'standalone'
segmentGenerationJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner'
segmentTarPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner'
segmentUriPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentUriPushJobRunner'
jobType: SegmentCreationAndTarPush
inputDirURI: '/tmp/event/rawdata/'
outputDirURI: '/tmp/event/segments/'
overwriteOutput: true
pinotFSSpecs:
- scheme: file
className: org.apache.pinot.spi.filesystem.LocalPinotFS
recordReaderSpec:
dataFormat: 'json'
className: 'org.apache.pinot.plugin.inputformat.json.JSONRecordReader'
tableSpec:
tableName: 'events'
schemaURI: '<http://localhost:9000/tables/events/schema>'
tableConfigURI: '<http://localhost:9000/tables/events>'
pinotClusterSpecs:
- controllerURI: '<http://localhost:9000>'
Xiang Fu
Xiang Fu
org.apache.pinot.plugin.inputformat.json.JSONRecordReader
not org.apache.pinot.plugin.inputformat.json.JsonRecordReader
Xiang Fu
Dan Hill
03/08/2020, 3:14 AMDan Hill
03/08/2020, 3:15 AMXiang Fu
Xiang Fu
conf/pinot-admin-log4j2.xml
file withXiang Fu
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<Configuration>
<Appenders>
<Console name="console" target="SYSTEM_OUT" />
<RandomAccessFile name="controllerLog" fileName="pinotController.log" immediateFlush="false">
<PatternLayout>
<Pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</Pattern>
</PatternLayout>
</RandomAccessFile>
<RandomAccessFile name="brokerLog" fileName="pinotBroker.log" immediateFlush="false">
<PatternLayout>
<Pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</Pattern>
</PatternLayout>
</RandomAccessFile>
<RandomAccessFile name="serverLog" fileName="pinotServer.log" immediateFlush="false">
<PatternLayout>
<Pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</Pattern>
</PatternLayout>
</RandomAccessFile>
</Appenders>
<Loggers>
<Root level="info" additivity="false">
<AppenderRef ref="console"/>
</Root>
<Logger name="org.apache.pinot.controller.ControllerStarter" level="info" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="org.apache.pinot.tools.admin" level="info" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<AsyncLogger name="org.reflections" level="error" additivity="false"/>
<AsyncLogger name="org.apache.pinot.spi.plugin" level="error" additivity="false">
<AppenderRef ref="console"/>
</AsyncLogger>
</Loggers>
</Configuration>
Dan Hill
03/08/2020, 3:27 AMDan Hill
03/08/2020, 3:32 AMDan Hill
03/08/2020, 4:09 AMDan Hill
03/08/2020, 4:09 AMKishore G
Kishore G
Dan Hill
03/08/2020, 4:17 AMgit push origin jsonnpe
, I get an a permission denied error.Kishore G
Dan Hill
03/09/2020, 6:17 PMDan Hill
03/09/2020, 6:17 PM<http://java.io|java.io>.IOException: Server returned HTTP response code: 500 for URL: <http://192.168.0.29:9000/tables>
at <http://sun.net|sun.net>.<http://www.protocol.http.HttpURLConnection.getInputStream0|www.protocol.http.HttpURLConnection.getInputStream0>(HttpURLConnection.java:1919) ~[?:?]
at <http://sun.net|sun.net>.<http://www.protocol.http.HttpURLConnection.getInputStream|www.protocol.http.HttpURLConnection.getInputStream>(HttpURLConnection.java:1515) ~[?:?]
at org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand.sendRequest(AbstractBaseAdminCommand.java:89) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand.sendPostRequest(AbstractBaseAdminCommand.java:68) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.tools.admin.command.AddTableCommand.sendTableCreationRequest(AddTableCommand.java:138) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.tools.admin.command.AddTableCommand.execute(AddTableCommand.java:163) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:152) [pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:164) [pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-565374bbabd1b359f8d4f8d85d62ffd0f3d27458]
Dan Hill
03/09/2020, 6:19 PMDan Hill
03/09/2020, 6:19 PM"tableName": "events",
"segmentsConfig": {
"timeColumnName": "timestamp",
"timeType": "MILLISECONDS",
},
"tableIndexConfig": {
"streamConfigs": {
"stream.kafka.topic.name": "events-realtime"
}
}
Subbu Subramaniam
03/09/2020, 6:21 PMSubbu Subramaniam
03/09/2020, 6:21 PMSubbu Subramaniam
03/09/2020, 6:21 PMDan Hill
03/09/2020, 6:33 PM./bin/pinot-admin.sh AddTable
cliDan Hill
03/09/2020, 6:34 PM