简单写一下如何将订单表sqoop到hbase表中的步骤。

下表:

1、通过hbase shell 打开hbase。

2、创建一个hbase表

create 'so','o'

3、将so表的数据导入到hbase中。

opt文件:

--connect:数据库
--username :数据库用户名
--password :数据库密码
--table :需要sqoop的表
--columns :表中的列
--hbase-table:hbase中的table
--column-family:列族
--hbase-row-key:指定rowkey
import
--connect
jdbc:mysql://192.168.2.115:3306/test
--username
root
--password
123456
-m
1
--null-string
''
--table
so
--columns
"date,order_id,user_id,order_amt,order_id_new"
--hbase-table
so
--column-family
o
--hbase-row-key
order_id_new

执行:sqoop --options-file ./so_hbase.opt

最新文章

  1. 执行ssh-add时出现Could not open a connection to your authentication agent
  2. 常见的HTTP返回码如4xx, 5xx
  3. 【BZOJ1012】 【JSOI2008】最大数maxnumber
  4. 分形几何算法和实现(C语言)
  5. CollectionFramework
  6. append appendChild appendTo区别
  7. Win8增加了快速启动功能......
  8. 计算机视觉code与软件
  9. Foreign Exchange(交换生换位置)
  10. 21副GIF动图让你了解各种数学概念(转。太强大了)
  11. 把VBScript的函数迁移到C#.NET
  12. Keras分类问题
  13. PAT甲题题解-1121. Damn Single (25)-水题
  14. 学习4__STM32--中断
  15. HDU4632 Poj2955 括号匹配 整数划分 P1880 [NOI1995]石子合并 区间DP总结
  16. 安装nodejs安装npm安装cpnm安装vue-cli脚手架
  17. CentOS7安装OpenStack(Rocky版)-07.安装horizon服务组件(控制节点dashboard)
  18. Chrome在Ubuntu中缺少依赖项,无法安装
  19. (转)Javascript模块化编程(二):AMD规范
  20. nginx.conf常用配置解析

热门文章

  1. bzoj3083 3306
  2. WIA Property Constant Definitions
  3. 关于HttpsURLConnection的连接问题
  4. CXF Service Interceptor请求,响应报文之控制台输出
  5. [LeetCode] Palindrome Partitioning II 解题笔记
  6. centos下apache thrift的安装
  7. c++ 流基本概念
  8. DevExpress 控件 GridControl常见用法
  9. JS代码获取当前日期时支持IE,不兼容FF和chrome,解决这个问题,我们需要把获取时间的getYear()函数换成getFullYear()
  10. Android之打开闪光灯关键代码