flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingjie Lai <mjla...@gmail.com>
Subject Re: Error: Flume-hBase sink
Date Thu, 13 Oct 2011 18:32:48 GMT
Do you have hbase setup correctly? Can you can use hbase shell to 
put/get data to hbase at the flume collector?

If you can access your hbase from the flume collector, make sure you 
copied the hbase-site.xml to the flume configure directory. If you use cdh:
# cp /usr/lib/hbase/conf/hbase-site.xml /usr/lib/flume/conf/

-mingjie

On 10/12/2011 12:57 PM, Saritha Ravi wrote:
> Hi All,
>
> I am getting zookeeper error with attr2hbase sink and hbase sink
>
> I am trying to configure attr2hbase vi config page in http://<Flume
> <http://<Flume> master Ip>:35871/flumeconfig.jsp
>
> In collector:
>
> Source :
> tail("/var/log/flume/flume-flume-node_nowatch-domU-12-31-39-0A-06-14.log")
>
> Sink : regexAll("(w+)s+(w+)", "colname","value")
> value("2hb_","%{colname}%s", escape=true) value("2hb_stat:value",
> "%{value}", escape=true) attr2hbase("test","system","body:contents")]
>
> Getting below error
>
> 2011-10-12 19:50:08,176 INFO org.apache.zookeeper.ZooKeeper: Initiating
> client connection, connectString=ip-10-40-69-251.ec2.internal:2181
> sessionTimeout=1200000 watcher=hconnection
> 2011-10-12 19:50:08,177 INFO org.apache.zookeeper.ClientCnxn: Opening
> socket connection to server ip-10-40-69-251.ec2.internal/10.40.69.251:2181
> 2011-10-12 19:50:29,211 WARN org.apache.zookeeper.ClientCnxn: Session
> 0x0 for server null, unexpected error, closing socket connection and
> attempting reconnect
> java.net.ConnectException: Connection timed out
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
> 2011-10-12 19:50:30,592 INFO org.apache.zookeeper.ClientCnxn: Opening
> socket connection to server ip-10-40-69-251.ec2.internal/10.40.69.251:2181
> 2011-10-12 19:50:51,753 INFO org.apache.zookeeper.ZooKeeper: Session:
> 0x0 closed
> 2011-10-12 19:50:51,753 INFO org.apache.zookeeper.ClientCnxn:
> EventThread shut down
>
>
> Please help
>
> Thanks,
> Saritha.

Mime
View raw message