Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-814

Executing insert based on JdbcExample

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.2.3
    • None
    • None

    Description

      I tried modifying the example I found on https://github.com/onefoursix/Cloudera-Impala-JDBC-Example in order to do inserts.

      Using library version 0.10.0-cdh4.5.0.

      I created a sample table with impala-shell.

      create table example_table
      (
      id string,
      rfid string,
      barcode_id string,
      orig_country string,
      dest_country string,
      creation_date timestamp,
      version integer
      );

      Querying this table with the original JDBC example works fine.

      However, when I run an insert statement (that works fine in the shell), it fails with no error: nothing gets written in the tables.

      Cheers,
      Joris

      Attachments

        1. ClouderaImpalaJdbcInsertExample.java
          2 kB
          Joris Van den Bogaert

        Activity

          People

            Unassigned Unassigned
            jorisvdb_impala_6b3d Joris Van den Bogaert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: