Invalid method name 'OpenSession' when I try to connect
See original GitHub issueWhen I run impala.dbapi.connect(port=21000).cursor()
, I get this error:
/home/julia/clones/impyla/impala/dbapi.py in cursor(self, session_handle, user, configuration)
71 user = getpass.getuser()
72 if session_handle is None:
---> 73 session_handle = impala.rpc.open_session(self.service, user, configuration)
74 return Cursor(self.service, session_handle)
75
/home/julia/clones/impyla/impala/rpc.py in wrapper(*args, **kwargs)
116 if not transport.isOpen():
117 transport.open()
--> 118 return func(*args, **kwargs)
119 except socket.error as e:
120 pass
/home/julia/clones/impyla/impala/rpc.py in open_session(service, user, configuration)
186 def open_session(service, user, configuration=None):
187 req = TOpenSessionReq(username=user, configuration=configuration)
--> 188 resp = service.OpenSession(req)
189 err_if_rpc_not_ok(resp)
190 return resp.sessionHandle
/home/julia/clones/impyla/impala/cli_service/TCLIService.py in OpenSession(self, req)
152 """
153 self.send_OpenSession(req)
--> 154 return self.recv_OpenSession()
155
156 def send_OpenSession(self, req):
/home/julia/clones/impyla/impala/cli_service/TCLIService.py in recv_OpenSession(self)
168 x.read(self._iprot)
169 self._iprot.readMessageEnd()
--> 170 raise x
171 result = OpenSession_result()
172 result.read(self._iprot)
TApplicationException: Invalid method name: 'OpenSession'
What does this error mean? I’m not sure how to debug this.
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Impyla error when port is specified - Stack Overflow
Impyla is trying to connect to Impala using the HiveServer2 protocol, so you should be using port 21050. Port 21000 is for the...
Read more >Error when Connecting Load Balancer with Impyla
I am using python shell to connect to with impala with Cloudera Impyla ... TApplicationException: Invalid method name: 'OpenSession'.
Read more >[HUE-1271] Getting Error! Invalid method name: 'OpenSession ...
Invalid method name : 'OpenSession' when attempting to use the Impala Query Editor via HUE as installed via CM 4.6.
Read more >[JIRA] Created: (HUE-1271) Getting Error! Invalid method name
Invalid method name : 'OpenSession' when attempting to use the Impala Query Editor via HUE as installed via CM 4.6. 130 views. Skip...
Read more >Set impala-shell's default protocol to hs2 - Apache
MissingThriftMethodException : Invalid method name: 'OpenSession'". The fix is to either explicitly specify "--protocol=beeswax" or switch to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
never mind! Was connecting to impalad instead of Impala ODBC. Should have used port 21050!
Oh,i first use static String JDBC_DRIVER = “com.cloudera.impala.jdbc41.Driver”; static String CONNECTION_URL = “jdbc:impala://10.1.16.37:21000/obd_message”; But met the problem Invalid method name ‘OpenSession’ when I try to connect as the title. Then,change port to 21050 can resolve my problem too.