Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hduser@master:/usr/local/sqoop/conf$ sqoop list-databases --connect "jdbc:mysql://kala:3306" --username **** --password ****
- Warning: /usr/local/sqoop/../hbase does not exist! HBase imports will fail.
- Please set $HBASE_HOME to the root of your HBase installation.
- Warning: /usr/local/sqoop/../hcatalog does not exist! HCatalog jobs will fail.
- Please set $HCAT_HOME to the root of your HCatalog installation.
- Warning: /usr/local/sqoop/../accumulo does not exist! Accumulo imports will fail.
- Please set $ACCUMULO_HOME to the root of your Accumulo installation.
- Warning: /usr/local/sqoop/../zookeeper does not exist! Accumulo imports will fail.
- Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
- 16/08/02 17:30:05 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5
- 16/08/02 17:30:05 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
- 16/08/02 17:30:05 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
- information_schema
- employees
- mysql
- performance_schema
- sys
- world
- hduser@master:/usr/local/sqoop/conf$
- hduser@master:/usr/local/sqoop/conf$ sqoop list-tables --connect "jdbc:mysql://kala:3306/world" --username ****--password ****
- Warning: /usr/local/sqoop/../hbase does not exist! HBase imports will fail.
- Please set $HBASE_HOME to the root of your HBase installation.
- Warning: /usr/local/sqoop/../hcatalog does not exist! HCatalog jobs will fail.
- Please set $HCAT_HOME to the root of your HCatalog installation.
- Warning: /usr/local/sqoop/../accumulo does not exist! Accumulo imports will fail.
- Please set $ACCUMULO_HOME to the root of your Accumulo installation.
- Warning: /usr/local/sqoop/../zookeeper does not exist! Accumulo imports will fail.
- Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
- 16/08/02 17:31:46 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5
- 16/08/02 17:31:46 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
- 16/08/02 17:31:47 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
- City
- Country
- CountryLanguage
- hduser@master:/usr/local/sqoop/conf$ sqoop import-all-tables --connect "jdbc:mysql://kala:3306/world" --username ****--password ****
- Warning: /usr/local/sqoop/../hbase does not exist! HBase imports will fail.
- Please set $HBASE_HOME to the root of your HBase installation.
- Warning: /usr/local/sqoop/../hcatalog does not exist! HCatalog jobs will fail.
- Please set $HCAT_HOME to the root of your HCatalog installation.
- Warning: /usr/local/sqoop/../accumulo does not exist! Accumulo imports will fail.
- Please set $ACCUMULO_HOME to the root of your Accumulo installation.
- Warning: /usr/local/sqoop/../zookeeper does not exist! Accumulo imports will fail.
- Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
- 16/08/02 17:32:34 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5
- 16/08/02 17:32:34 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
- 16/08/02 17:32:34 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
- 16/08/02 17:32:35 INFO tool.CodeGenTool: Beginning code generation
- 16/08/02 17:32:35 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `City` AS t LIMIT 1
- 16/08/02 17:32:35 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `City` AS t LIMIT 1
- 16/08/02 17:32:35 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/local/hadoop
- Note: /tmp/sqoop-hduser/compile/706b5388186e76e8e2b05403a16cb607/City.java uses or overrides a deprecated API.
- Note: Recompile with -Xlint:deprecation for details.
- 16/08/02 17:32:38 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-hduser/compile/706b5388186e76e8e2b05403a16cb607/City.jar
- 16/08/02 17:32:38 WARN manager.MySQLManager: It looks like you are importing from mysql.
- 16/08/02 17:32:38 WARN manager.MySQLManager: This transfer can be faster! Use the --direct
- 16/08/02 17:32:38 WARN manager.MySQLManager: option to exercise a MySQL-specific fast path.
- 16/08/02 17:32:38 INFO manager.MySQLManager: Setting zero DATETIME behavior to convertToNull (mysql)
- 16/08/02 17:32:38 INFO mapreduce.ImportJobBase: Beginning import of City
- 16/08/02 17:32:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- 16/08/02 17:32:38 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar
- 16/08/02 17:32:39 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
- 16/08/02 17:32:39 INFO client.RMProxy: Connecting to ResourceManager at master/192.168.1.51:8050
- 16/08/02 17:32:43 INFO db.DBInputFormat: Using read commited transaction isolation
- 16/08/02 17:32:43 INFO mapreduce.JobSubmitter: Cleaning up the staging area /tmp/hadoop-yarn/staging/hduser/.staging/job_1470138335048_0001
- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
- at org.apache.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelper.java:53)
- at com.cloudera.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelper.java:36)
- at org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat.getSplits(DataDrivenDBInputFormat.java:121)
- at org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:301)
- at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:318)
- at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:196)
- at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
- at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
- at java.security.AccessController.doPrivileged(Native Method)
- at javax.security.auth.Subject.doAs(Subject.java:422)
- at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
- at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
- at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)
- at org.apache.sqoop.mapreduce.ImportJobBase.doSubmitJob(ImportJobBase.java:186)
- at org.apache.sqoop.mapreduce.ImportJobBase.runJob(ImportJobBase.java:159)
- at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:247)
- at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:665)
- at org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:118)
- at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:497)
- at org.apache.sqoop.tool.ImportAllTablesTool.run(ImportAllTablesTool.java:105)
- at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
- at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
- at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
- at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
- at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
- at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
- hduser@master:/usr/local/sqoop/conf$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement