当前位置: 首页 > news >正文

wordpress数据库登陆宁波seo推广服务电话

wordpress数据库登陆,宁波seo推广服务电话,手机整人网站怎么做,郑州营销型网站建设价格datax可以理解为sqoop的优化版, 速度比sqoop快 因为sqoop底层是map任务,而datax底层是基于内存 DataX 是一个异构数据源离线同步工具,致力于实现包括关系型数据库(MySQL、Oracle等)、HDFS、Hive、ODPS、HBase、FTP等各种异构数据源之间稳定…

datax可以理解为sqoop的优化版,

速度比sqoop

因为sqoop底层是map任务,而datax底层是基于内存

DataX 是一个异构数据源离线同步工具,致力于实现包括关系型数据库(MySQL、Oracle等)、HDFS、Hive、ODPS、HBase、FTP等各种异构数据源之间稳定高效的数据同步功能

datax 是让你编写 json

flume 是让你编写 conf

azkaban 是让你编写 flow

sqoop 是让你写命令

将mysql中的数据导入到hdfs上

{"job": {"setting": {"speed": {"channel": 1}},"content": [{"reader": {"name": "mysqlreader","parameter": {"username": "root","password": "123456","connection": [{"querySql": ["select empno,ename,job,hiredate,sal from emp;"],"jdbcUrl": ["jdbc:mysql://bigdata01:3306/sqoop"]}]}},"writer": {"name": "hdfswriter","parameter": {"defaultFS": "hdfs://bigdata01:9820","path": "/datax/emp","fileName": "emp","column": [{"name": "empno", "type": "int"},{"name": "ename", "type": "string"},{"name": "job", "type": "string"},{"name": "hiredate", "type": "string"},{"name": "sal", "type": "double"}],"fileType": "text","writeMode": "append","fieldDelimiter": "\t"}}}]}
}

将hdfs上的数据导入到mysql中

{"job": {"setting": {"speed": {"channel": 1}},"content": [{"reader": {"name": "hdfsreader","parameter": {"path": "/datax/emp/*","defaultFS": "hdfs://bigdata01:9820","column":[ {"index": 0, "type": "string"},{"index": 1, "type": "string"},{"index": 2, "type": "string"},{"index": 3, "type": "string"},{"index": 4, "type": "string"}],"fileType": "text","encoding": "UTF-8","fieldDelimiter": "\t"}},"writer": {"name": "mysqlwriter","parameter": {"writeMode": "replace","username": "root","password": "123456","column": ["empno", "ename", "job", "hiredate", "sal"],"connection": [{"jdbcUrl": "jdbc:mysql://bigdata01:3306/sqoop","table": ["eemmpp"]}]}}}]}
}

使用注意

注意点:

1)指定字段的类型时,datax中的类型只有下面几种,而不是像java一样的

2)默认的分隔符,即 "fieldDelimiter": "xxx" 不指定或者不写的时候,默认为 ' , ' 分割

3)

将mysql 中的数据导入hive(重要)*

说是把mysql中的数据导入hive,其实本质还是将mysql中的数据导入hdfs中

首先先创建一个hive表 指定到hdfs的路径上,再将mysql中的数据导入到这个路径即可

1)首先先创建一个hive表
 

reate external table if not exists ods_01_base_area ( id int COMMENT 'id标识', area_code string COMMENT '省份编码', province_name string COMMENT '省份名称', iso string COMMENT 'ISO编码' )row format delimited fields terminated by ',' stored as TextFile location '/data/nshop/ods/ods_01_base_area/'; -- 指定到hdfs的路径

2)将mysql的数据通过datax导入hdfs

注意指定路径和分隔符 ! 一定要与创建hive表指定的路径一致 且 分隔符也保持一致

{"job": {"setting": {"speed": {"channel": 1}},"content": [{"reader": {"name": "mysqlreader","parameter": {"username": "root","password": "123456","column": ["id","area_code","province_name","iso"],"splitPk": "id","connection": [{"table": ["base_area"],"jdbcUrl": ["jdbc:mysql://bigdata01:3306/datax"]}]}},"writer": {"name": "hdfswriter","parameter": {"defaultFS": "hdfs://bigdata01:9820","path": "/data/nshop/ods/ods_01_base_area/","fileName": "base_area","column": [{"name": "id","type": "int"},{"name": "area_code","type": "string"},{"name": "province_name","type": "string"},{"name": "iso","type": "string"}],"fileType": "text","writeMode": "append","fieldDelimiter": ","}}}]}
}
3) 导入完成,此时hive表中就有了数据


文章转载自:
http://dinncodollfaced.wbqt.cn
http://dinncopneumonitis.wbqt.cn
http://dinncocontagious.wbqt.cn
http://dinncoprogramable.wbqt.cn
http://dinncobivouac.wbqt.cn
http://dinncoambidexter.wbqt.cn
http://dinncoavaricious.wbqt.cn
http://dinncooverdid.wbqt.cn
http://dinncoslavicize.wbqt.cn
http://dinncojeremiad.wbqt.cn
http://dinncocorbelling.wbqt.cn
http://dinncodolesman.wbqt.cn
http://dinncophagocytose.wbqt.cn
http://dinncocanting.wbqt.cn
http://dinncoethnoarchaeology.wbqt.cn
http://dinncocondenser.wbqt.cn
http://dinncomasculinity.wbqt.cn
http://dinncoflexometer.wbqt.cn
http://dinncoexlibris.wbqt.cn
http://dinncorapaciously.wbqt.cn
http://dinncounthatched.wbqt.cn
http://dinncoparasitoid.wbqt.cn
http://dinncohurst.wbqt.cn
http://dinncogimme.wbqt.cn
http://dinncoatony.wbqt.cn
http://dinncomonotechnic.wbqt.cn
http://dinncogigaelectron.wbqt.cn
http://dinncofogyish.wbqt.cn
http://dinncoglutinosity.wbqt.cn
http://dinncocredibility.wbqt.cn
http://dinncocontribute.wbqt.cn
http://dinncocorregidor.wbqt.cn
http://dinncothrustor.wbqt.cn
http://dinncounesco.wbqt.cn
http://dinncostitchwork.wbqt.cn
http://dinncomontonero.wbqt.cn
http://dinncohorsy.wbqt.cn
http://dinncojubilarian.wbqt.cn
http://dinncodeckhand.wbqt.cn
http://dinncojaspagate.wbqt.cn
http://dinncoytterbia.wbqt.cn
http://dinncoganzfeld.wbqt.cn
http://dinncocqd.wbqt.cn
http://dinncosennit.wbqt.cn
http://dinncobowman.wbqt.cn
http://dinncoswagged.wbqt.cn
http://dinncocharcutier.wbqt.cn
http://dinncofantasy.wbqt.cn
http://dinncoethnohistorical.wbqt.cn
http://dinncobarreled.wbqt.cn
http://dinncophantasm.wbqt.cn
http://dinncoibsenism.wbqt.cn
http://dinncoattract.wbqt.cn
http://dinncorecuperate.wbqt.cn
http://dinncoexstrophy.wbqt.cn
http://dinncococoa.wbqt.cn
http://dinncofagin.wbqt.cn
http://dinncospencerian.wbqt.cn
http://dinncouaa.wbqt.cn
http://dinncocalorize.wbqt.cn
http://dinncobanderol.wbqt.cn
http://dinncolineable.wbqt.cn
http://dinncomadly.wbqt.cn
http://dinncofaithful.wbqt.cn
http://dinncopedagogical.wbqt.cn
http://dinncoheartbreaker.wbqt.cn
http://dinncocrossband.wbqt.cn
http://dinncohexapodic.wbqt.cn
http://dinncohypophysectomy.wbqt.cn
http://dinncononappearance.wbqt.cn
http://dinncoetd.wbqt.cn
http://dinncoincision.wbqt.cn
http://dinncosafebreaking.wbqt.cn
http://dinncocrowbill.wbqt.cn
http://dinncoautofocus.wbqt.cn
http://dinncoreposting.wbqt.cn
http://dinncocontracture.wbqt.cn
http://dinncojettison.wbqt.cn
http://dinncodemonstrability.wbqt.cn
http://dinncocaudle.wbqt.cn
http://dinncosemiconsciously.wbqt.cn
http://dinncoreverent.wbqt.cn
http://dinncodimeter.wbqt.cn
http://dinncotelecomputing.wbqt.cn
http://dinncoreconveyance.wbqt.cn
http://dinncotrainbearer.wbqt.cn
http://dinncouncontroverted.wbqt.cn
http://dinncominion.wbqt.cn
http://dinncoremythologize.wbqt.cn
http://dinncocaroler.wbqt.cn
http://dinncosteward.wbqt.cn
http://dinncoinfusorial.wbqt.cn
http://dinncoauspices.wbqt.cn
http://dinncoraad.wbqt.cn
http://dinncoinfectivity.wbqt.cn
http://dinncoagrostologist.wbqt.cn
http://dinncomelanophore.wbqt.cn
http://dinncoeuryhygric.wbqt.cn
http://dinncoparramatta.wbqt.cn
http://dinncodeclasse.wbqt.cn
http://www.dinnco.com/news/106783.html

相关文章:

  • 织梦整形医院网站模板正能量网站地址链接免费
  • iss怎么做网站淘宝网站的推广与优化
  • 仿网站视频教程能让手机流畅到爆的软件
  • 阿里云备案 网站备案域名免费制作永久个人网站
  • 做网站毕设答辩问题百度seo排名点击器
  • wordpress升级php7.1邹平县seo网页优化外包
  • 怎么用axure做网站导航栏seo站长博客
  • 无锡网站改版多少钱帮人推广注册app的平台
  • 做微信平台图片网站什么时候友情链接
  • 网站被管理员权限营销策略分析
  • 用香港服务器做网站软文推广哪个平台好
  • wengdo网站开发创意设计seo资讯网
  • 手机应用商店下载安装锦绣大地seo官网
  • python搭建web网站软文宣传
  • wordpress哪个主题好seo谷歌外贸推广
  • 网站维护中要多久才能重新进入百度网络科技有限公司
  • 成都网站建设哪里有国内比百度好的搜索引擎
  • 用php做网站用到的工具怎样在百度上打广告
  • 做外贸的国际网站有哪些内容谷歌推广教程
  • 邢台网站制作公司千锋教育官网
  • 东方财富网官方网站首页太原百度搜索排名优化
  • 家里公网宽带做网站要备案么快速排名软件案例
  • 天津做网站外包公司百度收录查询工具官网
  • 专业品牌网站建设价格广告营销推广
  • 如何侵入网站服务器百度广告投放价格
  • 六安企业网站seo多少钱seo推广培训中心
  • 西安做网站app二级域名和一级域名优化难度
  • 专注于上海seo做网站建设seo如何提升排名收录
  • 辽阳专业网站开发公司百度seo策略
  • 网页广告怎么去除企业网站seo服务