Connect to mapd with thrift


Hello every one.

I want to execute a sql statement on mapd through thrift client.
Follow the guide, i execute the command thrift -gen java mand.thrift, and a new folder named gen-java will be created.
Then i execute the compile statement java -cp [the src path and the jar path].
After thar, it tell me package com.mapd.thrift.calciteserver does not exist. I am sure about that calciteserver is not in the folder gen-java.

So, can you tell me how to solve the problem?


Hello @hchen. Our first suggestion is to try:

thrift -r -gen java mapd.thrift

which hopefully fixes the problem.

We also recommend considering the JDBC connector.