概述
[root@mihaoyu151 ~]# 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
[root@mihaoyu151 ~]# tar -zxf /opt/install/sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz -C /opt/soft/
[root@mihaoyu151 ~]# cd /opt/soft/
[root@mihaoyu151 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
[root@mihaoyu151 soft]# mv sqoop-1.4.6.bin__hadoop-2.0.4-alpha sqoop146
[root@mihaoyu151 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
[root@mihaoyu151 soft]# cd sqoop146/conf/
[root@mihaoyu151 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
[root@mihaoyu151 conf]# mv sqoop-env-template.sh sqoop-env.sh
[root@mihaoyu151 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
[root@mihaoyu151 conf]# cp /opt/soft/hive110/lib/mysql-connector-java-5.1.25.jar ../lib/
[root@mihaoyu151 conf]# vi /etc/profile
#Sqoop
export SQOOP_HOME=/opt/soft/sqoop146
export PATH=$PATH:$SQOOP_HOME/bin
[root@mihaoyu151 conf]# source /etc/profile
[root@mihaoyu151 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
最后
以上就是潇洒冷风为你收集整理的sqoop安装教程 单机版的全部内容,希望文章能够帮你解决sqoop安装教程 单机版所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复