Skip to content
Find file
Pull request Compare This branch is even with sujee:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.settings
src/hbase_mapred1
.classpath
.gitignore
.project
README.txt

README.txt

for detailed tutorial : 
http://sujee.net/tech/articles/hbase-map-reduce-freq-counter/


To compile the project:

1) open in Eclisle
2) set HBASE_HOME  class variable to hbase install dir


setup hbase tables:
---
open hbase shell
	$ hbase shell
	  	create 'access_logs', 'details'
	  	create 'summary_user', {NAME=>'details', VERSIONS=>1}
	  	
'access_logs' is the 'raw' logs.  The key is userID+counter  (int + int)
'summary_user' is to compute summary.  key is 'userID' (int)

Running map reduce
--
1) run 'FreqCounter1' directly from Eclipse, as a Java application

2) run on cluster / command line
  a) make a jar
      jar cf freqCounter.jar -C classes .

  b) hadoop jar freqCounter.jar hbase_mapred1.FreqCounter1
      check progress at task tracker : http://localhost:50070

Something went wrong with that request. Please try again.