首页 > 其他分享 >Sqoop安装部署

Sqoop安装部署

时间:2022-08-24 11:12:17浏览次数:59  
标签:bin sqoop 部署 root Sqoop hadoop server export 安装

今天进行了Sqoop的安装部署工作。

1、导入Sqoop的tar包到/export/server下,并进行解压。

cd export/servers   进入相应目录

tar zxvf sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz  解压Sqoop包

mv sqoop-1.4.6.bin__hadoop-2.0.4-alpha sqoop  给Sqoop重命名

2、Sqoop配置Hadoop、Hive路径

查看自己的Hadoop、Hive路径

cd /export/server  进入目录
cd hadoop-3.3.0/  进入Hadoop目录
pwd  查看
/export/server/hadoop-3.3.0 这个是结果
cd ..  返回上一级目录
cd apache-hive-3.1.2-bin/  进入hive目录
pwd 查看
/export/server/apache-hive-3.1.2-bin

 

修改配置文件

cd sqoop  进入scoop目录
cd conf  进入conf目录
ll  查看conf下文件

总用量 28
-rw-rw-r-- 1 root root 3895 4月 27 2015 oraoop-site-template.xml  
-rw-rw-r-- 1 root root 1404 4月 27 2015 sqoop-env-template.cmd
-rwxr-xr-x 1 root root 1345 4月 27 2015 sqoop-env-template.sh
-rw-rw-r-- 1 root root 5531 4月 27 2015 sqoop-site-template.xml
-rw-rw-r-- 1 root root 5531 4月 27 2015 sqoop-site.xml

mv sqoop-env-template.sh sqoop-env.sh  修改默认名称

vim sqoop-env.sh  编辑

 

文件信息

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# included in all the hadoop scripts with source command
# should not be executable directly
# also should not be passed any arguments, since we need original $*

# Set Hadoop-specific environment variables here.

#Set path to where bin/hadoop is available
export HADOOP_COMMON_HOME=/export/server/hadoop-3.3.0

#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/export/server/hadoop-3.3.0

#set the path to where bin/hbase is available
#export HBASE_HOME=

#Set the path to where bin/hive is available
export HIVE_HOME=/export/server/apache-hive-3.1.2-bin

#Set the path for where zookeper config dir is
#export ZOOCFGDIR=

标黄的是修改了的地方。

3、Sqoop配置mysql

这里需要导入mysql的连接驱动jar包,我这里是到hive lib下复制的。

cd /export/server/apache-hive-3.1.2-bin/lib/  

ll

cp mysql-connector-java-5.1.32.jar /export/server/sqoop/lib/  复制移动

cd /export/server/sqoop/

bin/sqoop list-databases --connect jdbc:mysql://localhost:3306/ --username root --password hadoop  配置

 

 到这里就配置成功了。

标签:bin,sqoop,部署,root,Sqoop,hadoop,server,export,安装
From: https://www.cnblogs.com/wjingbo/p/16619131.html

相关文章

  • docker 安装pgsql
    1、下载Postgres镜像下载最新版本的Postgres镜像(默认是latest版本):dockerpullpostgres如果想要下载其他版本,比如常用的10版本的话,在镜像后面指定版本:docker......
  • Linux安装mysql8.0
    MySQL配置MySQL8安装源sudorpm-Uvhhttps://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm安装MySQL8(提示下载包,选y,后面有其他提示都选y)sudoyu......
  • Linux安装Vue环境
    原文链接nodejsnodejs下载地址:https://nodejs.org/en/download/下载后上传到服务器,并解压。进入解压的文件夹,可以查看版本:./bin/node-v建立node软连接,变为全......
  • Redis下载安装、Redis数据结构
    Redis下载安装2.下载安装1,官网:https://redis.id2.中文网:http://www.redis.net.cn/3.解压直接可以使用∶*redis.windows.conf:配置文件*redis-cli.exe:redis的客......
  • linux安装python3
    Linux安装python3.7.13以下例子服务器为:centos7官网下载安装包https://www.python.org/downloads/上传到服务器#我是把包放在了/usr/local下Python-3.7.13.tgz......
  • linux安装python虚拟环境并启动python程序
    安装python虚拟环境并启动python应用安装虚拟环境#安装virtualenv虚拟环境工具pip37为python命令安装python应用时创建的/usr/bin/pip37pip37installvirtuale......
  • Docker安装Open LDAP并启用syncrepl镜像同步
    简单介绍如何快速通过docker启动openldap服务,并通过syncrepl机制实现目录数据的镜像复制。本文只涉及关键步骤,相关技术的入门请移步入门教程。所有本文的配置和脚本只针对b......
  • 若依vue部署遇到的一些问题
    背景:生产服务器9000端口,更目录/用于跳转到vue打好的包下,/scoreMange-prod-api用于匹配后台接口;在域名映射ip的时候遇到了问题,一级Nginx配置:  二级Nginx配置:  ......
  • Python-Anaconda介绍、安装及使用教程
    〇、序一、什么是Anaconda?1.简介2.特点3.Anaconda、conda、pip、virtualenv的区别①Anaconda②conda③pip④virtualenv⑤pip与conda比较→依赖......
  • R语言中如何查看是否安装了Rtools
     001、一下查询结果显示没有安装。pkgbuild::find_rtools(debug=TRUE) 002、安装rtools(以版本对应)下载rtools:https://cran.r-project.org/bin/windows/Rtools......