Git Product home page Git Product logo

Comments (5)

beltran avatar beltran commented on August 30, 2024

You may be able to configure this with hive.server2.idle.session.timeout and hive.server2.session.check.interval. See this answer: https://stackoverflow.com/a/33994479, and these docs: https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.session.check.interval

from gohive.

beltran avatar beltran commented on August 30, 2024

Closing this for now, let me know if it didn't help.

from gohive.

shcw avatar shcw commented on August 30, 2024

Closing this for now, let me know if it didn't help.

thx, i plan to query a sql every 5 minutes and let him continue.

unable to modify hive's configuration for other reasons

from gohive.

beltran avatar beltran commented on August 30, 2024

You can set custom values from the connection, these values need not apply to the server. See this test for example, so you could do:

configuration := map[string]string{
      "hive.server2.idle.session.timeout": "3000",
}
configuration := NewConnectConfiguration()
...
configuration.HiveConfiguration = hiveConfiguration
connection, errConn := gohive.Connect("hs2.example.com", port, getAuth(), configuration)

So the configuration would only apply to your client.

from gohive.

shcw avatar shcw commented on August 30, 2024

您可以从连接中设置自定义值,这些值不需要应用于服务器。例如看这个测试,所以你可以这样做:

configuration := map[string]string{
      "hive.server2.idle.session.timeout": "3000",
}
configuration := NewConnectConfiguration()
...
configuration.HiveConfiguration = hiveConfiguration
connection, errConn := gohive.Connect("hs2.example.com", port, getAuth(), configuration)

因此,该配置仅适用于您的客户端。

I got it, thank you very much for your guidance

from gohive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.