sqoop - Using Sqoop with MySQL as metastore - apache sqoop - sqoop tutorial - sqoop hadoop
How to use Sqoop with MySQL as metastore?
- In order to set up MySQL to use with SQOOP:
- On the SQOOP Server host, we need to install the connector.
RHEL/CentOS/Oracle Linux
- The syntax which is given below is done for RHEL/CentOS/Oracle Linux
Sqoop related tags : sqoop import , sqoop interview questions , sqoop export , sqoop commands , sqoop user guide , sqoop documentation
SLES
- The syntax which is given below is done for SLES
- We need to confirm that .jar is in the Java share directory.
- We need to make sure the .jar file has the appropriate permissions to install the connector - 644.
Create a user for SQOOP and grant it permissions
- We need to create a user for Sqoop and grant it permissions using the MySQL database admin utility:
- Where the <SQOOPUSER> is the SQOOP user name, <SQOOPPASSWORD> is the SQOOP user password and <SQOOPSERVERFQDN> is given as the Fully Qualified Domain Name of the SQOOP Server host.
- We need to configure the sqoop-site.xml to create the sqoop database and we need to load the SQOOP Server database schema.
- We need to execute the following command to create the initial database and the tables which is given.
- If we get any error or an exception which is given then we must pre-load the SQOOP tables with the mandatory values.
- Where the <SQOOPUSER> is the SQOOP user name and <SQOOPDATABASE> is the SQOOP database name.
- Once all the necessary sqoop tables are created, then the Sqoop job will use the meta store for the SQOOP job execution.