Expand all | Collapse all

Connect to mapd with thrift

  • 1.  Connect to mapd with thrift

    Posted 11-30-2018 07:51

    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]. MapdExample.java.
    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?

  • 2.  RE: Connect to mapd with thrift

    OmniSci Employee
    Posted 11-30-2018 14:59

    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.