Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11287

Hive Metastore does not tolerate leading spaces in JDBC url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.0
    • None
    • Configuration, Metastore

    Description

      The hive metastore is configured with

       <property>
          <name>
             javax.jdo.option.ConnectionURL
          </name>
          <value>
             jdbc:mysql://hostname/hive
         </value>
        </property>
      

      The initialization fails with an error

      java.sql.SQLException: No suitable driver found for
          jdbc:mysql://hostname/hive
              at java.sql.DriverManager.getConnection(DriverManager.java:689)
              at java.sql.DriverManager.getConnection(DriverManager.java:208)
              at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
              at com.jolbox.bonecp.BoneCP.obtainInternalConnection(BoneCP.java:269)
              at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:242)
              at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.java:115)
              at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:85)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

          Activity

            People

              qihanycx Chen Xin Yu
              gopalv Gopal Vijayaraghavan
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: