JDK
You have Java and the latest JDK on your OS X system.
Install and config hadoop
Install
|
|
Config
Edit hadoop-env.sh
The file can be located at /usr/local/Cellar/hadoop/2.7.3/libexec/etc/hadoop/hadoop-env.sh where 2.7.3 is the hadoop version.
Find the line with
and change it to
Edit Core-site.xml
The file can be located at /usr/local/Cellar/hadoop/2.7.3/libexec/etc/hadoop/core-site.xml .
Edit configuration at last.
Edit hdfs-site.xml
The file can be located at /usr/local/Cellar/hadoop/2.7.3/libexec/etc/hadoop/mapred-site.xml and by default will be blank. You can copy and change mapred-site.xml.template.
Edit hdfs-site.xml
The file can be located at /usr/local/Cellar/hadoop/2.7.3/libexec/etc/hadoop/hdfs-site.xml .
Edit configuration at last
Alias
To simplify life edit your ~/.bash_profile using vim and add the following two commands.
Edit your ~/.bashrc or ~/.zshrc using vim and add the following two commands
and excute
in the terminal to update.
Before we can run Hadoop we first need to format the HDFS using
SSH Localhost
Nothing needs to be done here if you have already generated ssh keys. To verify just check for the existance of ~/.ssh/id_rsa and the ~/.ssh/id_rsa.pub files. If not the keys can be generated using
Enable Remote Login
“System Preferences” -> “Sharing”. Check “Remote Login”
Authorize SSH Keys
To allow your system to accept login, we have to make it aware of the keys that will be used
Let’s try to login.
Running Hadoop
Now we can run Hadoop just by typing
and stopping using
Good to know
We can access the Hadoop web interface by connecting to
Install zookeeper
|
|
Install hbase
Install
|
|
Alias
To simplify life edit your ~/.bash_profile using vim and add the following two commands.
Good to know
|
|
Install happybase
|
|
Examplesfor happybase
Code
|
|
##Problems need to solve
Connect again
Need to coonect again after error or don’t use after second
TTransportException
|
|
Broken pipe
|
|
Thrift closed
thrift closed selfly after one hour, need to config it.
|
|