zoukankan      html  css  js  c++  java
  • sqoop1.4.6配置安装

    1、下载sqoop1.4.6

    2、配置环境变量。

    3、复制sqoop/conf/sqoop-env-template.sh为sqoop-env.sh

    添加相关的配置

    #Setpath to where bin/Hadoop is available

    exportHADOOP_COMMON_HOME=/opt/cdh5/hadoop

    #Setpath to where hadoop-*-core.jar isavailable

    exportHADOOP_MAPRED_HOME=/opt/cdh5/hadoop

    #setthe path to where bin/Hbase isavailable

    exportHBASE_HOME=/opt/cdh5/hbase 

    #Setthe path to where bin/Hive is available

    exportHIVE_HOME= /opt/cdh5/hive

    #Setthe path for where zookeper config diris

    exportZOOCFGDIR= /opt/cdh5/zookeeper

    4、修改$SQOOP_HOME/bin/configure-sqoop

    注释掉HCatalog,Accumulo检查(除非你准备使用HCatalog,Accumulo等HADOOP上的组件) 

    ## Moved to be a runtime check in sqoop.

    #if [ ! -d "${HCAT_HOME}" ]; then

    # echo "Warning: $HCAT_HOME does not exist! HCatalog jobs willfail."

    # echo 'Please set $HCAT_HOME to the root of your HCatalog installation.'

    #fi

    #if [ ! -d "${ACCUMULO_HOME}" ];then

    # echo "Warning: $ACCUMULO_HOME does not exist! Accumulo imports willfail."

    # echo 'Please set $ACCUMULO_HOME to the root of your Accumuloinstallation.'

    #fi 

    5、测试:sqoop version

  • 相关阅读:
    markdown文件的基本常用编写语法
    ajax练习习题一弹窗查看
    jQuery练习二球队移动
    jQuery Ajax
    jQuery练习一好友列表变色
    jq
    jQuery基础知识
    php pod
    php常用代码(一)
    php多维数组化一维数组
  • 原文地址:https://www.cnblogs.com/mowei/p/6733988.html
Copyright © 2011-2022 走看看