sqoop安装教程 单机版

[[email protected] ~]# ll /opt/install/
total 2597160
-rw-r--r--. 1 root root   16870735 Nov 23 07:42 sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz

[[email protected] ~]# tar -zxf /opt/install/sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz -C /opt/soft/

[[email protected] ~]# cd /opt/soft/
[[email protected] soft]# ll
total 16
drwxr-xr-x. 16 1106  4001  270 Nov  8 21:06 hadoop260
drwxr-xr-x. 32 1106  4001 4096 Nov 19 17:34 hbase120
drwxr-xr-x. 12 1106  4001  209 Nov 11 03:59 hive110
drwxr-xr-x.  7   10   143  245 Jul  4  2019 jdk180
-rw-------.  1 root root   658 Nov  9 14:33 nohup.out
drwxr-xr-x.  9 root root  4096 Apr 27  2015 sqoop-1.4.6.bin__hadoop-2.0.4-alpha
drwxr-xr-x. 13  501 wheel  287 Nov 23 07:38 zeppelin090
drwxr-xr-x. 15 root root  4096 Nov  8 21:05 zookeeper345

[[email protected] soft]# mv sqoop-1.4.6.bin__hadoop-2.0.4-alpha sqoop146
[[email protected] soft]# ll
total 16
drwxr-xr-x. 16 1106  4001  270 Nov  8 21:06 hadoop260
drwxr-xr-x. 32 1106  4001 4096 Nov 19 17:34 hbase120
drwxr-xr-x. 12 1106  4001  209 Nov 11 03:59 hive110
drwxr-xr-x.  7   10   143  245 Jul  4  2019 jdk180
-rw-------.  1 root root   658 Nov  9 14:33 nohup.out
drwxr-xr-x.  9 root root  4096 Apr 27  2015 sqoop146
drwxr-xr-x. 13  501 wheel  287 Nov 23 07:38 zeppelin090
drwxr-xr-x. 15 root root  4096 Nov  8 21:05 zookeeper345

[[email protected] soft]# cd sqoop146/conf/
[[email protected] conf]# ll
total 28
-rw-rw-r--. 1 root root 3895 Apr 27  2015 oraoop-site-template.xml
-rw-rw-r--. 1 root root 1404 Apr 27  2015 sqoop-env-template.cmd
-rwxr-xr-x. 1 root root 1345 Apr 27  2015 sqoop-env-template.sh
-rw-rw-r--. 1 root root 5531 Apr 27  2015 sqoop-site-template.xml
-rw-rw-r--. 1 root root 5531 Apr 27  2015 sqoop-site.xml

[[email protected] conf]# mv sqoop-env-template.sh sqoop-env.sh

[[email protected] conf]# vi sqoop-env.sh 
23 export HADOOP_COMMON_HOME=/opt/soft/hadoop260
26 export HADOOP_MAPRED_HOME=/opt/soft/hadoop260
29 export HBASE_HOME=/opt/soft/hbase120
32 export HIVE_HOME=/opt/soft/hive110
35 export ZOOCFGDIR=/opt/soft/zookeeper345/conf

[[email protected] conf]# cp /opt/soft/hive110/lib/mysql-connector-java-5.1.25.jar ../lib/

[[email protected] conf]# vi /etc/profile
#Sqoop
export SQOOP_HOME=/opt/soft/sqoop146
export PATH=$PATH:$SQOOP_HOME/bin

[[email protected] conf]# source /etc/profile

[[email protected] conf]# sqoop version
Warning: /opt/soft/sqoop146/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /opt/soft/sqoop146/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
21/11/23 08:07:09 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6
Sqoop 1.4.6
git commit id c0c5a81723759fa575844a0a1eae8f510fa32c25
Compiled by root on Mon Apr 27 14:38:36 CST 2015

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
https://sourceforge.net/projects/orwelldevcpp/

)">
下一篇>>