I want to test Pinot. I created a container using:
docker run --name apachepinot -p 2123:2123 -p 9000:9000 -p 8000:8000 -p 7050:7050 -p 6000:6000 apachepinot/pinot:latest QuickStart -type batch
Then I tried to connect using JAR and URL
pinot-java-client-1.2.0-sharded.jar
jdbc:pinot://localhost:9000
but I got null connection. What is wrong?
m
Mayank
01/15/2025, 1:45 PM
Are you able to launch the UI and access query console
d
Dragos Pruteanu
01/15/2025, 5:16 PM
The query console works. I tried to execute this:
Dragos Pruteanu
01/15/2025, 5:16 PM
CREATE TABLE my_table (
id INT,
name STRING
);
Dragos Pruteanu
01/15/2025, 5:16 PM
and it fails with: Encountered "" at line 1, column 1.
m
Mayank
01/15/2025, 5:23 PM
Pinot java client is for rest api call for queries I think, not jdbc.
Thank you. This did help. I switched pinot-jdbc-client-1.2.0-shaded.jar . Now I get exception org.apache.pinot.client.PinotClientException: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused: getsockopt: localhost/[00000001]80.
Dragos Pruteanu
01/15/2025, 7:36 PM
Does apachepinot require a username/password? Which is the default?