You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Saritha Ravi <Sa...@chacha.com> on 2011/10/06 04:48:14 UTC
Flume-HBase
Hi All,
I need to configure Flume with hbase in cloud. Could anyone help me with this. Is there a better documentation.
Does flume collector and and hbase master should be in the same cluster. I was able to configure hbase(master ,Zookeeper,region server using WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me the basic steps how I can configure these two in ec2 cloud.
Thanks,
Saritha.
Re: Help: Error with flume-hbase sink
Posted by Saritha Ravi <Sa...@chacha.com>.
I am using sudo wget
https://github.com/abaranau/flume-plugin-hbasesink-compiled/blob/master/flu
me-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
Still getting the same error...
On 10/10/11 1:32 PM, "Mingjie Lai" <mj...@gmail.com> wrote:
>``mvn package'' should work.
>
>On 10/10/2011 08:35 AM, AD wrote:
>> how do you build this plugin from source? mvn compile doesnt seem to
>> create the .jar, jut the .classes ?
>>
>> On Mon, Oct 10, 2011 at 3:29 AM, Alex Baranau <alex.baranov.v@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>> Weird. Jar seems good to me. Doing this:
>>
>> $ wget
>>
>>https://github.com/abaranau/flume-plugin-hbasesink-compiled/raw/master/fl
>>ume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
>> $ alex@alexpc:/tmp$ jar tf
>> flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
>> META-INF/
>> META-INF/MANIFEST.MF
>> com/
>> com/cloudera/
>> com/cloudera/flume/
>> com/cloudera/flume/hbase/
>> com/cloudera/flume/hbase/Attr2HBaseEventSink.class
>> com/cloudera/flume/hbase/HBaseSink$QualifierSpec.class
>> com/cloudera/flume/hbase/Attr2HBaseEventSink$1.class
>> com/cloudera/flume/hbase/HBaseSink.class
>> com/cloudera/flume/hbase/HBaseSink$1.class
>> META-INF/maven/
>> META-INF/maven/com.cloudera.flume.plugin/
>> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/
>>
>>META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.xml
>>
>>META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.prope
>>rties
>>
>> Is that were you got the file from?
>>
>> Anyhow, if that is OK, I'd suggest you to try to build the new one
>> from the flume sources if this one doesn't work for you. As a bonus
>>I
>> guess it has some minor improvements in there - no sure. Don't know
>>if
>> there any other place to download this jar without compiling...
>>
>> Alex Baranau
>> ----
>> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop -
>> HBase
>>
>> On Sun, Oct 9, 2011 at 11:03 AM, Eran Kutner <eran@gigya.com
>> <ma...@gigya.com>> wrote:
>> > Just place those JARs in the flume lib directory.
>> >
>> > -eran
>> >
>> >
>> >
>> > On Fri, Oct 7, 2011 at 21:27, Saritha Ravi
>> <Saritha.Ravi@chacha.com <ma...@chacha.com>> wrote:
>> >>
>> >> Hi All,
>> >>
>> >> >I am trying to configure flume-hbase sink in ec2 cloud.
>> >> >I have one flume-master,one flume-collector and one agent. I
>>added
>> >> >hbase-sink jar file from github on my collector and update the
>> >> >flume-site.xml file. Added flume-class path too.
>> >> >I am getting error saying hbase class not found exception for
>> these two
>> >> >files
>> >>
>> >> >
>>
>>>com.cloudera.flume.hbase.HBaseSink,com.cloudera.flume.hbase.Attr2HBaseEv
>>>en
>> >> >tSink
>> >> >When I try jar tf
>> >> >
>> >>
>> >>
>> >> jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
>> >> java.util.zip.ZipException: error in opening zip file
>> >> at java.util.zip.ZipFile.open(Native Method)
>> >> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>> >> at java.util.zip.ZipFile.<init>(ZipFile.java:88)
>> >> at sun.tools.jar.Main.list(Main.java:979)
>> >> at sun.tools.jar.Main.run(Main.java:224)
>> >> at sun.tools.jar.Main.main(Main.java:1149)
>> >>
>> >>
>> >> >Getting the below error could you please help me with this
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >Or can you please send me correct jar file
>> >> >
>> >> >Thanks,
>> >> >Saritha.
>> >> >
>> >>
>> >
>> >
>>
>>
>
Re: Help: Error with flume-hbase sink
Posted by Mingjie Lai <mj...@gmail.com>.
``mvn package'' should work.
On 10/10/2011 08:35 AM, AD wrote:
> how do you build this plugin from source? mvn compile doesnt seem to
> create the .jar, jut the .classes ?
>
> On Mon, Oct 10, 2011 at 3:29 AM, Alex Baranau <alex.baranov.v@gmail.com
> <ma...@gmail.com>> wrote:
>
> Weird. Jar seems good to me. Doing this:
>
> $ wget
> https://github.com/abaranau/flume-plugin-hbasesink-compiled/raw/master/flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> $ alex@alexpc:/tmp$ jar tf
> flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> META-INF/
> META-INF/MANIFEST.MF
> com/
> com/cloudera/
> com/cloudera/flume/
> com/cloudera/flume/hbase/
> com/cloudera/flume/hbase/Attr2HBaseEventSink.class
> com/cloudera/flume/hbase/HBaseSink$QualifierSpec.class
> com/cloudera/flume/hbase/Attr2HBaseEventSink$1.class
> com/cloudera/flume/hbase/HBaseSink.class
> com/cloudera/flume/hbase/HBaseSink$1.class
> META-INF/maven/
> META-INF/maven/com.cloudera.flume.plugin/
> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/
> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.xml
> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.properties
>
> Is that were you got the file from?
>
> Anyhow, if that is OK, I'd suggest you to try to build the new one
> from the flume sources if this one doesn't work for you. As a bonus I
> guess it has some minor improvements in there - no sure. Don't know if
> there any other place to download this jar without compiling...
>
> Alex Baranau
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop -
> HBase
>
> On Sun, Oct 9, 2011 at 11:03 AM, Eran Kutner <eran@gigya.com
> <ma...@gigya.com>> wrote:
> > Just place those JARs in the flume lib directory.
> >
> > -eran
> >
> >
> >
> > On Fri, Oct 7, 2011 at 21:27, Saritha Ravi
> <Saritha.Ravi@chacha.com <ma...@chacha.com>> wrote:
> >>
> >> Hi All,
> >>
> >> >I am trying to configure flume-hbase sink in ec2 cloud.
> >> >I have one flume-master,one flume-collector and one agent. I added
> >> >hbase-sink jar file from github on my collector and update the
> >> >flume-site.xml file. Added flume-class path too.
> >> >I am getting error saying hbase class not found exception for
> these two
> >> >files
> >>
> >> >
> >com.cloudera.flume.hbase.HBaseSink,com.cloudera.flume.hbase.Attr2HBaseEven
> >> >tSink
> >> >When I try jar tf
> >> >
> >>
> >>
> >> jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> >> java.util.zip.ZipException: error in opening zip file
> >> at java.util.zip.ZipFile.open(Native Method)
> >> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> >> at java.util.zip.ZipFile.<init>(ZipFile.java:88)
> >> at sun.tools.jar.Main.list(Main.java:979)
> >> at sun.tools.jar.Main.run(Main.java:224)
> >> at sun.tools.jar.Main.main(Main.java:1149)
> >>
> >>
> >> >Getting the below error could you please help me with this
> >> >
> >> >
> >> >
> >> >
> >> >Or can you please send me correct jar file
> >> >
> >> >Thanks,
> >> >Saritha.
> >> >
> >>
> >
> >
>
>
Re: Help: Error with flume-hbase sink
Posted by AD <st...@gmail.com>.
how do you build this plugin from source? mvn compile doesnt seem to create
the .jar, jut the .classes ?
On Mon, Oct 10, 2011 at 3:29 AM, Alex Baranau <al...@gmail.com>wrote:
> Weird. Jar seems good to me. Doing this:
>
> $ wget
> https://github.com/abaranau/flume-plugin-hbasesink-compiled/raw/master/flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> $ alex@alexpc:/tmp$ jar tf
> flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> META-INF/
> META-INF/MANIFEST.MF
> com/
> com/cloudera/
> com/cloudera/flume/
> com/cloudera/flume/hbase/
> com/cloudera/flume/hbase/Attr2HBaseEventSink.class
> com/cloudera/flume/hbase/HBaseSink$QualifierSpec.class
> com/cloudera/flume/hbase/Attr2HBaseEventSink$1.class
> com/cloudera/flume/hbase/HBaseSink.class
> com/cloudera/flume/hbase/HBaseSink$1.class
> META-INF/maven/
> META-INF/maven/com.cloudera.flume.plugin/
> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/
> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.xml
>
> META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.properties
>
> Is that were you got the file from?
>
> Anyhow, if that is OK, I'd suggest you to try to build the new one
> from the flume sources if this one doesn't work for you. As a bonus I
> guess it has some minor improvements in there - no sure. Don't know if
> there any other place to download this jar without compiling...
>
> Alex Baranau
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop - HBase
>
> On Sun, Oct 9, 2011 at 11:03 AM, Eran Kutner <er...@gigya.com> wrote:
> > Just place those JARs in the flume lib directory.
> >
> > -eran
> >
> >
> >
> > On Fri, Oct 7, 2011 at 21:27, Saritha Ravi <Sa...@chacha.com>
> wrote:
> >>
> >> Hi All,
> >>
> >> >I am trying to configure flume-hbase sink in ec2 cloud.
> >> >I have one flume-master,one flume-collector and one agent. I added
> >> >hbase-sink jar file from github on my collector and update the
> >> >flume-site.xml file. Added flume-class path too.
> >> >I am getting error saying hbase class not found exception for these two
> >> >files
> >>
> >> >
> >com.cloudera.flume.hbase.HBaseSink,com.cloudera.flume.hbase.Attr2HBaseEven
> >> >tSink
> >> >When I try jar tf
> >> >
> >>
> >>
> >> jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> >> java.util.zip.ZipException: error in opening zip file
> >> at java.util.zip.ZipFile.open(Native Method)
> >> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> >> at java.util.zip.ZipFile.<init>(ZipFile.java:88)
> >> at sun.tools.jar.Main.list(Main.java:979)
> >> at sun.tools.jar.Main.run(Main.java:224)
> >> at sun.tools.jar.Main.main(Main.java:1149)
> >>
> >>
> >> >Getting the below error could you please help me with this
> >> >
> >> >
> >> >
> >> >
> >> >Or can you please send me correct jar file
> >> >
> >> >Thanks,
> >> >Saritha.
> >> >
> >>
> >
> >
>
Re: Help: Error with flume-hbase sink
Posted by Alex Baranau <al...@gmail.com>.
Weird. Jar seems good to me. Doing this:
$ wget https://github.com/abaranau/flume-plugin-hbasesink-compiled/raw/master/flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
$ alex@alexpc:/tmp$ jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/cloudera/
com/cloudera/flume/
com/cloudera/flume/hbase/
com/cloudera/flume/hbase/Attr2HBaseEventSink.class
com/cloudera/flume/hbase/HBaseSink$QualifierSpec.class
com/cloudera/flume/hbase/Attr2HBaseEventSink$1.class
com/cloudera/flume/hbase/HBaseSink.class
com/cloudera/flume/hbase/HBaseSink$1.class
META-INF/maven/
META-INF/maven/com.cloudera.flume.plugin/
META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/
META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.xml
META-INF/maven/com.cloudera.flume.plugin/flume-plugin-hbasesink/pom.properties
Is that were you got the file from?
Anyhow, if that is OK, I'd suggest you to try to build the new one
from the flume sources if this one doesn't work for you. As a bonus I
guess it has some minor improvements in there - no sure. Don't know if
there any other place to download this jar without compiling...
Alex Baranau
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop - HBase
On Sun, Oct 9, 2011 at 11:03 AM, Eran Kutner <er...@gigya.com> wrote:
> Just place those JARs in the flume lib directory.
>
> -eran
>
>
>
> On Fri, Oct 7, 2011 at 21:27, Saritha Ravi <Sa...@chacha.com> wrote:
>>
>> Hi All,
>>
>> >I am trying to configure flume-hbase sink in ec2 cloud.
>> >I have one flume-master,one flume-collector and one agent. I added
>> >hbase-sink jar file from github on my collector and update the
>> >flume-site.xml file. Added flume-class path too.
>> >I am getting error saying hbase class not found exception for these two
>> >files
>>
>> > >com.cloudera.flume.hbase.HBaseSink,com.cloudera.flume.hbase.Attr2HBaseEven
>> >tSink
>> >When I try jar tf
>> >
>>
>>
>> jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
>> java.util.zip.ZipException: error in opening zip file
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:88)
>> at sun.tools.jar.Main.list(Main.java:979)
>> at sun.tools.jar.Main.run(Main.java:224)
>> at sun.tools.jar.Main.main(Main.java:1149)
>>
>>
>> >Getting the below error could you please help me with this
>> >
>> >
>> >
>> >
>> >Or can you please send me correct jar file
>> >
>> >Thanks,
>> >Saritha.
>> >
>>
>
>
Re: Help: Error with flume-hbase sink
Posted by Eran Kutner <er...@gigya.com>.
Just place those JARs in the flume lib directory.
-eran
On Fri, Oct 7, 2011 at 21:27, Saritha Ravi <Sa...@chacha.com> wrote:
> Hi All,
>
> >I am trying to configure flume-hbase sink in ec2 cloud.
> >I have one flume-master,one flume-collector and one agent. I added
> >hbase-sink jar file from github on my collector and update the
> >flume-site.xml file. Added flume-class path too.
> >I am getting error saying hbase class not found exception for these two
> >files
> >com.cloudera.flume.hbase.HBaseSink,com.cloudera.flume.hbase.Attr2HBaseEven
> >tSink
> >When I try jar tf
> >
>
>
> jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
> java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> at java.util.zip.ZipFile.<init>(ZipFile.java:88)
> at sun.tools.jar.Main.list(Main.java:979)
> at sun.tools.jar.Main.run(Main.java:224)
> at sun.tools.jar.Main.main(Main.java:1149)
>
>
> >Getting the below error could you please help me with this
> >
> >
> >
> >
> >Or can you please send me correct jar file
> >
> >Thanks,
> >Saritha.
> >
>
>
Help: Error with flume-hbase sink
Posted by Saritha Ravi <Sa...@chacha.com>.
Hi All,
>I am trying to configure flume-hbase sink in ec2 cloud.
>I have one flume-master,one flume-collector and one agent. I added
>hbase-sink jar file from github on my collector and update the
>flume-site.xml file. Added flume-class path too.
>I am getting error saying hbase class not found exception for these two
>files
>com.cloudera.flume.hbase.HBaseSink,com.cloudera.flume.hbase.Attr2HBaseEven
>tSink
>When I try jar tf
>
jar tf flume-plugin-hbasesink-0.9.5-SNAPSHOT-20110627.jar
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:88)
at sun.tools.jar.Main.list(Main.java:979)
at sun.tools.jar.Main.run(Main.java:224)
at sun.tools.jar.Main.main(Main.java:1149)
>Getting the below error could you please help me with this
>
>
>
>
>Or can you please send me correct jar file
>
>Thanks,
>Saritha.
>
Re: Flume-HBase
Posted by Saritha Ravi <Sa...@chacha.com>.
Thanks MingjieŠ.
On 10/6/11 5:03 PM, "Mingjie Lai" <mj...@gmail.com> wrote:
> > You mentioned the collector needs to have direct connection to all
>region
> > servers and master..
> > Could you help me how I can do that.
>
>If you're deploying the nodes at ec2, you don't really need to worry
>about it. The ec2 default security group should allow full connection
>between all nodes which you bring up.
>
>The thing I was talking about is to avoid firewall/vlan blocking ports
>between your flume collector and hbase region servers (which occurs in
>our data center for cluster isolation). Again, I don't think you need to
>worry about it right now.
>
> > I already have hbase and flume master as well as flume collector all
>are
> > different machine I need to link all these together but don't know
>how...
>
>Here is a simple step-by-step example.
>
>1. flume collector: make sure it can access hbase
>
>2. and create a hbaes table, here are some shell scripts:
>$ cat > /tmp/test/list <<EOF
> > list
> > exit
> > EOF
>$ hbase shell /tmp/test/list
>TABLE
>
>0 row(s) in 0.5820 seconds
>
>$ cat > /tmp/test/table <<EOF
> > create 't1', 'c1','c2'
> > exit
> > EOF
>
>$ hbase shell /tmp/test/table
>0 row(s) in 1.7270 seconds
>
>$ hbase shell /tmp/test/list
>TABLE
>
>t1
>
>1 row(s) in 0.4770 seconds
>
>3. copy hbase-site.xml to /usr/lib/flume/conf/ (assume you're using cdh
>flume)
>
>4. copy hbase.jar to /usr/lib/flume/lib/
>
>5. try flume collector to write to hbase
>$ /usr/lib/flume/bin/flume node_nowatch -1 -s -n n1 \
>-c 'n1: tail("/tmp/test/list") | hbase ("t1", "%s", "c1", "", "%S",
>"c2", "", "%{body}");'
>
>6. scan hbase
>$ cat > /tmp/test/scan <<EOF
> > scan 't1'
> > exit
> > EOF
>$ bin/hbase shell /tmp/test/scan
>ROW COLUMN+CELL
> 1317934401 column=c1:, timestamp=1317934402446,
>value=21
> 1317934401 column=c2:, timestamp=1317934402446,
>value=list
> 1317934402 column=c1:, timestamp=1317934402451,
>value=22
> 1317934402 column=c2:, timestamp=1317934402451,
>value=exit
>2 row(s) in 0.5540 seconds
>
>After running it, you can make sure your collector can talk to hbase.
>And you can use your master to configure the collector. Please follow
>Otis's link for detail info.
>
>
>On 10/06/2011 06:34 AM, Saritha Ravi wrote:
>> Hi Mingjie,
>> Good Morning...
>> Thanks for your response.
>> I would like use default hbase sink I downloaded from
>> https://github.com/cloudera/flume/tree/master/plugins/(placed the
>> hbase-sink.jar in flume-home/lib and updated the flume-site.xml)
>> You mentioned the collector needs to have direct connection to all
>>region
>> servers and master..
>> Could you help me how I can do that.
>>
>> I already have hbase and flume master as well as flume collector all are
>> different machine I need to link all these together but don't know
>>how...
>>
>> Thanks,
>> Saritha.
>>
>> On 10/6/11 2:37 AM, "Mingjie Lai"<mj...@gmail.com> wrote:
>>
>>>> Does flume collector and and hbase master should be in the same
>>> cluster.
>>>
>>> In your case, the flume collector will be writing data to hbase as a
>>> regular hbase client. So it needs to access hbase thru either, 1) hbase
>>> java api, or 2) hbase rest/thrift gateway. If you want to use the
>>> default hbase sink (which uses java api), the collector need to have
>>> direct connection to all region servers and master.
>>>
>>> On the other hand, you can also build your own new hbase REST/thrift
>>> sink. And in this case, the collector only needs to talk to the REST
>>> gateway.
>>>
>>>> Can anyone suggest me
>>>> the basic steps how I can configure these two in ec2 cloud.
>>>
>>> I don't quite understand your question. Sounds like you've already had
>>> hbase, then you can just have some extra machines for flume nodes,
>>> master, etc.
>>>
>>> -mingjie
>>>
>>> On 10/05/2011 07:48 PM, Saritha Ravi wrote:
>>>> Hi All,
>>>>
>>>> I need to configure Flume with hbase in cloud. Could anyone help me
>>>>with
>>>> this. Is there a better documentation.
>>>> Does flume collector and and hbase master should be in the same
>>>>cluster.
>>>> I was able to configure hbase(master ,Zookeeper,region server using
>>>> WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me
>>>> the basic steps how I can configure these two in ec2 cloud.
>>>>
>>>> Thanks,
>>>> Saritha.
>>>>
>>>> *
>>>> *
>>>
>>
>
Re: Flume-HBase
Posted by Mingjie Lai <mj...@gmail.com>.
> You mentioned the collector needs to have direct connection to all region
> servers and master..
> Could you help me how I can do that.
If you're deploying the nodes at ec2, you don't really need to worry
about it. The ec2 default security group should allow full connection
between all nodes which you bring up.
The thing I was talking about is to avoid firewall/vlan blocking ports
between your flume collector and hbase region servers (which occurs in
our data center for cluster isolation). Again, I don't think you need to
worry about it right now.
> I already have hbase and flume master as well as flume collector all are
> different machine I need to link all these together but don't know how...
Here is a simple step-by-step example.
1. flume collector: make sure it can access hbase
2. and create a hbaes table, here are some shell scripts:
$ cat > /tmp/test/list <<EOF
> list
> exit
> EOF
$ hbase shell /tmp/test/list
TABLE
0 row(s) in 0.5820 seconds
$ cat > /tmp/test/table <<EOF
> create 't1', 'c1','c2'
> exit
> EOF
$ hbase shell /tmp/test/table
0 row(s) in 1.7270 seconds
$ hbase shell /tmp/test/list
TABLE
t1
1 row(s) in 0.4770 seconds
3. copy hbase-site.xml to /usr/lib/flume/conf/ (assume you're using cdh
flume)
4. copy hbase.jar to /usr/lib/flume/lib/
5. try flume collector to write to hbase
$ /usr/lib/flume/bin/flume node_nowatch -1 -s -n n1 \
-c 'n1: tail("/tmp/test/list") | hbase ("t1", "%s", "c1", "", "%S",
"c2", "", "%{body}");'
6. scan hbase
$ cat > /tmp/test/scan <<EOF
> scan 't1'
> exit
> EOF
$ bin/hbase shell /tmp/test/scan
ROW COLUMN+CELL
1317934401 column=c1:, timestamp=1317934402446, value=21
1317934401 column=c2:, timestamp=1317934402446,
value=list
1317934402 column=c1:, timestamp=1317934402451, value=22
1317934402 column=c2:, timestamp=1317934402451,
value=exit
2 row(s) in 0.5540 seconds
After running it, you can make sure your collector can talk to hbase.
And you can use your master to configure the collector. Please follow
Otis's link for detail info.
On 10/06/2011 06:34 AM, Saritha Ravi wrote:
> Hi Mingjie,
> Good Morning...
> Thanks for your response.
> I would like use default hbase sink I downloaded from
> https://github.com/cloudera/flume/tree/master/plugins/(placed the
> hbase-sink.jar in flume-home/lib and updated the flume-site.xml)
> You mentioned the collector needs to have direct connection to all region
> servers and master..
> Could you help me how I can do that.
>
> I already have hbase and flume master as well as flume collector all are
> different machine I need to link all these together but don't know how...
>
> Thanks,
> Saritha.
>
> On 10/6/11 2:37 AM, "Mingjie Lai"<mj...@gmail.com> wrote:
>
>>> Does flume collector and and hbase master should be in the same
>> cluster.
>>
>> In your case, the flume collector will be writing data to hbase as a
>> regular hbase client. So it needs to access hbase thru either, 1) hbase
>> java api, or 2) hbase rest/thrift gateway. If you want to use the
>> default hbase sink (which uses java api), the collector need to have
>> direct connection to all region servers and master.
>>
>> On the other hand, you can also build your own new hbase REST/thrift
>> sink. And in this case, the collector only needs to talk to the REST
>> gateway.
>>
>>> Can anyone suggest me
>>> the basic steps how I can configure these two in ec2 cloud.
>>
>> I don't quite understand your question. Sounds like you've already had
>> hbase, then you can just have some extra machines for flume nodes,
>> master, etc.
>>
>> -mingjie
>>
>> On 10/05/2011 07:48 PM, Saritha Ravi wrote:
>>> Hi All,
>>>
>>> I need to configure Flume with hbase in cloud. Could anyone help me with
>>> this. Is there a better documentation.
>>> Does flume collector and and hbase master should be in the same cluster.
>>> I was able to configure hbase(master ,Zookeeper,region server using
>>> WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me
>>> the basic steps how I can configure these two in ec2 cloud.
>>>
>>> Thanks,
>>> Saritha.
>>>
>>> *
>>> *
>>
>
Re: Flume-HBase
Posted by Saritha Ravi <Sa...@chacha.com>.
Hi Mingjie,
Good Morning...
Thanks for your response.
I would like use default hbase sink I downloaded from
https://github.com/cloudera/flume/tree/master/plugins/(placed the
hbase-sink.jar in flume-home/lib and updated the flume-site.xml)
You mentioned the collector needs to have direct connection to all region
servers and master..
Could you help me how I can do that.
I already have hbase and flume master as well as flume collector all are
different machine I need to link all these together but don't know how...
Thanks,
Saritha.
On 10/6/11 2:37 AM, "Mingjie Lai" <mj...@gmail.com> wrote:
> > Does flume collector and and hbase master should be in the same
>cluster.
>
>In your case, the flume collector will be writing data to hbase as a
>regular hbase client. So it needs to access hbase thru either, 1) hbase
>java api, or 2) hbase rest/thrift gateway. If you want to use the
>default hbase sink (which uses java api), the collector need to have
>direct connection to all region servers and master.
>
>On the other hand, you can also build your own new hbase REST/thrift
>sink. And in this case, the collector only needs to talk to the REST
>gateway.
>
> > Can anyone suggest me
> > the basic steps how I can configure these two in ec2 cloud.
>
>I don't quite understand your question. Sounds like you've already had
>hbase, then you can just have some extra machines for flume nodes,
>master, etc.
>
>-mingjie
>
>On 10/05/2011 07:48 PM, Saritha Ravi wrote:
>> Hi All,
>>
>> I need to configure Flume with hbase in cloud. Could anyone help me with
>> this. Is there a better documentation.
>> Does flume collector and and hbase master should be in the same cluster.
>> I was able to configure hbase(master ,Zookeeper,region server using
>> WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me
>> the basic steps how I can configure these two in ec2 cloud.
>>
>> Thanks,
>> Saritha.
>>
>> *
>> *
>
Re: Flume-HBase
Posted by Mingjie Lai <mj...@gmail.com>.
> Does flume collector and and hbase master should be in the same cluster.
In your case, the flume collector will be writing data to hbase as a
regular hbase client. So it needs to access hbase thru either, 1) hbase
java api, or 2) hbase rest/thrift gateway. If you want to use the
default hbase sink (which uses java api), the collector need to have
direct connection to all region servers and master.
On the other hand, you can also build your own new hbase REST/thrift
sink. And in this case, the collector only needs to talk to the REST
gateway.
> Can anyone suggest me
> the basic steps how I can configure these two in ec2 cloud.
I don't quite understand your question. Sounds like you've already had
hbase, then you can just have some extra machines for flume nodes,
master, etc.
-mingjie
On 10/05/2011 07:48 PM, Saritha Ravi wrote:
> Hi All,
>
> I need to configure Flume with hbase in cloud. Could anyone help me with
> this. Is there a better documentation.
> Does flume collector and and hbase master should be in the same cluster.
> I was able to configure hbase(master ,Zookeeper,region server using
> WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me
> the basic steps how I can configure these two in ec2 cloud.
>
> Thanks,
> Saritha.
>
> *
> *
Re: Flume-HBase
Posted by Mingjie Lai <mj...@gmail.com>.
Yes. You need to place the plugin jar to both master and nodes. Master
does validate a plugin configure by loading the classes. That's my
observation, and it really makes sense.
-mingjie
On 10/10/2011 01:03 AM, Alex Baranau wrote:
> I believe you need jar to be placed on node with
> * collector<- for sure!
> * master<- I think that master performs some validation when you use
> it to configure flume nodes, hence it should be aware of the new sink.
> Not that sure though.
>
> Alex Baranau
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop - HBase
>
> On Thu, Oct 6, 2011 at 11:23 PM, Saritha Ravi<Sa...@chacha.com> wrote:
>> Hi Otis,
>> Thanks for your reply,
>> I am following setup instructions from the below link, do I have to update
>> flume-site.xml and other configs in master,collector as well as agent
>> machines.
>> Thanks,
>> Saritha.
>> From: Otis Gospodnetic<ot...@yahoo.com>
>> Reply-To: "flume-user@incubator.apache.org"
>> <fl...@incubator.apache.org>, Otis Gospodnetic
>> <ot...@yahoo.com>
>> Date: Thu, 6 Oct 2011 13:18:22 -0700
>> To: "flume-user@incubator.apache.org"<fl...@incubator.apache.org>
>> Subject: Re: Flume-HBase
>>
>> Saritha,
>> Have a look
>> at http://blog.sematext.com/2011/07/28/flume-and-hbase-integration/
>> Otis
>> ----
>> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
>> Lucene ecosystem search :: http://search-lucene.com/
>>
>> ________________________________
>> From: Saritha Ravi<Sa...@chacha.com>
>> To: "flume-user@incubator.apache.org"<fl...@incubator.apache.org>
>> Cc: Flume Development<fl...@incubator.apache.org>
>> Sent: Wednesday, October 5, 2011 10:48 PM
>> Subject: Flume-HBase
>>
>> Hi All,
>> I need to configure Flume with hbase in cloud. Could anyone help me with
>> this. Is there a better documentation.
>> Does flume collector and and hbase master should be in the same cluster. I
>> was able to configure hbase(master ,Zookeeper,region server using WHIRR) and
>> flume(Master , collector) from CDH3. Can anyone suggest me the basic steps
>> how I can configure these two in ec2 cloud.
>> Thanks,
>> Saritha.
>>
>>
>>
>>
>
Re: Flume-HBase
Posted by Alex Baranau <al...@gmail.com>.
I believe you need jar to be placed on node with
* collector <- for sure!
* master <- I think that master performs some validation when you use
it to configure flume nodes, hence it should be aware of the new sink.
Not that sure though.
Alex Baranau
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop - HBase
On Thu, Oct 6, 2011 at 11:23 PM, Saritha Ravi <Sa...@chacha.com> wrote:
> Hi Otis,
> Thanks for your reply,
> I am following setup instructions from the below link, do I have to update
> flume-site.xml and other configs in master,collector as well as agent
> machines.
> Thanks,
> Saritha.
> From: Otis Gospodnetic <ot...@yahoo.com>
> Reply-To: "flume-user@incubator.apache.org"
> <fl...@incubator.apache.org>, Otis Gospodnetic
> <ot...@yahoo.com>
> Date: Thu, 6 Oct 2011 13:18:22 -0700
> To: "flume-user@incubator.apache.org" <fl...@incubator.apache.org>
> Subject: Re: Flume-HBase
>
> Saritha,
> Have a look
> at http://blog.sematext.com/2011/07/28/flume-and-hbase-integration/
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
> ________________________________
> From: Saritha Ravi <Sa...@chacha.com>
> To: "flume-user@incubator.apache.org" <fl...@incubator.apache.org>
> Cc: Flume Development <fl...@incubator.apache.org>
> Sent: Wednesday, October 5, 2011 10:48 PM
> Subject: Flume-HBase
>
> Hi All,
> I need to configure Flume with hbase in cloud. Could anyone help me with
> this. Is there a better documentation.
> Does flume collector and and hbase master should be in the same cluster. I
> was able to configure hbase(master ,Zookeeper,region server using WHIRR) and
> flume(Master , collector) from CDH3. Can anyone suggest me the basic steps
> how I can configure these two in ec2 cloud.
> Thanks,
> Saritha.
>
>
>
>
Re: Flume-HBase
Posted by Mingjie Lai <mj...@gmail.com>.
Saritha.
I think all configures + binaries are expected to be the same for all
nodes, to avoid potential in-sync between different nodes.
On 10/06/2011 01:23 PM, Saritha Ravi wrote:
> Hi Otis,
>
> Thanks for your reply,
> I am following setup instructions from the below link, do I have to
> update flume-site.xml and other configs in master,collector as well as
> agent machines.
>
> Thanks,
> Saritha.
>
> From: Otis Gospodnetic <otis_gospodnetic@yahoo.com
> <ma...@yahoo.com>>
> Reply-To: "flume-user@incubator.apache.org
> <ma...@incubator.apache.org>"
> <flume-user@incubator.apache.org
> <ma...@incubator.apache.org>>, Otis Gospodnetic
> <otis_gospodnetic@yahoo.com <ma...@yahoo.com>>
> Date: Thu, 6 Oct 2011 13:18:22 -0700
> To: "flume-user@incubator.apache.org
> <ma...@incubator.apache.org>"
> <flume-user@incubator.apache.org <ma...@incubator.apache.org>>
> Subject: Re: Flume-HBase
>
> Saritha,
>
> Have a look at
> http://blog.sematext.com/2011/07/28/flume-and-hbase-integration/
>
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
> ------------------------------------------------------------------------
> *From:* Saritha Ravi <Saritha.Ravi@chacha.com
> <ma...@chacha.com>>
> *To:* "flume-user@incubator.apache.org
> <ma...@incubator.apache.org>"
> <flume-user@incubator.apache.org
> <ma...@incubator.apache.org>>
> *Cc:* Flume Development <flume-dev@incubator.apache.org
> <ma...@incubator.apache.org>>
> *Sent:* Wednesday, October 5, 2011 10:48 PM
> *Subject:* Flume-HBase
>
> Hi All,
>
> I need to configure Flume with hbase in cloud. Could anyone help me
> with this. Is there a better documentation.
> Does flume collector and and hbase master should be in the same
> cluster. I was able to configure hbase(master ,Zookeeper,region
> server using WHIRR) and flume(Master , collector) from CDH3. Can
> anyone suggest me the basic steps how I can configure these two in
> ec2 cloud.
>
> Thanks,
> Saritha.
>
> *
> *
>
>
Re: Flume-HBase
Posted by Saritha Ravi <Sa...@chacha.com>.
Hi Otis,
Thanks for your reply,
I am following setup instructions from the below link, do I have to update flume-site.xml and other configs in master,collector as well as agent machines.
Thanks,
Saritha.
From: Otis Gospodnetic <ot...@yahoo.com>>
Reply-To: "flume-user@incubator.apache.org<ma...@incubator.apache.org>" <fl...@incubator.apache.org>>, Otis Gospodnetic <ot...@yahoo.com>>
Date: Thu, 6 Oct 2011 13:18:22 -0700
To: "flume-user@incubator.apache.org<ma...@incubator.apache.org>" <fl...@incubator.apache.org>>
Subject: Re: Flume-HBase
Saritha,
Have a look at http://blog.sematext.com/2011/07/28/flume-and-hbase-integration/
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
________________________________
From: Saritha Ravi <Sa...@chacha.com>>
To: "flume-user@incubator.apache.org<ma...@incubator.apache.org>" <fl...@incubator.apache.org>>
Cc: Flume Development <fl...@incubator.apache.org>>
Sent: Wednesday, October 5, 2011 10:48 PM
Subject: Flume-HBase
Hi All,
I need to configure Flume with hbase in cloud. Could anyone help me with this. Is there a better documentation.
Does flume collector and and hbase master should be in the same cluster. I was able to configure hbase(master ,Zookeeper,region server using WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me the basic steps how I can configure these two in ec2 cloud.
Thanks,
Saritha.
Re: Flume-HBase
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Saritha,
Have a look at http://blog.sematext.com/2011/07/28/flume-and-hbase-integration/
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
>________________________________
>From: Saritha Ravi <Sa...@chacha.com>
>To: "flume-user@incubator.apache.org" <fl...@incubator.apache.org>
>Cc: Flume Development <fl...@incubator.apache.org>
>Sent: Wednesday, October 5, 2011 10:48 PM
>Subject: Flume-HBase
>
>
>Hi All,
>
>
>I need to configure Flume with hbase in cloud. Could anyone help me with this. Is there a better documentation.
>Does flume collector and and hbase master should be in the same cluster. I was able to configure hbase(master ,Zookeeper,region server using WHIRR) and flume(Master , collector) from CDH3. Can anyone suggest me the basic steps how I can configure these two in ec2 cloud.
>
>
>Thanks,
>Saritha.
>
>
>
>
>