https://pinot.apache.org/ logo
#general
Title
# general
j

Joey Pereira

09/15/2020, 5:20 AM
👍. Follow up, I set
instanceId=pinot-broker-1
and that looks like it did some "fun" things! The server's instance zk state is
Copy code
{
  "id": "pinot-broker-1",
  "simpleFields": {
    "HELIX_ENABLED": "true",
    "HELIX_ENABLED_TIMESTAMP": "1600146975179",
    "HELIX_HOST": "pinot-broker-1",
    "HELIX_PORT": ""
  },
  "mapFields": {},
  "listFields": {
    "TAG_LIST": [
      "DefaultTenant_BROKER"
    ]
  }
}
Based on a bit of splunking, it looks like the
instanceId
has to conform to a strict form of
<type>_<hostname>_<port>
for internals to work?
And just to confirm: does
<hostname>
need to be a valid hostname to have Pinot work? It cannot just be an arbitrary string?
k

Kishore G

09/15/2020, 6:09 AM
It tries to derive host name and port name from instance Id if you font set host and port explicitly
c

Chinmay Soman

09/15/2020, 5:02 PM
@Joey Pereira do you mind pasting your full config ? There's a way to set host and port explicitly
j

Joey Pereira

09/15/2020, 5:03 PM
Ended up => DM and digging further. This is what the configurations look like.
server
Copy code
pinot.server.instance.id=Server_$HOSTNAME_$PORT
pinot.server.netty.host=$HOSTNAME
pinot.server.netty.port=$PORT
controller
Copy code
controller.host=$HOSTNAME
controller.port=$PORT
broker
Copy code
instanceId=Broker_$HOSTNAME_$PORT
pinot.broker.client.queryPort=$PORT
They've launched and appear to have the IDs that was intended in Pinot, but haven't verified if they have the correct hosts+ports and actually work.
c

Chinmay Soman

09/15/2020, 5:05 PM
ok , so looks like the instance ID works fine for server, but probably not for broker yet (in the sense - we don't need a strict instanceid_host_port format)
might need to fix that
@Joey Pereira let us know if you run into issues during verification
j

Joey Pereira

09/15/2020, 5:28 PM
🎉 seems to be working fine. huzza!
c

Chinmay Soman

09/15/2020, 6:30 PM
nice !