当前位置:网站首页>【sqoop】sqoop1.4.7 安装集成CDH5.13
【sqoop】sqoop1.4.7 安装集成CDH5.13
2022-07-28 16:24:00 【kiraraLou】
前言
使用apache sqoop 集成CDH5.13.
一、下载
下载地址: http://archive.apache.org/dist/sqoop/
这里使用的连接:
http://archive.apache.org/dist/sqoop/1.4.7/sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz
二、安装
1. 解压
tar -xzvf sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz -C /home/rong/
2. 重命名
mv sqoop-1.4.7.bin__hadoop-2.6.0 sqoop-1.4.7
3. 软连接
ln -s sqoop-1.4.7 sqoop
4. 配置环境变量
vim /etc/profile
添加如下内容:
export SQOOP_HOME=/home/rong/sqoop-1.4.7
export PATH=$SQOOP_HOME/bin:$PATH
5. 配置conf
a. 修改文件名
cp ${SQOOP_HOME}/conf/sqoop-env-template.sh sqoop-env.sh
b. 修改文件内容
vi sqoop-env.sh
设置如下内容:
#Set path to where bin/hadoop is available
#
export HADOOP_COMMON_HOME=/opt/cloudera/parcels/CDH/lib/hadoop
#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/opt/cloudera/parcels/CDH/lib/hadoop-yarn
#set the path to where bin/hbase is available
export HBASE_HOME=/opt/cloudera/parcels/CDH/lib/hbase
#Set the path to where bin/hive is available
export HIVE_HOME=/opt/cloudera/parcels/CDH/lib/hive
export HIVE_CONF_DIR=/etc/hive/conf
#Set the path for where zookeper config dir is
export ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH/lib/zookeeper
export ZOOCFGDIR=/etc/zookeeper/conf/
如果是用的CDH集群,那么这个基本是不需要做变更的
6. 拷贝jar包
cp /opt/cloudera/parcels/CDH/lib/hive/lib/hive-exec.jar /home/rong/sqoop/lib/
cp /opt/cloudera/parcels/CDH/lib/hive/lib/hive-common.jar /home/rong/sqoop/lib/
cp /opt/cloudera/parcels/CDH/lib/hadoop/hadoop-common.jar /home/rong/sqoop/lib/
验证
${SQOOP_HOME}/bin/sqoop-version
边栏推荐
- Modeling Semantics with Gated Graph Neural Networks for KBQA
- Round 1C 2022 - Code jam 2022 b.square (Mathematics, thinking)
- Problem solution of code heartstrings Junior Group (official competition) of Dalian University of Technology (Development Zone campus) in 2021
- The 2021 ICPC ASIA Taipei Regional programming contest L. leadfoot (combinatorics /2-adic assignment function +kummer theorem)
- Using MVC in the UI of unity
- Iris framework practice of goweb development: project summary and review
- Unity shader realizes water wave effect with noise texture
- Jupyter notebook win installation record
- Using SQL server agent job to restore the database regularly
- Vscode界面介绍
猜你喜欢

valarray数值库学习

Mysql database addition, deletion, modification and query (detailed explanation of basic operation commands)

微服务架构-服务注册中心和服务网关(6.8) (转载)

Verilog daily question (vl27 settable counter)

配置V530交换机步骤

Unity shader realizes mirror effect with rendered texture

GEAR: Graph-based Evidence Aggregating and Reasoning for Fact Verification

The practice of beego framework in goweb development: Section I Introduction to beego framework

Goweb开发之Beego框架实战:第四节 数据库配置及连接

带参数的微信小程序二维码生成
随机推荐
Goweb开发之Beego框架实战:第二节 项目初始化配置
Goweb开发之Beego框架实战:第四节 数据库配置及连接
【atlas】atlas 编译报错整理(全)
The practice of the beego framework for goweb development: Section V project construction and user registration
Unity shader cartoon style rendering
Basic principle of asynchronous FIFO (simple implementation based on Verilog)
Verilog 每日一题(VL26 简易秒表)
Message Passing for Complex Question Answering over Knowledge Graphs
Unity shader realizes water wave effect with noise texture
Verilog 每日一题 (VL24 多bit MUX同步器 跨时域输出)
Learn about service discovery in kubernetes
2022牛客多校第二场CDE
Reasoning Over Semantic-Level Graph for Fact Checking
《Kubernetes》你需要掌握的 Service 和 Ingress
Create a custom paging control
Verilog daily question (vl26 simple stopwatch)
Solve the problem of exclusive SQL Server database
Proof of the third scene (f) in 22 years
Verilog daily question (vl27 settable counter)
Function接口之andThen