官网:http://thrift.apache.org/

1.下载windows版本thrift:http://www.apache.org/dyn/closer.cgi?path=/thrift/0.12.0/thrift-0.12.0.exe

2.配置环境变量:将thrift-0.12.0.exe重命名为thrift.exe(有版本号环境变量配置无效)放到C:\thrift,系统环境变量path中添加C:\thrift,

命令行查看版本:thrift -version

3.切换到.thrift目录,编译文件:

E:\workspace\presto-twitter-master\twitter-eventlistener-plugin\src\main\thrift>thrift --gen java presto.thrift

然后将编译后的文件放到想要的目录中

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