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

"Failed to locate the winutils binary" when loading JDBC driver on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.12.0
    • None
    • JDBC
    • None

    Description

      This ERROR is thrown on Windows platforms when loading the JDBC driver, subsequent attempts will succeed. The Hadoop binaries are indeed not available, but shouldn't be required when just using JDBC.

      13:20:00 [ERROR pool-2-thread-4 Shell.getWinUtilsPath] Failed to locate the winutils binary in the hadoop binary path
      java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
      at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:324)
      at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:339)
      at org.apache.hadoop.util.Shell.<clinit>(Shell.java:332)
      at org.apache.hadoop.hive.conf.HiveConf$ConfVars.findHadoopBinary(HiveConf.java:918)
      at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:228)
      at org.apache.hive.jdbc.HiveConnection.isHttpTransportMode(HiveConnection.java:304)
      at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:181)
      at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:164)
      at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.onseven.dbvis.d.B.D.ā(Z:1548)
      at com.onseven.dbvis.d.B.F$A.call(Z:278)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      Attachments

        1. HIVE-7845.1.patch.txt
          29 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              benwhite Ben White
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: