hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elliott Clark (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-13265) Make thrift2 usable from c++
Date Thu, 26 Mar 2015 00:11:55 GMT

    [ https://issues.apache.org/jira/browse/HBASE-13265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381086#comment-14381086
] 

Elliott Clark edited comment on HBASE-13265 at 3/26/15 12:11 AM:
-----------------------------------------------------------------

{code}
 thrift -r -o test --gen cpp hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:275]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:278]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:291]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:294]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:308]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:313]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:321]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:324]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:335]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:338]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:341]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:344]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:352]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:360]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:363]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:374]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:377]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:389]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:392]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:403]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:406]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:409]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:412]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:420]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:425]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:428]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:433]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:436]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:446]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:449]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:459]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:477]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:490]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:493]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:504]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:507]
required keyword is ignored in argument lists.
Error: compiler error: Union field TMutation.put cannot be required or optional
{code}

That's the error I was getting before this patch.


was (Author: eclark):
{code}
 thrift -r -o test --gen cpp hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:275]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:278]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:291]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:294]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:308]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:313]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:321]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:324]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:335]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:338]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:341]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:344]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:352]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:360]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:363]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:374]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:377]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:389]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:392]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:403]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:406]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:409]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:412]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:420]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:425]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:428]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:433]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:436]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:446]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:449]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:459]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:477]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:490]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:493]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:504]
required keyword is ignored in argument lists.
[WARNING:/data/users/elliott/hbase/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift:507]
required keyword is ignored in argument lists.
Error: compiler error: Union field TMutation.put cannot be required or optional
{code}

> Make thrift2 usable from c++
> ----------------------------
>
>                 Key: HBASE-13265
>                 URL: https://issues.apache.org/jira/browse/HBASE-13265
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 2.0.0, 1.1.0
>            Reporter: Elliott Clark
>            Assignee: Elliott Clark
>         Attachments: HBASE-13265.patch
>
>
> Currently the c++ code generated from our thrift2 idl doesn't compile. Mostly this is
a naming issue for parameters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message