安装Sqoop的时候出现Error: /root/training/sqoop-1.4.5.bin__hadoop-0.23/../hadoop-mapreduce does not exist!

博客记录了执行sqoop help命令时出现的错误,错误信息显示/root/training/sqoop-1.4.5.bin__hadoop-0.23/../hadoop-mapreduce不存在,需设置$HADOOP_MAPRED_HOME。原因是要修改配置文件,给出了修改步骤,再次执行sqoop help证明配置成功。

具体的错误信息如下:

[root@bigdata11 lib]# sqoop help
Error: /root/training/sqoop-1.4.5.bin__hadoop-0.23/../hadoop-mapreduce does not exist!
Please set $HADOOP_MAPRED_HOME to the root of your Hadoop MapReduce installation.

错误的原因是需要修改配置文件

修改配置文件
    cd /$SQOOP_HOME/conf  
    vi  sqoop-env-template.sh
    export HADOOP_COMMON_HOME=/root/training/hadoop-2.7.3
    export HADOOP_MAPRED_HOME=/root/training/hadoop-2.7.3

 


再次执行sqoop help

证明配置成功

Warning: /home/sqoop-1.4.5-cdh5.3.6/../hbase does not exist! HBase imports will fail. Please set $HBASE_HOME to the root of your HBase installation. Warning: /home/sqoop-1.4.5-cdh5.3.6/../hcatalog does not exist! HCatalog jobs will fail. Please set $HCAT_HOME to the root of your HCatalog installation. Warning: /home/sqoop-1.4.5-cdh5.3.6/../accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. Warning: /home/sqoop-1.4.5-cdh5.3.6/../zookeeper does not exist! Accumulo imports will fail. Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation. 25/09/04 23:24:05 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5-cdh5.3.6 25/09/04 23:24:05 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead. 25/09/04 23:24:05 INFO oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop is disabled. 25/09/04 23:24:05 INFO manager.SqlManager: Using default fetchSize of 1000 25/09/04 23:24:05 INFO tool.CodeGenTool: Beginning code generation 25/09/04 23:24:05 INFO manager.OracleManager: Time zone has been set to GMT 25/09/04 23:24:05 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM APPEND_TEST t WHERE 1=0 25/09/04 23:24:05 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /home/hadoop-2.8.2 Note: /tmp/sqoop-root/compile/6a88a05f1ea3fd8256509275ffd22b72/APPEND_TEST.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 25/09/04 23:24:06 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-root/compile/6a88a05f1ea3fd8256509275ffd22b72/APPEND_TEST.jar 25/09/04 23:24:06 INFO manager.OracleManager: Time zone has been set to GMT 25/09/04 23:24:06 INFO manager.OracleManager: Time zone has been set to GMT 25/09/04 23:24:06 INFO mapreduce.ImportJobBase: Beginning import of APPEND_TEST 25/09/04 23:24:06 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar 25/09/04 23:24:06 INFO manager.OracleManager: Time zone has been set to GMT 25/09/04 23:24:06 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps 25/09/04 23:24:06 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
最新发布
09-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值