Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-9686

Spark Thrift server doesn't return correct JDBC metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2
    • None
    • SQL
    • None

    Description

      1. Start start-thriftserver.sh
      2. connect with beeline
      3. create table
      4.show tables, the new created table returned
      5.
      Class.forName("org.apache.hive.jdbc.HiveDriver");
      String URL = "jdbc:hive2://localhost:10000/default";
      Properties info = new Properties();
      Connection conn = DriverManager.getConnection(URL, info);
      ResultSet tables = conn.getMetaData().getTables(conn.getCatalog(),
      null, null, null);

      Problem:
      No tables with returned this API, that work in spark1.3

      Attachments

        1. SPARK-9686.1.patch.txt
          4 kB
          Navis Ryu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pin_zhang pin_zhang
              Votes:
              15 Vote for this issue
              Watchers:
              37 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: