How to setup HBase on Local Host

.
View Comments


Installing Hbase on Local Machine
Prerequisites:
1)  Requires Java 6
2) Setup Hadoop on the node where HBase will be installed
3) The latest version of HBase can be downloaded from Hbase Releases

There are 3 ways in which Hbase can be installed.

For all the installation modes update conf/hbase-env.sh to point to the correct JAVA HOME location, also uncomment the same.

Standalone Mode: In this Hbase will not use Hadoop as a file system, but will use system's default file system. Just change one configuration, hbase.rootdir in hbase-site.xml. If this is not changed then the data will be stored in its default directory i.e. in tmp folder and data will be lost on system reboot. Following configuration can be used:
           
            hbase.rootdir   file:///home/impadmin/Hbase
The directory shared by region servers. Should be fully-qualified to include the filesystem to use.  E.g: hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR
         

Pseudo Distributed Mode: Hbase will run on a single node only but will use Hadoop as its underlying filesystem. It will use zookeeper also. This should be tried for development enviornment. Following steps  must be performed so set up Hbase in this mode:Update entry in hosts file: In etc/hosts file remove following entry

"127.0.1.1

      Delete this line. If this not removed then when Hbase Master tries to connect to HDFS it will find two IP address which are mapped for your system. And will most probably pick the second one i.e. 127.0.1.1 , at that port it can't find HDFS it will throw exceptions ConnectException
      Note: In Linux enviornment everytime we reboot our system the entries in Hosts file change to their default values. So change the values everytime.

 Update config file (hbase-site.xml):

1) Set hbase.rootdir property to use HDFS file system, its value should be same as fs.default.name found in Hadoop core-site.xml. A sample property:

                  hbase.rootdir
                  hdfs://machineName:9000/Hbase

The directory shared by region servers.  Should be fully-qualified to include the filesystem to use.
E.g: hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR

If any specific directory is mentioed in root directory (in our example Hbase directory). Then we need to create this directory in our HDFS. Run the below command from Hadoop/bin installation and give the newly created folder appropriate rights.

sudo -u hadoop fs -mkdir /Hbase

Also set  hbase.cluster.distributed in config to true

  hbase.cluster.distributed   true
                       
                  Set base.tmp.dir: To a custom directory.


 Update regionservers (in conf directory):

Set your ip or system name

Note: Make sure in mapred-site.xml of Hadoop all the address should be on IP address instead of localhost. If this is not changed then running HRegion services/APIs will throw port bind exception

Changes to be made on Hadoop
conf/hdfs-site.xml:

dfs.data.dir: Comma separated list of paths on the local filesystem of a DataNode where it should store its blocks.

Note: If this parameter is not set then its default value is the tmp directory. So on reboot all HBase data will be lost.


Run HBase



·         Start Hadoop. If running HBase in Pseudo Distributed/Distributed mode start Hadoop first. From Hadoop installation directory run command:
bin/start-all.sh

·         Start hbase. From Hbase installation directory run command
bin/start-hbase.sh

If run successfully this should show output like:
starting master, logging to /home/Installations/Hbase/hbase-0.90.3/bin/../logs/hbase-sasomani-master-impetus-1025.out

·         Check HBase is up and running

Open up the HBase Web UI
http:// or HostName mentioned>:60010
e.g. http://192.168.x.x :60010

·         Go to HBase Shell: From Hbase installation directory type command
bin/hbase shell

·         Create table in HBase: From Hbase shell type command on hbase (main)
create 'myLittleHBaseTable1', 'myLittleColumn'

To check on console
scan  'myLittleHBaseTable1' 




Tips and Tricks
If while starting, the error is encountered as “org.apache.hadoop.hdfs.protocol.ClientProtocol version mismatch”, the solution is to put the hadoop core jar in hbase/lib directory.
Sometime, the master would not start throwing the exception of “Unable to connect”. To resolve the same, make the below entry in the /etc/hosts file

Read More »»


Linux Baby Rocker

.
View Comments








Read More »»


How a programmer was abused for writing an article

.
View Comments


One of the main reasons I have written this post is to share my experience and warn other fellow programmers. Please do NOT request other programmers in most USENET groups to review your article. You can get attacked.

Few weeks ago I have written a post which I think is a quality post, as a result I wanted to have a honest opinion and thoughts from other fellow programmers on USENET.

I didn't know that I will be abused and slashed into piece and my blog will be called a spam blog without even visiting it.

Below are the few remarks made on me and on my blog by some people on USENET group.

I will not support advertisements for blogspam.scam sites.
If you need an independent site that discusses Java rather comprehensively, goto xxxxx (I have removed the site address)

I mean how a person can call my blog a spam blog without even visiting it ?
It looked like he was advertising his own xxxxxx website. Don't you think so ?

The main reason why Mr A and later Mr B might have pointed you to
xxxxxx's site is because the information on the site s MORE
comprehensive, complete and correct than your blog...

But I only asked to review my post and my blog is not a tutorial website


Plonk, you thin-skinned, judgmental, condescending, sarcastic SOB. Why would
anyone be interested in an article written by you ?
Shame on you, troll.

I only asked the person not to call Asian countries as third world. I know its cold war term, but hey cold war is over so why use this slang ? (My point of view)


Your statements make it clear that you are
attacking Mr A and me for allegedly spamming Mr B web site, only because
we are getting in the way of you spamming your stupid little blogscam.scam
post and advertising scam. Well, sorry to rain on your parade, bub, but you
aren't getting rich off of these sheep.

So mush for asking their thought on my blog post. Honestly the only thing I requested was their thoughts on the post I have written and think it got quality in it.

Mr A's site is a good one, and the purpose of this newsgroup is to share
information that is useful and helpful to Java programmers. That means
sharing about xxxxx website and stopping spam/scammers like you from
perpetrating their little frauds.

Yes the purpose of the group is to share/help java programmers. That is the reason I have requested group for their thoughts


Well after that attack I decided not to contribute or request any help on that specific group. I will rather share my thoughts with the programmer community in DZone then any other rude groups.

By the way the link for the post I have requested thoughts is : http://bit.ly/t98EZ

Have you ever faced this kind of attack ? Or its just only me :O



Read More »»


BREAKING NEWS !!! Industry Reaction: VMware Acquires SpringSource

.
View Comments

Today VMware announced they have acquired SpringSource for a mix of approximately $362 million in cash and equity plus the assumption of approximately $58 million of unvested stock and options

SpringSource founder Rod Johnson said

"Working together with VMware we plan on creating a single, integrated, build-run-manage solution for the data center, private clouds, and public clouds. A solution that exploits knowledge of the application structure, and collaboration with middleware and management components, to ensure optimal efficiency and resiliency of the supporting virtual environment at deployment time and during runtime. A solution that will deliver a Platform as a Service (Paas) built around technologies that you already know, which can slash cost and complexity. A solution built around open, portable middleware technologies that can run on traditional Java EE application servers in a conventional data center and on Amazon EC2 and other elastic compute environments as well as on the VMware platform. "

VMware said ...

"
SpringSource has also been a technology innovator with a mission similar to us, but focused on the application-centric areas of IT rather than on the hardware-infrastructure focus that VMware is associated with. SpringSource’s obsession has been simplifying and automating the build-run-manage lifecycle that all applications go through, and they have done so by attacking similar pockets of complexity. They bring this complexity-busting focus to several areas… high-productivity developer tools and frameworks, lightweight application server runtimes, and application management and monitoring. The end goal is very similar; attack the time and money spent on application complexity and maintenance tasks, shifting the focus to new and more reliably deployed applications.

This shared mission is what brought us together in initial partnering efforts late last year. As a combined entity, the existing efforts and missions will continue, but we’ll also work to jointly sever a whole new collection of tentacles… the ones that unnaturally tie an application to the rigid way it must be deployed and managed."

In the blog post Johnson also notes that he expects SpringSource's contributions to open source to continue and increase. Steve Herrod, Chief Technology Officer and Senior Vice President of R&D at VMware, has also commented on the acquisition.

will continue to cover industry reactions as they become available...


Ref : SpringSource
Ref : VMware


Above was the industry reaction. What is your reaction ?





Read More »»


Video Tutorial Vs Written Tutorial for Programmers

.
View Comments


Most of the programmers are busy people working on some kind of projects. Having a video tutorial can provide some quality time with learning but on the other hand reading tutorials can be fast all we do is skim the main points of the post and move on.

while I was discussing the topic with fellow programmer friends on twitter, USENET and online some interesting unanimous answers came out. So I thought why not share it with blog subscribers as well.

Below are the responses I got from my friends, and you are more then welcome to comment your thoughts on it.


Stefan Ram

Programmers enjoy on-topic posts, that is, posts
regarding particular features of the programming
language Java in comp.lang.java.programmer.



Donkey Hottie

Some programmmers enjoy sausage, others more like sex. Old and tired dogs

may enjoy beer on their free time.


Martin Gregorie

Straight answer: I much prefer written material because:

1)the bandwidth of a talking head video or a powerpoint-type presentation
is *much* lower than that of reading a text version of a tutorial at my
own speed. As a result I'm wasting time watching a video when I could be
reading it instead.

2)well laid-out written text is much easier to use as reference material.


Wojtek

Sitting at my desk listening to a droning voice puts me to sleep.

Most programming video tutorials are done by programmers. And we tend
not to be very exciting (ok, ok, "ducks").

You hear a bored voice and see a mouse cursor moving around:
"And then you click here and this happenes, then you click there and
that happens, and you see this result."

Not sure how to liven this up, maybe a dance team in skimpy clothing
illustrating actions? Some lithe young thing running around the screen
mimicing a cursor?
But please NO background music.


Dirk Bruere

Written.
Better yet, a really good book on the topic with web based examples for
reference


Arne Vajhøj

