question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is Hive supported?

I have added all the jar files that I thought would be needed but I am still getting an error when trying to run the migrations. I am however able to list what migrations have not been run.

List of hive jar driver files:

commons-codec-1.5.jar commons-logging-1.1.1.jar hadoop-common-2.6.0.jar hive-common-0.13.0.jar hive-jdbc-0.13.0.jar hive-service-0.13.0.jar httpclient-4.2.5.jar httpcore-4.2.5.jar libthrift-0.9.1.jar log4j-1.2.17.jar slf4j-api-1.7.5.jar slf4j-log4j12-1.7.5.jar

Sample migrate commands:

[dev@sandbox hive]$ migrate status
------------------------------------------------------------------------
-- MyBatis Migrations - status
------------------------------------------------------------------------
ID             Applied At          Description
================================================================================
log4j:WARN No appenders could be found for logger (org.apache.thrift.transport.TSaslTransport).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
20141202195919    ...pending...    test

------------------------------------------------------------------------
-- MyBatis Migrations SUCCESS
-- Total time: 0s
-- Finished at: Mon Aug 03 19:52:32 UTC 2015
-- Final Memory: 22M/480M
------------------------------------------------------------------------
[dev@sandbox hive]$ migrate up
------------------------------------------------------------------------
-- MyBatis Migrations - up
------------------------------------------------------------------------
log4j:WARN No appenders could be found for logger (org.apache.thrift.transport.TSaslTransport).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
========== Applying: 20141202195919_test.sql ===================================
--  Create Changelog
CREATE TABLE dev.mybatis_test(
  source string, 
  siteid string)

Error executing: CREATE TABLE dev.mybatis_test(
  source string, 
  siteid string)
.  Cause: java.sql.SQLException: Method not supported
------------------------------------------------------------------------
-- MyBatis Migrations FAILURE
-- Total time: 1s
-- Finished at: Mon Aug 03 19:52:36 UTC 2015
-- Final Memory: 20M/480M
------------------------------------------------------------------------

ERROR: Error executing command.  Cause: org.apache.ibatis.jdbc.RuntimeSqlException: Error executing: CREATE TABLE dev.mybatis_test(
  source string, 
  siteid string)
.  Cause: java.sql.SQLException: Method not supported

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
harawatacommented, Jul 22, 2016

The patch was accepted for Hive 2.2.0 😊

0reactions
harawatacommented, Sep 4, 2017

@syvineckruyk The issue reported here was fixed in Hive ≥2.2.0 and I assumed that there were users who are using Migrations with Hive. If you use Hive ≥2.2.0 and have some problem, please create a new issue with the details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Hive Minecraft Server - Support
Help and support for The Hive Minecraft Server: payments, punishments, staff and more.
Read more >
Hive Support - Hive Home
No information is available for this page.
Read more >
Hive Help
Advice and answers from the Hive Team · Getting Started · Product Updates · Using Hive · Use Cases · User Management ·...
Read more >
Hive Customer Support
TIP: Hive Customer Support provides service in 16 languages. ... Welcome to Hive! Do you need help? close. Select a game you need...
Read more >
Support Hive Select Assembled - Dadant
Support hives are needed in every out yard you have. Two 4-frame hives make up the support colonies. Great for boosting a weak...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found