[
https://issues.apache.org/jira/browse/THRIFT-2498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer closed THRIFT-2498.
------------------------------
Resolution: Not a Problem
Hi [~thaniyarasu],
this is very likely not a problem within Thrift itself. The message indicates,
that the Thrift server you are calling does not know the method called. The two
most likely causes for this problem you are:
- you picked the wrong Thrift IDL file, or the service runs with the "wrong"
API
- you run an hbase version earlier than 0.94.0 (see HBASE-1744)
HBase has two different Thrift APIs. The Thrift IDL, for the *old* API file is
located in the folder
{{src/main/resources/org/apache/hadoop/hbase/thrift/hbase.thrift}}
without the "2". The HBase service function {{exists}} that you want to use has
been added with HBASE-1744 to the *new* API, which is described in the Thrift
file {{src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift}}
that's the one with the "2" that you use with the client above.
More details, including how to configure HBase accordingly, can be found [in
this SO
thread|http://stackoverflow.com/questions/22874861/hbase-thrift-in-cdh-5/22878870#22878870].
> golang thrift-1.0.0-dev error : false Invalid method name: 'exists'
> ---------------------------------------------------------------------
>
> Key: THRIFT-2498
> URL: https://issues.apache.org/jira/browse/THRIFT-2498
> Project: Thrift
> Issue Type: Bug
> Reporter: thaniyarasu
> Assignee: Jens Geyer
> Priority: Trivial
>
> i have cloned thrift master (SHA ID 779b9ac2eff8605836a7a08151b844601dffcf53)
> and installed it locally.
> ~$ thrift -version => Thrift version 1.0.0-dev
> ~$ thrift --gen go
> hbase-0.94.17/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
> ~$ go version => go1.2.1 linux/amd64
> ~$ go install gen-go/hbase # success
> ~$ go run gen-go/hbase/t_h_base_service-remote/t_h_base_service-remote.go
> exists table_name {}
> false Invalid method name: 'exists'
--
This message was sent by Atlassian JIRA
(v6.2#6252)