In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 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.
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.