Skip to content

A simple project showing how to use the Phoenix JDBC driver for the QueryServer

Notifications You must be signed in to change notification settings

kkhanmm/phoenix-queryserver-jdbc-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix QueryServer JDBC Example

This codebase is meant to create some tables using the Phoenix QueryServer (PQS) and verify that results are not seen across separate clients.

Build the code

mvn package

Create the tables

java -cp ${PHOENIX_HOME}/phoenix-${PHOENIX_VERSION}-thin-client.jar:target/pqs-jdbc-example-0.0.1-SNAPSHOT.jar phoenix.CreateTables 'http://localhost:8765;serialization=PROTOBUF'

Run the queries concurrently

java -cp ${PHOENIX_HOME}/phoenix-${PHOENIX_VERSION}-thin-client.jar:target/pqs-jdbc-example-0.0.1-SNAPSHOT.jar phoenix.Client1 'http://localhost:8765;serialization=PROTOBUF'

java -cp ${PHOENIX_HOME}/phoenix-${PHOENIX_VERSION}-thin-client.jar:target/pqs-jdbc-example-0.0.1-SNAPSHOT.jar phoenix.Client2 'http://localhost:8765;serialization=PROTOBUF'

About

A simple project showing how to use the Phoenix JDBC driver for the QueryServer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%