Get addColumn + ColumnRangeFilter
Hi, I have a situation that both Get.addColumn() and Get.setFilter(new ColumnRangeFilter(…)) needed to Get. The source code snippet is as follows: Get g = new Get(getRowKey(lfileId)); g.addColumn(Schema.ColumnFamilyNameBytes, MetaColumnNameBytes); g.setFilter(new ColumnRangeFilter(Bytes.toBytes(name), false, Bytes.toBytes(name + "~"), false)); Result r = table.get(g); if (r.isEmpty()) throw new FileNotFoundException( String.format("%d:%d:%s", projectId, lfileId, name)); When g.addColumn() is commented out, the Result is not empty, while with g.addColumn the Result is empty(FileNotFoundException is thrown). Is it illegal to use both methods? BTW, ther version of HBase used is 0.98. (Hortonworks HDP 2.1) Thanks.
Re: 404 for hbase book
Should be fixed thanks to Sean Busbey! Thanks for your patience. On Wednesday, January 14, 2015, Dima Spivak wrote: > The issues are known and being worked on. :) > > -Dima > > On Wed, Jan 14, 2015 at 10:24 AM, Elliott Clark > wrote: > > > I'm seeing 404's too. I'm seeing them going to just about anything book > > related from the front page, not from google. > > > > * Go to hbase.apache.org > > * click on documentation > > * Click on ref-guide multi-page and it goes to > > http://hbase.apache.org/book/book.html > > * 404 > > > > > > * go to hbase.apache.org > > * click on Apache HBase Reference Guide FAQ > > * it goes to http://hbase.apache.org/book/faq.html > > * 404 > > > > > > * go to hbase.apache.org > > * click on Architecture Overview > > * it goes to > http://hbase.apache.org/book/architecture.html#arch.overview > > * 404 > > > > On Wed, Jan 14, 2015 at 8:48 AM, anil gupta > wrote: > > > > > That was one of the example url with 404. I have been getting many > links > > > like that. Hopefully, the crawling happens quickly.. because its > leading > > to > > > slightly unfavorable user experience. > > > > > > On Wed, Jan 14, 2015 at 7:30 AM, Ted Yu > wrote: > > > > > > > Anil: > > > > This link corresponds to the one you posted: > > > > http://hbase.apache.org/book#important_configurations > > > > > > > > Google will ultimately crawl the new hbase book and correct the > search > > > > results :-) > > > > > > > > On Wed, Jan 14, 2015 at 5:26 AM, anil gupta > > > > wrote: > > > > > > > > > I am also getting 404's on HBase links that come up on Google: > > > > > http://hbase.apache.org/book/important_configurations.html > > > > > Are we going to make these links work again? > > > > > > > > > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin > > > > > wrote: > > > > > > > > > > > I guess it's because the hbase book has been updated to use > > asciidoc > > > > > > format, and google need some time to catch up with it. Try this > > one: > > > > > > http://hbase.apache.org/book#datamodel . > > > > > > > > > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > > > > > serega.shey...@gmail.com > > > > > > > wrote: > > > > > > > > > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > > > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > > > Looks like links hasn't been reindexed? > > > > > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > > > > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin >: > > > > > > > > > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > > > > > serega.shey...@gmail.com > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on > ony > > > page > > > > > of > > > > > > > > > http://hbase.apache.org > > > > > > > > > what it could be? > > > > > > > > > Sorry for stupid question. I've tried several providers, no > > > luck > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Thanks & Regards, > > > > > Anil Gupta > > > > > > > > > > > > > > > > > > > > > -- > > > Thanks & Regards, > > > Anil Gupta > > > > > >
Re: 404 on getting started
Should be fixed thanks to Sean Busbey! Thanks for your patience. On Wednesday, January 14, 2015, Andrew Purtell wrote: > Thanks. It's a known issue that we are working to resolve. Sorry about the > flub. > > > On Wed, Jan 14, 2015 at 10:40 AM, Glenn, James > wrote: > > > FYI: > > The links from hbase.apache.org to the book (documentation) are not > > correct or working. > > -Jim > > > > > > > -- > Best regards, > >- Andy > > Problems worthy of attack prove their worth by hitting back. - Piet Hein > (via Tom White) >
Re: Show last 10 (100/1000) events
no it would be 10/100/1 1 is absolute limit. I understand that simple threadsafe java collection can handle this. 2015-01-14 22:17 GMT+03:00 Serega Sheypak : > Ok, I got it, thanks. > > 2015-01-14 19:22 GMT+03:00 Wilm Schumacher : > >> Will the number of "last" will be much larger than 10 (100/1000)? >> >> If not, then I wouldn't bother with a real database after all and would >> hold the data in RAM. >> >> Either: >> * in an object in your "gateway" to hbase. E.g. simple java Array list >> in your java server which serves the api to the web servers. This would >> be super easy and super fast >> >> Or: >> * in-memory-db like redis if you haven't something like above >> >> Or you redisgn your datamodel to something timestamp based. Then it's a >> scan. >> >> Best wishes, >> >> Wilm >> >> Am 14.01.2015 um 16:51 schrieb Serega Sheypak: >> > Hi, I have event-processing system which uses hbase + a pack of tomcat >> > web-apps as front-end. >> > tomcat web-apps are similar and used for front-end load-balancing. >> > tomcat apps write events to hbase. >> > >> > What is good pattern to show last 10/100/1000 events? >> > events table schema is: >> > row_key=user_id >> > each user_id has 128 versions. So I keep history for the last 128 user >> > events. >> > >> > There is no way to get last events, I can get last event only for >> concrete >> > user. >> > >> > I had an idea to create separate table named 'last_events' >> > and force all tomcats write there copy of event with the same key and >> set >> > versions count to 1000. >> > HBase would automatically delete old events. >> > Drawbacks are: >> > 1. x2 traffic >> > 2. x2 write ops on hbase to single region >> > >> > Solution is bad. >> > Are they any good patterns to resolve such problem. The other option is >> to >> > use some kind of memcache or stuff like that. >> > >> >> >
Re: Show last 10 (100/1000) events
Ok, I got it, thanks. 2015-01-14 19:22 GMT+03:00 Wilm Schumacher : > Will the number of "last" will be much larger than 10 (100/1000)? > > If not, then I wouldn't bother with a real database after all and would > hold the data in RAM. > > Either: > * in an object in your "gateway" to hbase. E.g. simple java Array list > in your java server which serves the api to the web servers. This would > be super easy and super fast > > Or: > * in-memory-db like redis if you haven't something like above > > Or you redisgn your datamodel to something timestamp based. Then it's a > scan. > > Best wishes, > > Wilm > > Am 14.01.2015 um 16:51 schrieb Serega Sheypak: > > Hi, I have event-processing system which uses hbase + a pack of tomcat > > web-apps as front-end. > > tomcat web-apps are similar and used for front-end load-balancing. > > tomcat apps write events to hbase. > > > > What is good pattern to show last 10/100/1000 events? > > events table schema is: > > row_key=user_id > > each user_id has 128 versions. So I keep history for the last 128 user > > events. > > > > There is no way to get last events, I can get last event only for > concrete > > user. > > > > I had an idea to create separate table named 'last_events' > > and force all tomcats write there copy of event with the same key and set > > versions count to 1000. > > HBase would automatically delete old events. > > Drawbacks are: > > 1. x2 traffic > > 2. x2 write ops on hbase to single region > > > > Solution is bad. > > Are they any good patterns to resolve such problem. The other option is > to > > use some kind of memcache or stuff like that. > > > >
Re: 404 on getting started
Thanks. It's a known issue that we are working to resolve. Sorry about the flub. On Wed, Jan 14, 2015 at 10:40 AM, Glenn, James wrote: > FYI: > The links from hbase.apache.org to the book (documentation) are not > correct or working. > -Jim > > -- Best regards, - Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)
404 on getting started
FYI: The links from hbase.apache.org to the book (documentation) are not correct or working. -Jim
Re: 404 for hbase book
+Misty, who had talked about setting up an .htaccess file so that old links will redirect. On Wed, Jan 14, 2015 at 10:24 AM, Elliott Clark wrote: > I'm seeing 404's too. I'm seeing them going to just about anything book > related from the front page, not from google. > > * Go to hbase.apache.org > * click on documentation > * Click on ref-guide multi-page and it goes to > http://hbase.apache.org/book/book.html > * 404 > > > * go to hbase.apache.org > * click on Apache HBase Reference Guide FAQ > * it goes to http://hbase.apache.org/book/faq.html > * 404 > > > * go to hbase.apache.org > * click on Architecture Overview > * it goes to http://hbase.apache.org/book/architecture.html#arch.overview > * 404 > > On Wed, Jan 14, 2015 at 8:48 AM, anil gupta wrote: > > > That was one of the example url with 404. I have been getting many links > > like that. Hopefully, the crawling happens quickly.. because its leading > to > > slightly unfavorable user experience. > > > > On Wed, Jan 14, 2015 at 7:30 AM, Ted Yu wrote: > > > > > Anil: > > > This link corresponds to the one you posted: > > > http://hbase.apache.org/book#important_configurations > > > > > > Google will ultimately crawl the new hbase book and correct the search > > > results :-) > > > > > > On Wed, Jan 14, 2015 at 5:26 AM, anil gupta > > wrote: > > > > > > > I am also getting 404's on HBase links that come up on Google: > > > > http://hbase.apache.org/book/important_configurations.html > > > > Are we going to make these links work again? > > > > > > > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin > > > wrote: > > > > > > > > > I guess it's because the hbase book has been updated to use > asciidoc > > > > > format, and google need some time to catch up with it. Try this > one: > > > > > http://hbase.apache.org/book#datamodel . > > > > > > > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > > > > serega.shey...@gmail.com> > > > > > wrote: > > > > > > > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > Looks like links hasn't been reindexed? > > > > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > > > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > > > > serega.shey...@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony > > page > > > > of > > > > > > > > http://hbase.apache.org > > > > > > > > what it could be? > > > > > > > > Sorry for stupid question. I've tried several providers, no > > luck > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks & Regards, > > > > Anil Gupta > > > > > > > > > > > > > > > -- > > Thanks & Regards, > > Anil Gupta > > >
Re: 404 for hbase book
We have discontinued the multi-page book and the redirects are not working correctly. Please use the single page book for now. On Thu, Jan 15, 2015 at 4:24 AM, Elliott Clark wrote: > I'm seeing 404's too. I'm seeing them going to just about anything book > related from the front page, not from google. > > * Go to hbase.apache.org > * click on documentation > * Click on ref-guide multi-page and it goes to > http://hbase.apache.org/book/book.html > * 404 > > > * go to hbase.apache.org > * click on Apache HBase Reference Guide FAQ > * it goes to http://hbase.apache.org/book/faq.html > * 404 > > > * go to hbase.apache.org > * click on Architecture Overview > * it goes to http://hbase.apache.org/book/architecture.html#arch.overview > * 404 > > On Wed, Jan 14, 2015 at 8:48 AM, anil gupta wrote: > > > That was one of the example url with 404. I have been getting many links > > like that. Hopefully, the crawling happens quickly.. because its leading > to > > slightly unfavorable user experience. > > > > On Wed, Jan 14, 2015 at 7:30 AM, Ted Yu wrote: > > > > > Anil: > > > This link corresponds to the one you posted: > > > http://hbase.apache.org/book#important_configurations > > > > > > Google will ultimately crawl the new hbase book and correct the search > > > results :-) > > > > > > On Wed, Jan 14, 2015 at 5:26 AM, anil gupta > > wrote: > > > > > > > I am also getting 404's on HBase links that come up on Google: > > > > http://hbase.apache.org/book/important_configurations.html > > > > Are we going to make these links work again? > > > > > > > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin > > > wrote: > > > > > > > > > I guess it's because the hbase book has been updated to use > asciidoc > > > > > format, and google need some time to catch up with it. Try this > one: > > > > > http://hbase.apache.org/book#datamodel . > > > > > > > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > > > > serega.shey...@gmail.com> > > > > > wrote: > > > > > > > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > Looks like links hasn't been reindexed? > > > > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > > > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > > > > serega.shey...@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony > > page > > > > of > > > > > > > > http://hbase.apache.org > > > > > > > > what it could be? > > > > > > > > Sorry for stupid question. I've tried several providers, no > > luck > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks & Regards, > > > > Anil Gupta > > > > > > > > > > > > > > > -- > > Thanks & Regards, > > Anil Gupta > > >
Re: 404 for hbase book
The issues are known and being worked on. :) -Dima On Wed, Jan 14, 2015 at 10:24 AM, Elliott Clark wrote: > I'm seeing 404's too. I'm seeing them going to just about anything book > related from the front page, not from google. > > * Go to hbase.apache.org > * click on documentation > * Click on ref-guide multi-page and it goes to > http://hbase.apache.org/book/book.html > * 404 > > > * go to hbase.apache.org > * click on Apache HBase Reference Guide FAQ > * it goes to http://hbase.apache.org/book/faq.html > * 404 > > > * go to hbase.apache.org > * click on Architecture Overview > * it goes to http://hbase.apache.org/book/architecture.html#arch.overview > * 404 > > On Wed, Jan 14, 2015 at 8:48 AM, anil gupta wrote: > > > That was one of the example url with 404. I have been getting many links > > like that. Hopefully, the crawling happens quickly.. because its leading > to > > slightly unfavorable user experience. > > > > On Wed, Jan 14, 2015 at 7:30 AM, Ted Yu wrote: > > > > > Anil: > > > This link corresponds to the one you posted: > > > http://hbase.apache.org/book#important_configurations > > > > > > Google will ultimately crawl the new hbase book and correct the search > > > results :-) > > > > > > On Wed, Jan 14, 2015 at 5:26 AM, anil gupta > > wrote: > > > > > > > I am also getting 404's on HBase links that come up on Google: > > > > http://hbase.apache.org/book/important_configurations.html > > > > Are we going to make these links work again? > > > > > > > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin > > > wrote: > > > > > > > > > I guess it's because the hbase book has been updated to use > asciidoc > > > > > format, and google need some time to catch up with it. Try this > one: > > > > > http://hbase.apache.org/book#datamodel . > > > > > > > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > > > > serega.shey...@gmail.com> > > > > > wrote: > > > > > > > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > > > Looks like links hasn't been reindexed? > > > > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > > > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > > > > serega.shey...@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony > > page > > > > of > > > > > > > > http://hbase.apache.org > > > > > > > > what it could be? > > > > > > > > Sorry for stupid question. I've tried several providers, no > > luck > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks & Regards, > > > > Anil Gupta > > > > > > > > > > > > > > > -- > > Thanks & Regards, > > Anil Gupta > > >
Re: 404 for hbase book
I'm seeing 404's too. I'm seeing them going to just about anything book related from the front page, not from google. * Go to hbase.apache.org * click on documentation * Click on ref-guide multi-page and it goes to http://hbase.apache.org/book/book.html * 404 * go to hbase.apache.org * click on Apache HBase Reference Guide FAQ * it goes to http://hbase.apache.org/book/faq.html * 404 * go to hbase.apache.org * click on Architecture Overview * it goes to http://hbase.apache.org/book/architecture.html#arch.overview * 404 On Wed, Jan 14, 2015 at 8:48 AM, anil gupta wrote: > That was one of the example url with 404. I have been getting many links > like that. Hopefully, the crawling happens quickly.. because its leading to > slightly unfavorable user experience. > > On Wed, Jan 14, 2015 at 7:30 AM, Ted Yu wrote: > > > Anil: > > This link corresponds to the one you posted: > > http://hbase.apache.org/book#important_configurations > > > > Google will ultimately crawl the new hbase book and correct the search > > results :-) > > > > On Wed, Jan 14, 2015 at 5:26 AM, anil gupta > wrote: > > > > > I am also getting 404's on HBase links that come up on Google: > > > http://hbase.apache.org/book/important_configurations.html > > > Are we going to make these links work again? > > > > > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin > > wrote: > > > > > > > I guess it's because the hbase book has been updated to use asciidoc > > > > format, and google need some time to catch up with it. Try this one: > > > > http://hbase.apache.org/book#datamodel . > > > > > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > > > serega.shey...@gmail.com> > > > > wrote: > > > > > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > > > > > Looks like links hasn't been reindexed? > > > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > > > serega.shey...@gmail.com> > > > > > > wrote: > > > > > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony > page > > > of > > > > > > > http://hbase.apache.org > > > > > > > what it could be? > > > > > > > Sorry for stupid question. I've tried several providers, no > luck > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Thanks & Regards, > > > Anil Gupta > > > > > > > > > -- > Thanks & Regards, > Anil Gupta >
Re: 404 for hbase book
That was one of the example url with 404. I have been getting many links like that. Hopefully, the crawling happens quickly.. because its leading to slightly unfavorable user experience. On Wed, Jan 14, 2015 at 7:30 AM, Ted Yu wrote: > Anil: > This link corresponds to the one you posted: > http://hbase.apache.org/book#important_configurations > > Google will ultimately crawl the new hbase book and correct the search > results :-) > > On Wed, Jan 14, 2015 at 5:26 AM, anil gupta wrote: > > > I am also getting 404's on HBase links that come up on Google: > > http://hbase.apache.org/book/important_configurations.html > > Are we going to make these links work again? > > > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin > wrote: > > > > > I guess it's because the hbase book has been updated to use asciidoc > > > format, and google need some time to catch up with it. Try this one: > > > http://hbase.apache.org/book#datamodel . > > > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > > serega.shey...@gmail.com> > > > wrote: > > > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > > > Looks like links hasn't been reindexed? > > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > > serega.shey...@gmail.com> > > > > > wrote: > > > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony page > > of > > > > > > http://hbase.apache.org > > > > > > what it could be? > > > > > > Sorry for stupid question. I've tried several providers, no luck > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Thanks & Regards, > > Anil Gupta > > > -- Thanks & Regards, Anil Gupta
Re: Show last 10 (100/1000) events
Will the number of "last" will be much larger than 10 (100/1000)? If not, then I wouldn't bother with a real database after all and would hold the data in RAM. Either: * in an object in your "gateway" to hbase. E.g. simple java Array list in your java server which serves the api to the web servers. This would be super easy and super fast Or: * in-memory-db like redis if you haven't something like above Or you redisgn your datamodel to something timestamp based. Then it's a scan. Best wishes, Wilm Am 14.01.2015 um 16:51 schrieb Serega Sheypak: > Hi, I have event-processing system which uses hbase + a pack of tomcat > web-apps as front-end. > tomcat web-apps are similar and used for front-end load-balancing. > tomcat apps write events to hbase. > > What is good pattern to show last 10/100/1000 events? > events table schema is: > row_key=user_id > each user_id has 128 versions. So I keep history for the last 128 user > events. > > There is no way to get last events, I can get last event only for concrete > user. > > I had an idea to create separate table named 'last_events' > and force all tomcats write there copy of event with the same key and set > versions count to 1000. > HBase would automatically delete old events. > Drawbacks are: > 1. x2 traffic > 2. x2 write ops on hbase to single region > > Solution is bad. > Are they any good patterns to resolve such problem. The other option is to > use some kind of memcache or stuff like that. >
Show last 10 (100/1000) events
Hi, I have event-processing system which uses hbase + a pack of tomcat web-apps as front-end. tomcat web-apps are similar and used for front-end load-balancing. tomcat apps write events to hbase. What is good pattern to show last 10/100/1000 events? events table schema is: row_key=user_id each user_id has 128 versions. So I keep history for the last 128 user events. There is no way to get last events, I can get last event only for concrete user. I had an idea to create separate table named 'last_events' and force all tomcats write there copy of event with the same key and set versions count to 1000. HBase would automatically delete old events. Drawbacks are: 1. x2 traffic 2. x2 write ops on hbase to single region Solution is bad. Are they any good patterns to resolve such problem. The other option is to use some kind of memcache or stuff like that.
Re: 404 for hbase book
Anil: This link corresponds to the one you posted: http://hbase.apache.org/book#important_configurations Google will ultimately crawl the new hbase book and correct the search results :-) On Wed, Jan 14, 2015 at 5:26 AM, anil gupta wrote: > I am also getting 404's on HBase links that come up on Google: > http://hbase.apache.org/book/important_configurations.html > Are we going to make these links work again? > > On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin wrote: > > > I guess it's because the hbase book has been updated to use asciidoc > > format, and google need some time to catch up with it. Try this one: > > http://hbase.apache.org/book#datamodel . > > > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak < > serega.shey...@gmail.com> > > wrote: > > > > > 404: http://hbase.apache.org/book/datamodel.html > > > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > > first link: http://hbase.apache.org/book/datamodel.html > > > > > > Looks like links hasn't been reindexed? > > > Ok, nevermind, they can be accessed directly from hbase site. > > > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > > serega.shey...@gmail.com> > > > > wrote: > > > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony page > of > > > > > http://hbase.apache.org > > > > > what it could be? > > > > > Sorry for stupid question. I've tried several providers, no luck > > > > > > > > > > > > > > > > > > -- > Thanks & Regards, > Anil Gupta >
Re: Cannot connect to Hbase via Java API
Hi, the issue was that my Hbase client library did not fit to the server version. Desperate ;) as I was, I switched on the debug log level and have seen some messages, telling me that some node @ zookeeper would be missing but that wouldn't be an error (?)...so that has looked suspicious to me and I find an info that the protocol client<->server has changed...then I've realized what the problem might be Maybe such incompatibilities could be better expressed in the log , don't know. Anyways, all is running fine now :) BR Marco 2014-12-18 20:36 GMT+01:00 Marco : > Hi Wilm, > > I also think, I'll try it with a hbase standalone install. Also via > the logging of Apache Phoenix, I see that this framework can without > any issues use the region server and it's the same hbase-site.xml.,. > > Nevertheless, thank you very much for your efforts!!! > > Best wishes, > Marco > > 2014-12-18 17:43 GMT+01:00 Wilm Schumacher : >> Hi, >> >> I just took a look into the hdp 2.2 sandbox, and unfortunately it was a >> waste of time and I went older ;). >> >> At the first boot, without me doing anything in the configs, zookeeper >> throwed errors at startup and got killed (couldn't connect). However, >> ignoring this I started hbase, which hdp recommend doing by hand O_o >> (starting every service one by one). And the shell worked ... at first. >> >> Now I wanted to make it working and used a network bridge to ssh to the >> box (copy jars for test programs etc.). And now hbase services didn't >> want to start, because now it couldn't access the log files anymore >> (missing permissions) *scratch at head*. I gave permissions to the hbase >> user ... didn't work either. HMaster got killed immediately. After using >> a host-only network ... same problems. I didn't looked further into the >> problems, as I wanted to take only a small look at the product. >> >> After reimporting and a second try ... same problems. So, I couldn't >> reproduce your problem because I didn't get to your point of problems :(. >> >> As this is a standard VM thousands of people use the errors are most >> likely in my install of the VM, but it seems to be very easy to make >> mistakes and end up with a not usable install :/. Sry that this didn't >> help. But I think you should use a standard hbase standalone install to >> test hbase for your purposes. >> >> Best wishes and good luck >> >> Wilm >> >> Am 16.12.2014 um 15:19 schrieb Marco: >>> Hi, >>> >>> Hbase is installed correctly and working (hbase shell works fine). >>> >>> But I'm not able to use the Java API to connect to an existing Hbase Table: >>> >>> <<< >>> val conf = HBaseConfiguration.create() >>> >>> conf.clear() >>> >>> conf.set("hbase.zookeeper.quorum", "ip:2181"); >>> conf.set("hbase.zookeeper.property.clientPort", "2181"); >>> conf.set("hbase.zookeeper.dns.nameserver", "ip"); >>> conf.set("hbase.regionserver.port","60020"); >>> conf.set("hbase.master", "ip:6"); >>> >>> val hTable = new HTable(conf, "truck_events") >>> >>> Actually the coding is Scala but I think it is understandable, what I >>> am trying to achieve. I've tried also to use hbase-site.xml instead of >>> manually configuring it - but the result is the same. >>> >>> As response I got >>> 14/12/16 15:10:05 INFO zookeeper.ZooKeeper: Initiating client >>> connection, connectString=ip:2181 sessionTimeout=3 >>> watcher=hconnection >>> 14/12/16 15:10:10 INFO zookeeper.ClientCnxn: Opening socket connection >>> to server ip:2181. Will not attempt to authenticate using SASL >>> (unknown error) >>> 14/12/16 15:10:10 INFO zookeeper.ClientCnxn: Socket connection >>> established to ip:2181, initiating session >>> 14/12/16 15:10:10 INFO zookeeper.ClientCnxn: Session establishment >>> complete on server ip:2181, sessionid = 0x14a53583e080010, negotiated >>> timeout = 3 >>> >>> and then finally after a couple of minutes: (the constructor call of >>> HTable is hanging) >>> >>> [error] (run-main-0) >>> org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to >>> find region for truck_events,,99 after 14 tries. >>> org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to >>> find region for truck_events,,99 after 14 tries. >>> at >>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:1092) >>> at >>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:997) >>> at >>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:1099) >>> at >>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:1001) >>> at >>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:958) >>> at >>> org.apache.hadoop.hbase.client.HTable.finishSe
Re: 404 for hbase book
I am also getting 404's on HBase links that come up on Google: http://hbase.apache.org/book/important_configurations.html Are we going to make these links work again? On Wed, Jan 14, 2015 at 4:35 AM, Shuai Lin wrote: > I guess it's because the hbase book has been updated to use asciidoc > format, and google need some time to catch up with it. Try this one: > http://hbase.apache.org/book#datamodel . > > On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak > wrote: > > > 404: http://hbase.apache.org/book/datamodel.html > > > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > > first link: http://hbase.apache.org/book/datamodel.html > > > > Looks like links hasn't been reindexed? > > Ok, nevermind, they can be accessed directly from hbase site. > > > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > > > Works fine for me. Maybe you can try force refresh the page? > > > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > > serega.shey...@gmail.com> > > > wrote: > > > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony page of > > > > http://hbase.apache.org > > > > what it could be? > > > > Sorry for stupid question. I've tried several providers, no luck > > > > > > > > > > -- Thanks & Regards, Anil Gupta
Re: 404 for hbase book
I guess it's because the hbase book has been updated to use asciidoc format, and google need some time to catch up with it. Try this one: http://hbase.apache.org/book#datamodel . On Wed, Jan 14, 2015 at 6:13 PM, Serega Sheypak wrote: > 404: http://hbase.apache.org/book/datamodel.html > > https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase > first link: http://hbase.apache.org/book/datamodel.html > > Looks like links hasn't been reindexed? > Ok, nevermind, they can be accessed directly from hbase site. > > 2015-01-14 13:01 GMT+03:00 Shuai Lin : > > > Works fine for me. Maybe you can try force refresh the page? > > > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak < > serega.shey...@gmail.com> > > wrote: > > > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony page of > > > http://hbase.apache.org > > > what it could be? > > > Sorry for stupid question. I've tried several providers, no luck > > > > > >
Re: 404 for hbase book
404: http://hbase.apache.org/book/datamodel.html https://www.google.ru/#newwindow=1&q=Chapter+5.+Data+Model+-+HBase first link: http://hbase.apache.org/book/datamodel.html Looks like links hasn't been reindexed? Ok, nevermind, they can be accessed directly from hbase site. 2015-01-14 13:01 GMT+03:00 Shuai Lin : > Works fine for me. Maybe you can try force refresh the page? > > On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak > wrote: > > > Hi, starting from monday (12.01.2015) I'm getting 404 on ony page of > > http://hbase.apache.org > > what it could be? > > Sorry for stupid question. I've tried several providers, no luck > > >
Re: 404 for hbase book
Works fine for me. Maybe you can try force refresh the page? On Wed, Jan 14, 2015 at 5:47 PM, Serega Sheypak wrote: > Hi, starting from monday (12.01.2015) I'm getting 404 on ony page of > http://hbase.apache.org > what it could be? > Sorry for stupid question. I've tried several providers, no luck >
404 for hbase book
Hi, starting from monday (12.01.2015) I'm getting 404 on ony page of http://hbase.apache.org what it could be? Sorry for stupid question. I've tried several providers, no luck