Following steps to install Apache Sqoop 1.99.3
Prerequisites:
1. Download sqoop tar
1 | hduser@ubuntu:~$ wget http://www.trieuvan.com/apache/sqoop/1.99.3/sqoop-1.99.3-bin-hadoop200.tar.gz |
2. Extract tar file
1 | hduser@ubuntu:~$ tar xzvf sqoop-1.99.3-bin-hadoop200.tar.gz |
3. Rename folder
1 | hduser@ubuntu:~$ mv sqoop-1.99.3-bin-hadoop200 sqoop |
4. Move folder
1 | root@ubuntu:~# mv /home/hduser/sqoop /usr/local/ |
5. Modify environment
1 | hduser@ubuntu:~$ vi ~/.bashrc |
Insert code below
1 2 3 | export HADOOP_HOME=/usr/local/hadoop export SCOOP_HOME=/usr/local/sqoop export PATH=$PATH:$HADOOP_HOME/bin/:$SCOOP_HOME/bin/ |
6. Reboot the system to apply new configuration
1 | root@ubuntu:~# reboot |
7. Start Sqoop server
Important: make sure Hadoop is started (See more about Hadoop at Install Hadoop)
1 2 3 4 5 6 7 8 9 10 11 12 | hduser@ubuntu:/usr/local/sqoop$ sqoop.sh server start Sqoop home directory: /usr/local/sqoop Setting SQOOP_HTTP_PORT: 12000 Setting SQOOP_ADMIN_PORT: 12001 Using CATALINA_OPTS: Adding to CATALINA_OPTS: -Dsqoop.http.port=12000 -Dsqoop.admin.port=12001 Using CATALINA_BASE: /usr/local/sqoop/server Using CATALINA_HOME: /usr/local/sqoop/server Using CATALINA_TMPDIR: /usr/local/sqoop/server/temp Using JRE_HOME: /usr/local/java/jdk1.7.0_55/ Using CLASSPATH: /usr/local/sqoop/server/bin/bootstrap.jar hduser@ubuntu:/usr/local/sqoop$ |
8. Open the browser to test sqoop server is started
By default the Sqoop server is run at port 12000
OR
We can login Sqoop shell
1 2 3 4 5 | hduser@ubuntu:~$ sqoop.sh client Sqoop home directory: /usr/local/sqoop Sqoop Shell: Type 'help' or '\h' for help. sqoop:000> |
9. Stop Sqoop server
1 | hduser@ubuntu:/usr/local/sqoop$ sqoop.sh server start |
I also have same http://kingsekaran.blogspot.com/2015/07/sqoop2-server-installation-on-ubuntu.html
ReplyDelete