第一步。下载、解压、配置环境变量:
官网下载sqoop1.99.3
http://mirrors.cnnic.cn/apache/sqoop/1.99.3/
将sqoop解压到目标文件夹,我的是
/home/fulong/Sqoop/sqoop-1.99.3-bin-hadoop200
配置环境变量:
export SQOOP_HOME=/home/fulong/Sqoop/sqoop-1.99.3-bin-hadoop200
export PATH=$PATH:$SQOOP_HOME/bin
export CATALINA_BASE=$SQOOP_HOME/server
export LOGDIR=$SQOOP_HOME/logs/
第二步,改动配置文件:
改动配置文件catalina.properties:
vim $SQOOP_HOME/server/conf/catalina.properties
在文件里找到common.loader,在其后加入hadoop相关jar包路径,终于效果例如以下
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/../lib/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/common/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/common/lib/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/hdfs/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/hdfs/lib/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/mapreduce/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/mapreduce/lib/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/tools/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/tools/lib/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/yarn/*.jar,/home/fulong/Hadoop/hadoop-2.2.0/share/hadoop/yarn/lib/*.jar
改动配置文件sqoop.properties:
相关阅读:
关于博客
lua中table复制
logstash收集慢查询日志配置
logstash的timestamp使用日志中的日期
logstash收集bash_history历史命令
使用supervisord监控logstash
logstash 2.2以上版本,nginx 错误日志切割
结合ELK进行分析PV,构建异步的WAF
正则匹配嵌套结构
一道关于停车计费的问题
-
原文地址:https://www.cnblogs.com/llguanli/p/6842745.html
lua中table复制
logstash收集慢查询日志配置
logstash的timestamp使用日志中的日期
logstash收集bash_history历史命令
使用supervisord监控logstash
logstash 2.2以上版本,nginx 错误日志切割
结合ELK进行分析PV,构建异步的WAF
正则匹配嵌套结构
一道关于停车计费的问题