Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5141

JDBC interpreter cannot work with hive below 2.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • JdbcInterpreter
    • None

    Description

      When using JdbcInterpreter  in zeppelin-0.9.0 , it fails when hive version below 2.3 .

      The error was caused by the following codes.

      String hiveVersion = HiveVersionInfo.getVersion();    
      ProgressBar progressBarTemp = null;    
      if (isProgressBarSupported(hiveVersion)) { 
           LOGGER.debug("ProgressBar is supported for hive version: " + hiveVersion);
           progressBarTemp = new ProgressBar();
      } else {
            LOGGER.debug("ProgressBar is not supported for hive version: " + hiveVersion);
      }

      The author has already considered the compatibility of hive version, but the InPlaceUpdateStream class used internally by ProgressBar is only available in version 2.3 or above, which leads to runtime NoClassDefFoundError.

        

      Attachments

        1. screenshot-1.png
          209 kB
          Shulei Zheng

        Activity

          People

            zhengslei Shulei Zheng
            zhengslei Shulei Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h