In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The sqoop currently in use imports data from oracle into hbase.
Sqoop import-- connect jdbc:oracle:thin:@192.168.193.37:1521:hispacedb-- username hwmarket-- password hwmarket37-- M1-- query "select g.imei hh34:mi:ss' g.id as sign, to_char (g.logindatetemerenzyyyylivedddMMmuryMody) as crtdate,g.buildNumber,g.modelnumber,g.firmwarever as firmware,g.hispaceNumber,g.cno,to_char (g.updateTimeMMMuyycombe dd hh34:mi:ss') as updateTime, g.netjold g.sourcecoverall 'density '' screen from l_logonlog_egame g where\ $CONDITIONS "--columns IMEI,SIGN,CRTDATE,BUILDNUMBER,MODELNUMBER,FIRMWARE,HISPACENUMBER,CNO,UPDATETIME,NET,SOURCE,DENSITY,SCREEN-- hbase-create-table-- hbase-table h_active_device_info_gamecenter-- hbase-row-key IMEI-- column-family data
For some specific parameters, please see api on sqoop's official website.
The speed of pouring in data is still very fast. 1kw data can be imported in 10 minutes.
In addition, I found that the field in hbase cannot be changed when sqoop is imported from oracle to hbase. It must be consistent with the field name on this side of oracle. I don't know if it is my own problem. If I have anything clear, I can share it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.