Thrift 0.9.0未在ubuntu 14上生成python代码
使用Ambari 2.2.2.0(HDP 2.4.2.0-258),其中包含HBASE 1.1.2.2.4.2.0-258 更新为早期版本的HBase开发的python客户端 使用Thrift 0.9.0,无论是Thrift 0.9.0未在ubuntu 14上生成python代码,python,ubuntu,hbase,thrift,ambari,Python,Ubuntu,Hbase,Thrift,Ambari,使用Ambari 2.2.2.0(HDP 2.4.2.0-258),其中包含HBASE 1.1.2.2.4.2.0-258 更新为早期版本的HBase开发的python客户端 使用Thrift 0.9.0,无论是hbase1.Thrift还是hbase2.Thrift都不会为python生成gen py目录(或任何内容): hadoop1:/usr/hdp/2.4.2.0-258/hbase/include/thrift$ thrift -verbose --gen py /usr/hdp/2.
hbase1.Thrift
还是hbase2.Thrift
都不会为python生成gen py
目录(或任何内容):
hadoop1:/usr/hdp/2.4.2.0-258/hbase/include/thrift$ thrift -verbose --gen py /usr/hdp/2.4.2.0-258/hbase/include/thrift/hbase2.thrift
Scanning /usr/hdp/2.4.2.0-258/hbase/include/thrift/hbase2.thrift for includes
Parsing /usr/hdp/2.4.2.0-258/hbase/include/thrift/hbase2.thrift for types
Program: /usr/hdp/2.4.2.0-258/hbase/include/thrift/hbase2.thrift
Generating "py"
我已经安装了python 2.7.6
我做错了什么?这要归功于Josh Elser@Hortonworks的解决方案。。。用户必须具有在“/usr/hdp/2.4.2.0-258/hbase/include/thrift”中创建目录的权限。切换到用户可写的目录并重新运行命令解决了问题。