ITPub博客

首页 > 大数据 > Hadoop > sqooq安装

sqooq安装

原创 Hadoop 作者:suifeng2316 时间:2015-04-15 17:19:09 0 删除 编辑
--下载安装文件
http://archive.cloudera.com/cdh/3/hadoop-0.20.2-CDH3B4.tar.gz
http://archive.cloudera.com/cdh/3/sqoop-1.2.0-CDH3B4.tar.gz

http://mirrors.cnnic.cn/apache/sqoop/1.4.5/sqoop-1.4.5.bin__hadoop-1.0.0.tar.gz

--解压
[root@h1 zip]# tar -zxvf sqoop-1.2.0-CDH3B4.tar.gz 
[root@h1 local]# mv sqoop-1.2.0-CDH3B4 /usr/local/
--加入mysql的jdbc驱动
/usr/local/sqoop-1.2.0-CDH3B4/lib
--修改配置文件
--注释掉hbase和zookeeper检查
[root@h1 bin]# pwd
/usr/local/sqoop-1.2.0-CDH3B4/bin
[root@h1 bin]# vi configure-sqoop 
--修改属主
[root@h1 local]# chown -R hadoop:hadoop sqoop-1.2.0-CDH3B4/
--启动hadoop
[hadoop@h1 bin]$ ./sqoop help
usage: sqoop COMMAND [ARGS]
Available commands:
  codegen            Generate code to interact with database records
  create-hive-table  Import a table definition into Hive
  eval               Evaluate a SQL statement and display the results
  export             Export an HDFS directory to a database table
  help               List available commands
  import             Import a table from a database to HDFS
  import-all-tables  Import tables from a database to HDFS
  job                Work with saved jobs
  list-databases     List available databases on a server
  list-tables        List available tables in a database
  merge              Merge results of incremental imports
  metastore          Run a standalone Sqoop metastore
  version            Display version information


See 'sqoop help COMMAND' for information on a specific command.


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23073818/viewspace-1578331/,如需转载,请注明出处,否则将追究法律责任。

下一篇: sqoop简单使用
请登录后发表评论 登录
全部评论

注册时间:2011-09-14

  • 博文量
    48
  • 访问量
    178812