
spark
normal_moon
个人理解,仅供参考
展开
-
python代码提交到spark集群并设定定时任务
一、启动thrift 因为用到了happybase,需要先在服务器上上启动thrift服务, 关闭终端thrift继续运行命令如下: nohup hbase thrift -p 9090 start 二、linux从本地安装python库 以thriftpy为例 解压 tar zxvf thriftpy-0.3.9.tar.gz 回到当前目录 cd thriftpy-0.3.9 编译 pyth...原创 2018-09-30 15:38:19 · 4263 阅读 · 0 评论 -
happybase的使用
一、启动thrift 因为用到了happybase,需要先在服务器上启动thrift服务, 关闭终端thrift继续运行命令如下: nohup hbase thrift -p 9090 start 二、读取hbase的代码 class GetHbase(object): def __init__(self, hostname,table_name,start_date): ...原创 2018-09-30 15:42:28 · 2278 阅读 · 0 评论