thrift安装见上一个博客
由于项目需要,通过C传数据进Hbase,发现可以通过thrift实现
进入hbase目录开启thrift2服务(若需要,注意切换用户)
cd /home/hadoop/hbase-2.0.5/bin
[hadoop@master bin]$ hbase-daemon.sh start thrift2
出现错误,通过日志查看报错信息
vim /home/hadoop/hbase-2.0.5/logs/hbase-hadoop-thrift2-master.out
原因
Caused by: java.net.BindException: 地址已在使用
查看是哪个占用,但发现是hadoop的进程。。。。
netstat -ntlp | grep 9095
t