In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
First execute on the virtual machine where the mysql database is installed
Mysql-u root-p
The password for entering sql is empty.
Create database stock
Grant all privileges on. To root@localhost identified by 'transwarp'
Flush privileges; / / refresh the system permissions table
Then execute:
Assign all permissions to the three hosts in the cluster in MySQL and ensure that the authorization operation has taken effect
Grant all privileges on. To root@10.233.40.107 identified by '123456'
Grant all privileges on. To root@10.233.40.108 identified by '123456'
Grant all privileges on. To root@10.233.40.109 identified by '123456'
Flush privileges
Next, create the table in mysql's stock database and create the data in the table.
Install sqoop with yum
Yum install sqoop
All default (only one needs to be installed on a virtual machine, not all)
The sqoop help command can help us to use sqoop.
Next
Prepare the JDBC driver for Mysql (can only be used in sqoop1 experiments)
-copy the JDBC driver (mysql-connector-java-5.1.31.jar) to the / usr/lib/sqoop/lib directory
Find out where the driver of mysql is in linux
Find /-name mysql-connector-java-*
You will find out where the driver of mysql is, and then copy it to the / usr/lib/sqoop/lib directory.
And then use sqoop to import data between hdfs
See the textbook for details.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.