2. PREREQUISITES BEFORE INSTALLING
SQOOP
Verify if your server has java installed
java –version
You need hadoop already installed on your server
Try:
hadoop version
If you don’t have java and hadoop already installed, wont be
possible to run sqoop on your server
3. Previous on this course, we created a folder called hadoop_install
Create a subfolder within hadoop_install, name it sqoop
Move into this new folder try command:
cd sqoop
For this example I will download sqoop from apache: http://www-
us.apache.org/dist/sqoop/1.4.6/sqoop-1.4.6.bin__hadoop-0.23.tar.gz
You can download it using wget command from terminal
wget http://www-us.apache.org/dist/sqoop/1.4.6/sqoop-1.4.6.bin__hadoop-0.23.tar.gz
5. EDIT BASH PROFILE
You would need to edit bash profile
sudo nano ~/.bashrc
To refresh the new values Type
source ~/.bashrc
See full text next slide
7. POINT YOUR SQOOP CONF FILE O YOUR
ACTUAL HADOOP FOLDER
You need to point your sqoop file to your actual hadoop conf files
Within path: home/hadoop/hadoop_install/sqoop/sqoop-1.4.6.bin__hadoop-0.23/conf
Find the file: sqoop-env-template.sh
Modify the variables(remove the ‘#’):
export HADOOP_MAPRED_HOME=/home/hadoop/hadoop_install/hadoop-2.7.3
export HADOOP_COMMON_HOME=/home/hadoop/hadoop_install/hadoop-2.7.3