Written.
Video has a "Learn to sell snow on the north pole and
sand in Sahara in 7 days" aura.


Daniel Pitts

A video tutorial is all but useless for non-novice programmers. The
written word is far more efficient at imparting information. The most
valuable learning tool a programmer can use is a complete example that
can be played with, altered, and explained.


Arved Sandstrom

It sounds like a serious question, so I'll answer it seriously. I
personally cannot stand video tutorials, not with respect to software
development. If I want to get a better idea how to tie a fishing fly, or
do a tuneup on an older style car, I can appreciate a video. But text
with images is much more efficient at delivering information about
software development than a video could ever be.

I must confess: the whole concept of programming videos strikes me as so
wrong that I've never watched one, and I doubt I ever will. :-)

Please do share your thought about the topic through comments


Read More »»


Google is on Twitter now

.
View Comments


Google has joined the bandwagon of twitter.

Google said :

"Like lots of you, we've been drawn into Twitter this year. After all, we're all about frequent updates ourselves, and there's lots happening around here that we want to share with you. Of course, we enjoy watching, and contributing to, the tweetstream (we hope you find our tweets useful, too). Because there are many programs and initiatives across the company, we've got a number of active accounts. Here's a list of the current ones. We'll update this list from time to time."

twitter.com/Google - our central account
twitter.com/Blogger - for Blogger fans
twitter.com/GoogleCalendar - user tips & updates
twitter.com/GoogleImages - news, tips, tricks on our visual image search
twitter.com/GoogleNews - latest headlines via Google News
twitter.com/GoogleReader - from our feed reader team
twitter.com/GoogleVoice - updates & info on Google Voice*
twitter.com/iGoogle - news & notes from Google's personalized homepage
twitter.com/GoogleStudents - news of interest to students using Google
twitter.com/YouTube - for YouTube fans
twitter.com/YouTubeES - en Espanol
twitter.com/GoogleAtWork - solutions for IT and workplace productivity

twitter.com/GoogleSites - Google Sites updates*

Geo-related
twitter.com/SketchUp - Google SketchUp news
twitter.com/3DWH - SketchUp's 3D Warehouse
twitter.com/Modelyourtown - 3D modeling to build your favorite places
twitter.com/EarthOutreach - Earth & Maps tools for nonprofits & orgs
twitter.com/GoogleEarth - updates from the Google Earth team*
twitter.com/GoogleMaps - uses, tips, mashups
twitter.com/GoogleSkyMap -Android app for the night sky

Ads-related
twitter.com/AdSense - for online publishers
twitter.com/AdWordsHelper - looking out for AdWords questions and tech issues
twitter.com/AdWordsProSarah - Google Guide for AdWords Help Forum
twitter.com/GoogleAnalytics - insights for website effectiveness
twitter.com/GoogleAdBuilder - re building display ads
twitter.com/GoogleAdManager - info on managing online ads & inventory*
twitter.com/GoogleAffiliate - info for publishers from Google network advertisers*
twitter.com/GoogleRetail - for retail advertisers
twitter.com/GoogleTVAds - info on our digital system for more measurable TV advertising*
twitter.com/TechnologyUK - for U.K. tech advertisers
twitter.com/UKretail - for U.K. retail advertisers
twitter.com/creativesandbox - for advertising agencies*
twitter.com/InsideAdWordsDE - for German AdWords customers
twitter.com/GoogleAgencyDE - for German ad agencies
twitter.com/AdSensePT - info for Portuguese-language publishers
twitter.com/AdWordsRussia - AdWords news & tips in Russian
twitter.com/DentroDeAdWords - Spanish updates from the Inside AdWords blog
twitter.com/AdWordsAPI - AdWords API tips

Developer & technical
twitter.com/GoogleResearch - from our research scientists
twitter.com/GoogleWMC - Google Webmaster Central
twitter.com/GoogleCode - latest updates for Google developer products
twitter.com/GoogleData - Data APIs provide a standard protocol for reading and writing web data
twitter.com/app_engine - web apps run on Google infrastructure
twitter.com/DataLiberation - our initiative for complete import/export of all data
twitter.com/GoogleMapsAPI - about using Google Maps embedded in websites
twitter.com/GoogleIO - Google's largest annual developer event

Culture, People
twitter.com/googletalks - notes from our @Google speaker series
twitter.com/googlejobs - the voice of Google recruiters

Country or Region
twitter.com/googlearabia - news from the Google Arabia Blog*
twitter.com/googledownunder - Google activities in Australia & New Zealand
twitter.com/googlebrasil - News & info for Brasil*
twitter.com/googlecanada - News & notes from Google Canada*
twitter.com/GoogleDE - Google in Germany
twitter.com/GoogleKorea - News & notes in Korean*
twitter.com/GoogleLatAm - Latin America (en Espanol)
twitter.com/GooglePolicyIt - Notes on Google policy issues in Italy

Ref Google

Post related to Twitter that might interest you

Follow MySql on Twitter
Send Prayer to God through Twitter

Read More »»