Hi Team, I'm trying to load data from Minio to pin...
# troubleshooting
m
Hi Team, I'm trying to load data from Minio to pinot but facing issues while running yaml files. ERROR:expected '<document start>', but found BlockMappingStart in 'string', line 6, column 1: jobType: SegmentCreationAndMetad ...
x
seems yaml issue
should be no space before jobType
check indentation
m
Now i'm getting this error
java.lang.IllegalStateException: PinotFS for scheme: http has not been initialized
i'm trying this is in docker trying to read data from minio bucket used s3 as the scheme pinotFSSpecs: - scheme: s3 className: org.apache.pinot.plugin.filesystem.S3PinotFS
Could not instantiate file system for class org.apache.pinot.plugin.filesystem.S3PinotFS with scheme s3 java.lang.IllegalArgumentException: null
x
can you add a region into the config?
Copy code
- scheme: s3
  className: org.apache.pinot.plugin.filesystem.S3PinotFS
  configs:
    region: 'us-west-2'
m
no use still i'm facing java.lang.IllegalStateException: PinotFS for scheme: https has not been initialized
Facing {"code":500, "error":"org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata"}
when creating realtime table in pinot ,i'm using{ "tableName": "transcript", "tableType": "REALTIME", "segmentsConfig": { "timeColumnName": "timestampInEpoch", "timeType": "MILLISECONDS", "schemaName": "transcript", "replicasPerPartition": "1" }, "tenants": {}, "tableIndexConfig": { "loadMode": "MMAP", "streamConfigs": { "streamType": "kafka", "stream.kafka.consumer.type": "lowlevel", "stream.kafka.topic.name": "transcript-topic", "stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder", "stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory", "stream.kafka.broker.list": "localhost:9876", "realtime.segment.flush.threshold.size": "0", "realtime.segment.flush.threshold.time": "24h", "realtime.segment.flush.desired.size": "50M", "stream.kafka.consumer.prop.auto.offset.reset": "smallest" } }, "metadata": { "customConfigs": {} } }
x
Hmm, how do you start Pinot ?
Docker or k8s or script?
I guess your Kafka is local but in docker?
m
Kafka and pinot both are in docker only
x
localhost:9876 seems to be wrong
docker containers cannot talk to each other with localhost:<port>
m
i tried with 9092 also but no use.
x
do you mean you have two docker containers one for pinot and one for kafka ?
m
yes
x
then they cannot talk to each other using your local network
you need to create a docker network and give each container a name when you start it
see the doc I send you above, when you start a kafka using cmd like:
Copy code
docker run \
    --network pinot-demo --name=kafka \
    -e KAFKA_ZOOKEEPER_CONNECT=pinot-zookeeper:2181/kafka \
    -e KAFKA_BROKER_ID=0 \
    -e KAFKA_ADVERTISED_HOST_NAME=kafka \
    -d wurstmeister/kafka:latest
then you can use
kafka:9092
as the broker list when you create a pinot table
m
here network name is kafka or pinot-demo
x
kafka
m
ok let me try
x
pinot-demo is the network name, which you need to create upfront
running docker in local is far from running bash script.
m
sure thank you.