The compression in HBase can really reduce the storage requirements, as the row-key, column-family and the column names repeat for each column of a record. There are many algorithm for compression including LZO, GZIP and SNAPPY. The choice really depends on the compression level and performance of the algorithm. Please look the following link to setup and configure the Compression in HBase.
http://hbase.apache.org/book/compression.html
After setting up the compression, the following formula could be used to get a approximate percentage size reduced by the compression:
StoreFileSize: Is the size of the file on the HDFS
avgKeyLen,avgValueLen and entries are output from HFile tool
Use the following commands to check the regions in the table.
hadoop fs -lsr /hbase/<table name>
Now choose a store file with larger size, as it would have more records and check the size.
hadoop fs -lsr /hbase/<table name>/<region>/data/<store file>
-rw-r--r-- 1 prafkum supergroup 25855018 2012-08-11 06:24 /hbase/employee/9c21ea1c93d5c8f96f84c888bbcf23e7/data/880ababfda4643f59956b90da2dc3d3f
Also run the HFile tool utility on the store file. Please view my previous blog for details.
hbase org.apache.hadoop.hbase.io.hfile.HFile -v -m -f /hbase/<table name>/<region>/data/<store file>
avgKeyLen=29,
avgValueLen=4,
entries=1146564
Using above formula to calculate the compression ratio:
100 - 25855018*100/((29+4+8)*1146564) = 45% compression
Please note that the compression computation is not accurate as the store file also have header along with key and values of the columns. Also the compression could be different in different store files. But of-course you get a good clue of the compression ratio.
http://hbase.apache.org/book/compression.html
After setting up the compression, the following formula could be used to get a approximate percentage size reduced by the compression:
100 - StoreFileSize *100 / ((avgKeyLen+avgValueLen+8)*entries)
StoreFileSize: Is the size of the file on the HDFS
avgKeyLen,avgValueLen and entries are output from HFile tool
Use the following commands to check the regions in the table.
hadoop fs -lsr /hbase/<table name>
Now choose a store file with larger size, as it would have more records and check the size.
hadoop fs -lsr /hbase/<table name>/<region>/data/<store file>
-rw-r--r-- 1 prafkum supergroup 25855018 2012-08-11 06:24 /hbase/employee/9c21ea1c93d5c8f96f84c888bbcf23e7/data/880ababfda4643f59956b90da2dc3d3f
Also run the HFile tool utility on the store file. Please view my previous blog for details.
hbase org.apache.hadoop.hbase.io.hfile.HFile -v -m -f /hbase/<table name>/<region>/data/<store file>
avgKeyLen=29,
avgValueLen=4,
entries=1146564
Using above formula to calculate the compression ratio:
100 - 25855018*100/((29+4+8)*1146564) = 45% compression
Please note that the compression computation is not accurate as the store file also have header along with key and values of the columns. Also the compression could be different in different store files. But of-course you get a good clue of the compression ratio.
Thanks for your article. Its very helpful. Hbase is very important components. Thanks for your valuable information. Hadoop training in chennai | Hadoop Training institute in chennai
ReplyDeleteBest Article BUY ADDERALL ONLINE Excellent post. I appreciate this site. Stick with it! Because the admin of this web page is working, no doubt very quickly it will be well-known, due to its quality contents.This website was how do you say it? Relevant!! Finally, I’ve found something that helped me.
ReplyDeleteOrder Rick Simpson Oil Online.
ReplyDeleteBest Quality Vyvanse Products.
ReplyDeleteTop Quality Lipitor Online.
Buy Real LSD Online.
Despite the fact that Adderall is viewed as a physician recommended tranquilize and most patients
ReplyDeletebuy adderall online,Buy Adderall Uk & USA on the web or purchase Adderall 30mg from an online drug store, a few patients will in general get dependent on the medication.can you buy adderal online? When it comes to buying fine research chemicals online, quality is the key. buychemstore research chemicals for sale ,LSD for sale,constantly strives at providing you with the continuing evaluation, innovation . We assure you the highest degree of confidence in all of our products not limited to but including cocaine for sale, LSD for sale, heroin for sale, pain medications for sale etc. Here at buychemstore, we pride ourselves on safety.
buy research chemicals online
We are a one-stop-shop for the purchase of anabolic steroids.what is anabolic steroids, We are here to make sure you don’t bother about where to buy anabolic steroids from craigslist, eBay, or any other online forums. We are in contract with a large network of pharmacies in North America, Europe and Asia. With our years of experience in the distribution of anabolic-androgenic steroids, we provide top quality services to our clients that cannot be matched by our competitors.This is te best place to Buy legal steroids online, anabolic steroids for sale
buy Apetamin vitamin syrup that’s marketed as a weight gain supplement. It was developed by TIL Healthcare PVT, a pharmaceutical company based in India.According to manufacturing labels, 1 teaspoon (5 ml) of Apetamin syrup contains.Apetamin in store,where to buy Apetamin,Is Apetamin syrup Effective in weight gain,buy Apetamin syrup online
Welcom to our vyvanse online shop where you can buy vyvanse online,Buy vyvanse Uk & USA,learn about vyvanse side effects and have
vyvanse coupon,vyvanse for sale.
Buy atorvastatin, sold under the trade name Lipitor among others, is a statin medication used to prevent cardiovascular disease in those at high risk and treat abnormal lipid levels. For the prevention of cardiovascular disease, statins are a first-line treatment. It is taken by mouth.Learn How to use Lipitor, you are free to read about atorvastatin side effects,Buy lipitor UK ,atorvastatin side effects ,
lipitor for sale. You can also buy juul
Welcome to Ragdoll Kittens Cattery click here to adopt a ragdoll
ReplyDeletekitten online We are a small and loving cattery . We are pleased that you have chosen to visit our Ragdoll
cats/Ragdoll kittens cattery, and hope you will notice right away from our website how beautiful and loved our
Ragdoll cats and kittens are. These beauties are easily integrated into our loving family home, first as
mothers carrying the litters, and then from the time the ragdoll kittens are born until they are adopted so we
always have Ragdoll kittens for sale|Ragdoll kittens for adoption|Ragdoll kitten price|Ragdolls|Cost of Ragdoll
kittens|. Our adult cats have tested negative for HCM and PKD1 through University of California Davis. Upon
request, we have five generations of pedigree documentation on our adults available to anyone who is
interested. Ragdoll kittens are registered with The International Cat Association (RAGDOLL KITTENS FOR SALE),and are never caged. The cats that are
in our reputable breeding program can produce mink, sepia and traditional Ragdoll kittens. Ragdolls have a
laid-back personality and enjoy being physically handled making them one of the best lap cats! We are all
family here at Ragdoll kittens cattery since we are ragdoll kitten breeders and all the love we bestow by
holding each cat and kitten daily further Teacup RAGDOLL Kittens
for sale|Hypoallergenic kittens for sale nurtures their loving personalities and temperaments,TICA/CFA REGISTERED RAGDOLL KITTENS FOR SALE thanks for adopting a
ragdoll ketten from us
Welcome to our farm where we breed Registered pomeranian puppies
for sale.As a registered pomeranian puppies breeder, we have made it possible for pomeranian puppy lovers
to
buy pomeranian puppies online,buy zwergpitz pomeranian from our family run farm. Pomeranian
dogs are small dogs with a weight of 1.36 to 3.17 kg and a withers height of 15 to 18 cm. They are compact but
robust dogs with a lush, textured coat and a tall and flat tail. The top coat forms a fur ruff on the neck, for
which poms are known, and on the hindquarters they have a margin of feathered hair.You can click HERE to view our available pomeranian puppies
Buy Alien OG Online.
ReplyDeleteBuy Alien OG Shatter Online.
Buy 91 Supreme Caviar Shatter.
Order Vapes Oil online.
ReplyDeletebuy weed online at Legit Weed Store
order your cannabis now at Order Cannabis Meds
Buy marijuana online at 420 Delivery Store
Buy medical cannabis online at at Canna Med Shop
Get your Pill refills at Pill Pharma
Tack Köp legit piller online i sverige på Mundi Apotek
ReplyDeleteTack Köp legit piller online i sverige på Scandinavia Apotek
Tack Köp legit piller online i sverige på battrehalsa-apotek
Buy counterfeit online Docs and Counterfeits
ReplyDeleteBuy weed online Mister Cannabis Online
Buy Nandrobolin 250 Online
ReplyDeleteBuy Nandrolone Decanoate Online
Buy Nandrolone Deca 250 Online
Buy Nandrolone Phenypropionate Online
Buy Nandrorapid Online
Buy Parabolin Injection Online
Buy Pharma Bol 100mg Online
Buy Pharma Dro E Online
Buy Pharma Nan 600 Online
Buy Pharma Nolt 600 Online.
Thanks for this. I really appreciate your good work
ReplyDeletecontent so valid. keep up i love this
so much meaning. I enjoyed my self
I cant neglect. Reading such a content
Ethical facts. one just cant neglect
I always appreciate. Valid content
Never a dull. moment reading online
I have learned. A new thing today
nothing is so meaningful. like reading a good conten
BUY WEED ONLINE
ReplyDeleteBUY IBOGAINE ONLINE
BUY XANAX ONLINE
BUY DANK VAPE ONLINE
BUY COCAINE ONLINE
BUY IBOGAINE CAPSULES ONLINE
BUY LSD ONLINE
BUY BLUE DREAM DANK VAPE ONLINE
BUY MOONROCKS ONLINE
Buy cancer pills online global sales pharma store
ReplyDeleteBuy increlex online global sales pharma store
Buy harvoni online global sales pharma store
Buy sofosbuvir pills online global sales pharma store
Buy exemptia online global sales pharma store
Buy glyxambi online global sales pharma store
Buy infimab online global sales pharma store
Buy scapho online global sales pharma store
Buy enzalutamide online global sales pharma store
The Pomsky is a designer breed of dog that is a hybrid of the Pomeranian and the Siberian Husky. Adorable Pomsky puppies have attracted a lot of attention recently and made them one of the most popular breeds of 2017.
ReplyDeleteBest Online Pet Adoption : Cavapoo Puppies For Sale : Australian Shepherd Puppies Below $200 : Available Maltipoo Puppies Online : Where To Buy Golden Retriever Puppies OnlineBest Online Adoption|
Buy Research Chemicals Online
ReplyDeleteBuy Research Chemicals USA
Buy Cheap Pailkillers Pill Online
Morphine 30mg
Buy Opana Oxymorphone Hcl 40mg
Buy Ecstasy 100mg Mdma Online
Mogadon Nitrazepam
Subutex Buprenorphine
Buy Oxycontine
Buy Morphine Sulfate
Hi there,
ReplyDeleteThank you so much for the post you do and also I like your post, Are you looking forBuy cavapoo puppies billy online , Buy cavapoo puppies jack online , Buy cavapoo puppies Jackie online , buy maltipoo puppies Lucy online , buy cavapoo puppies Nelly online , Buy cavapoo puppies Queen online , Buy maltipoo puppies Stalla online , Buy cavapoo Yosa online with the well price and our services are very fast.Click here for
Email: info@cavapooandmaltipoopuppieshome.com
Shop
ReplyDeleteCodeine phosphate 15 mg Tablets
PHOSPHATESTramadol 50mg
Silver Liquid MercurySSD Chemical Solution
Buy Blue Punisher 274mg MDMA
Buy Ethylone Crystal
Buy MDMA Online
PV8-Crystal
Buy Crystal Meth Online
Buy Anesket Online
Buy Nembutal Powder
Pink and Purple Skype MDMA
Buy Blue Toyotas online
Donkey Kong 453mg MDMA
Buy Morning Glory Seeds
Buy kratom Packs Online
Buy MDMA Pills Online
Shop
ReplyDeleteCANNABIS DISPENSARY GOALS
We are the most legit cannabis dispensary with both wholesale and retail weed for sale. Marijuana extract and thc cartridges are also available. We deliver in almost all states in the US and Puerto Rico. We are available in Canada, UK, USA, South America, Europe and Australia
Buy Krt Carts Online
Buy Pluto Strain Online
Buy Sweet Tea Online
Buy White Runtz Sungrown Online
Buy Banana Kush Online
Buy Bubbleberry Strain Online
Buy Pink Panther Online
Buy White Runtz
Packwoods x gashouse Tear gas
https://cookieswood.com/shop/
This is really a nice information on how to buy-bulk-cbn-isolate-powder in UK. Must necessary to share this blog, This comment will help to get full knowledge on other CBD EXTRACTS LIKE buy-bulk-cbg-isolate-crystals in UK,
ReplyDeletebuy-bulk-cbd-isolate-crystals UK, Pure THCA Diamonds in UK and Buy Bulk THCA Isolate | Powder | Online, will also help for the coming future THANKS.
For more infor please contact the following.....
CALL/TEXT/WHATSAPP >>>>>>>>>
+1(424) 235 3914
EMAIL >>>>>>>>> support@420labextracts.com
thanks for the wonderful article regarding thca isolate ,thca isolate ukwe wish to let you know that we ,have great content which might interest you and your readers at legal420isolate ,thca near mefor more details contact us\
ReplyDeleteemail...support@legal420isolate.com
call/text.....+1(505)257-5355
ReplyDeleteOur online store is one of the best in the supply of rare and high-grade (Mushrooms, Edibles. Psychedelics, and more)with absolute purity. All our products are tested to guarantee potency after production, during distribution and even storage. We ship globally in discreet and undetectable packaging using our network of trusted partners.
psilosybin mushroom 2022, trusted magic mushroom site 2022,
cheap liquid lsd, order cheap psychedelic mushroom,
cheap magic mushroom, super quality shrooms,
most potent psilocybin mushroom on the market,
best microdosing mushrooms 2022, Golden teacher mushroom for sale,
where to buy B+ magic mushroom, buy shrooms online ,
buy psilocybin mushroom overnight shipping, effective microdosing for ptsd,
buy mushroom truffles online cash on delivery, buy microdose capsules online 2021,
magic mushrooms for mental illness for sale,
buy mushies for anxiety/deppression and ptsd, cheap psilocybin mushroom, shrooms near me,
where to buy psilocybin mushroom near me, cheap psychedelic mushroom for sale,
buy caps/buttons cheap, best place to buy magic mushroom,
buy cheap fungi mushrooms, cheap strong fungus, best quality spores for sale,
buy mushroom grow kit online, buy fungi shrooms near me, cheapest magic mushrooms online,
where to buy penis envy online, where to buy mexicanna online, buy microdose capsules online,
best microdose capsule for sale,
fungi mushroom for sale, best liquid cultures online, buy spores near me, buy Nirvana mushroom near me,
buy pajaritos mushrooms near me, psychedelic mushroom near me, buy medicinal mushroom online,
buy 5-MeO-DMT, buy dmt vape pen online, buy lsd tabs online, buy dmt online, where to buy dmt,
lsd for sale, buy mushies near me, buy shrooms wholesale price, strong boomers for sale,
Buy trippy shrooms online, buy penis envy, buy albino A+, buy amazonian cubensis,
buy psilocybe cubensis, buy blue meanie, buy vietam cubensis, buy z strain shrooms,
buy boomers cubensis online, buy cubensis buy golden teacher, buy liquid lsd online
Our quality is the best you can find around and we sell in small/large quantities with guaranteed discreet delivery in good time Shipping
website...https://megapsilocybin.com/
call/text..+1(458) 201-6900
email..sale@megapsilocybin.com
Ragdoll Kittens for sale
ReplyDeleteRgdoll kittens for adoption