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

Following error occured when establishing the sample HIVE JDBC connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Linux

    • hive jdbc

    Description

      Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:611)
      at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
      Caused by: java.lang.RuntimeException: Failed to load Hive builtin functions
      at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:190)
      at org.apache.hadoop.hive.jdbc.JdbcSessionState.<init>(JdbcSessionState.java:31)
      at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(HiveConnection.java:62)
      at org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:108)
      at java.sql.DriverManager.getConnection(DriverManager.java:322)
      at java.sql.DriverManager.getConnection(DriverManager.java:358)
      at HiveJdbcClient.main(HiveJdbcClient.java:24)
      ... 5 more
      Caused by: java.net.MalformedURLException: no !/ in spec
      at java.net.URL.<init>(URL.java:613)
      at java.net.URL.<init>(URL.java:476)
      at java.net.URL.<init>(URL.java:425)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:162)
      at java.net.JarURLConnection.<init>(JarURLConnection.java:155)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:78)
      at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:36)
      at java.net.URL.openConnection(URL.java:957)
      at java.net.URL.openStream(URL.java:1022)
      at org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerFunctionsFromPluginJar(FunctionRegistry.java:1194)
      at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:187)
      ... 11 more

      Attachments

        1. [HIVE-3007].patch
          2 kB
          Ruslan Peshchuk
        2. module.xml
          2 kB
          Ruslan Peshchuk

        Activity

          People

            Unassigned Unassigned
            victorw victorWang
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: