Search and Cache Engines development by Kevin Duraj since 1994

Running Hadoop Jobs Mac OS X

This guide is written to help Cornell students using Mac OS X 10.5 with setting up a development environment for working with Hadoop and running Hadoop jobs on the Cornell Center for Advanced Computing (CAC) Hadoop cluster. This guide will walk you through compiling and running a simple example Hadoop job. More information is available at the official Hadoop Map-Reduce Tutorial.

Reference: http://www.infosci.cornell.edu/hadoop/mac.html

Create Remove Swapfile


#!/bin/sh
#----------------------------------------------------------#
function create_swapfile()
{
echo "Creating Swap file ..."
dd if=/dev/zero of=/swapfile bs=1024 count=12582912
mkswap /swapfile
swapon /swapfile
}
#----------------------------------------------------------#
function remove_swapfile()
{
echo "Removing Swap file ..."
swapoff /swapfile
rm /swapfile
}
#----------------------------------------------------------#

remove_swapfile

Zend Installation on Mac

Zend_Tool for OS X or Linux
• Extract the downloaded archive file, ZendFramework-1.10.0-minimal.zip in your Downloads directory by double clicking on it.
• Copy to /usr/local/ZendFrameworkCli by opening Terminal and typing:
sudo cp -r ~/Downloads/ZendFramework-1.10.0-minimal /usr/local/ZendFrameworkCli

• Edit your bash profile to provide an alias:
• From Terminal, type: open ~/.bash_profile
alias zf=/usr/local/ZendFrameworkCli/bin/zf.sh
to the end of the file
• Save and exit

Yum Repository by Utter Ramblings

Reference: http://www.jasonlitka.com/

Digital Element

Digital Element delivers the de facto standard in IP Intelligence and geotargeting technologies, which are leveraged by the world’s largest ad networks, publishers, emerging technology companies, e-tailers, analytics platforms and more. In business since 1999, Digital Element strives to bring new reach, relevance and revenue to its clients’ online endeavors, with the ultimate goal of improving the online experience for consumers around the world.

Reference: http://www.digital-element.com/

Remove Subversion


#!/bin/sh
echo "Recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`

Annotations source 1.3

Annotations are not supported in -source 1.3 – Maven

To enable annotation the following configuration needs to be added to project pom.xml

</p> <p><build></p> <plugins> <plugin> <artifactid>maven-compiler-plugin</artifactid><br /> <configuration><br /> <source>1.6</source><br /> <target>1.6</target><br /> </configuration> </plugin> </plugins> </build></p> <p>

Maven Settings with IntelliJ

Maven tutorial in 5 minutes

http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.

  1. Settings
  2. Maven
  3. Maven Home Directory:
  4. /usr/share/java/apache-maven-2.0.9

Reference: http://maven.apache.org/download.html

Java Module Dependencies Settings with IntelliJ

  • Project Structure
  • Modules
  • Dependencies
  • Module SDK – new
  • /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0

Jonathan Wellons

Linear Programming, Optimization, Wireless Mesh Network Routing, Traffic Engineering, Operations Research, Algorithms, Programming Languages, Limits of Computing, Computer Science Education, Number Theory and Recreational Mathematics.

Reference: http://jonathanwellons.com/