Comments (6)
What error are you getting? I'm not surprised this is not working. There should be one cursor per connection. Why not just have this?
from gohive.
你遇到了什么错误?我并不惊讶这不起作用。每个连接应该有一个游标。为什么不只拥有这个?
I wrote a timed task and I want multiple processes to synchronize data at the same time, but it is the same connection. Do I need to re-establish the connection?
from gohive.
Yes, you need one cursor per connection. I've actually never tried to use several cursors on the same connection. It's possible it works, or that it doesn't work but there's an easy fix. But the library was built with the assumption there would be one cursor per connection.
from gohive.
是的,每个连接需要一个光标。我实际上从未尝试在同一连接上使用多个游标。它可能有效,或者它不起作用,但有一个简单的解决方法。但是该库是在假设每个连接有一个游标的情况下构建的。
thx, is there a recommended way to create a connection pool ?
from gohive.
is there a recommended way to create a connection pool ?
Unfortunately I'm not aware of any best practices, but if you end up doing this please share the knowledge you acquire 🙂
from gohive.
is there a recommended way to create a connection pool ?
Unfortunately I'm not aware of any best practices, but if you end up doing this please share the knowledge you acquire 🙂
thx ~
from gohive.
Related Issues (20)
- How to Timeout SQL queries? HOT 2
- LDAP authentication with HTTPS Does Not Work HOT 8
- Exec PENDING_STATE HOT 2
- go build error HOT 1
- some problems to access to hiveserver2 without kinit HOT 2
- Cursor.totalRows is 0
- panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- How to solve "Incorrect FrameSize"? HOT 6
- could we generate cpp bindings
- What to do if the hive service is actively disconnected due to timeout? HOT 5
- ConnectZookeeper panic HOT 1
- use in hive 1.1.0 fetch data uncompleted HOT 1
- hive-site.xml location HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- Assignment Mismatch | Thrift HOT 5
- pollUntilData func panic HOT 1
- how to specify mote than one host HOT 1
- I want to connect to the Hive database with KerberOS authentication enabled on Windows. How to install GSSAPI C library on Windows? HOT 1
- HTTP(S) plain/ldap authentication connection does not support cookies and issue with the cookie handling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gohive.