Comments (10)
@paribhasha Can you please create a pull request for the changes we have done so far (also can replace the sample client program with the one you have) . Vsevolod can incorporate the changes in his fix.
from go-impala.
I tried to reproduce this on my dev environment (master Impala, no security) and it seems to work fine for a database with many tables. https://github.com/timarmstrong/go-impala-repro
If you can reproduce this on a non-production environment with verbose logging set to 3, I'd be interested in seeing the impalad INFO logs, since those will log most of the RPCs sent from the client to the server and the responses.
from go-impala.
E.g. here's the log output I see locally
impala.INFO.excerpt.txt
from go-impala.
@paribhasha : Can you please try Tim's script with the server we have where we have LDAP and SSL enabled . That is the closest we can come to trying to reproduce the problem outside of the enterprise's cluster.
@timarmstrong we do not have access to the server on which we are seeing the error. We will try to reproduce it in a local set up as best as we can.
from go-impala.
I was able to repro the issue with a DB with 2000 tables (created using https://github.com/timarmstrong/go-impala-repro) in a Server of version: impalad version 2.10.0-cdh5.13.0 RELEASE (build 2511805f1eaa991df1460276c7e9f19d819cd4e4). This is the quickstart.cloudera VM.
Earlier the issue was seen in Server version: impalad version 2.8.0-cdh5.11.2 RELEASE (build f89269c4b96da14a841e94bdf6d4d48821b0d658)
I bumped up the logging by setting GLOG_v=3 and have collected the impalad INFO logs.
go-impala-repro-impalad.INFO.log The relevant query is around line number 1330 in this file.
Client output:
go_impala_repro is the database with 2000 tables.
$ go run impala.go
2019/02/12 06:35:41 List of Databases
[_impala_builtins bipp default go_impala_repro nyc_yellow_taxi]
2019/02/12 06:35:41 List of Tables in Database _impala_builtins: []
2019/02/12 06:35:41 List of Tables in Database bipp: [store_info uscrimes]
2019/02/12 06:35:42 List of Tables in Database default: []
2019/02/12 06:35:42 GetResultsMetadata failed: get_results_metadata: wrong method name
2019/02/12 06:35:42 List of Tables in Database go_impala_repro: []
2019/02/12 06:35:42 error in querying database nyc_yellow_taxi: query: wrong method name
from go-impala.
Hrm, it's strange that it looks like the calling pattern is the same for the earlier databases and go_impala_repro. This is a wild guess, but it could somehow be related to https://issues.apache.org/jira/browse/IMPALA-7101, where get_results_metadata() on beeswax throws an exception that it doesn't declare.
from go-impala.
I tried running against the latest CDH5 without security and couldn't reproduce.
With the quickstart VM, were you running with security enabled? I'm interested if this is only reproducible with security or if it's somehow related to the version of Impala that's running.
It looks like the error is bubbling up from the go thrift client - https://github.com/apache/thrift/blob/af7ecd6a2b15efe5c6b742cf4a9ccb31bcc1f362/lib/go/thrift/client.go#L46. I'm wondering if somehow the client-server communication is getting out of whack at the thrift layer. It's hard to explain why subsequent queries fail otherwise.
from go-impala.
@timarmstrong It is most likely with ldap and ssl enabled.
@paribhasha can confirm once he is online (in about 7 hours )
from go-impala.
yes, my tests have confirmed now that the problem arises only with security enabled. After disabling SSL and LDAP authentication, I could pass any arbitrary 32 bit integer as fetch_size to the thrift client and not hit the issue.
from go-impala.
This is a transport issue. TSaslTransport (custom wrapper around thrift transport) reads big frames incorrectly. I am working on the patch.
from go-impala.
Related Issues (20)
- cannot set mem_limit query option HOT 4
- Suspected file handle leak , server using the driver becomes unresponsive HOT 1
- Query Timeout having no effect HOT 2
- Multiple identical parameters in SQL Query HOT 1
- support impala shell connect? HOT 1
- supper kerberos HOT 3
- Reestablish connection after EPIPE (Broken pipe) HOT 2
- Error in cli_service.go: argument 1 has incompatible type (missing method 'Deadline') HOT 10
- panic in GetResultSetMetadata when schema object is nil
- Couldn't exec impala function at INSERT Statement HOT 2
- Incorrect replacement when there > 10 positional parameters HOT 1
- execute query while no response HOT 3
- Errors from cli_service.go HOT 5
- compilation with thrift v0.14.1 failed HOT 1
- got not all rows in response. cursor is needed? HOT 1
- suspect Ping() does not "establishing a connection if necessary"
- How to use( use databases)
- Design Change - Move to HS2 interface to Impala rather than beeswax HOT 3
- go-impala doesn't close queries HOT 5
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 go-impala.