i am not able to export data from sqoop to as400 server. though i am able to import the data successfully.
i am using following command: –
sqoop export –driver com.ibm.as400.access.AS400JDBCDriver –connect jdbc:as400://178.249.3.21:23/MELLET1/TEXT4 –username MELLET –password mellet007 –table TEXT3 –export-dir /as400/1GBTBL5/part-m-00000 -m 1
i am getting timeout issue.
^C[root@sandbox sqoop]# sqoop export –driver com.ibm.as400.access.AS400JDBCDriver –connect jdbc:as400://178.249.3.21:23/MELLET1/TEXT4 –username MELLET –password mellet007 –table TEXT3 –export-dir /as400/1GBTBL5/part-m-00000 -m 1
Warning: /usr/hdp/2.2.0.0-2041/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
15/05/10 17:41:48 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5.2.2.0.0-2041
15/05/10 17:41:48 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
15/05/10 17:41:48 WARN sqoop.ConnFactory: Parameter –driver is set to an explicit driver however appropriate connection manager is not being set (via –connection-manager). Sqoop is going to fall back to org.apache.sqoop.manager.GenericJdbcManager. Please specify explicitly which connection manager should be used next time.
15/05/10 17:41:48 INFO manager.SqlManager: Using default fetchSize of 1000
15/05/10 17:41:48 INFO tool.CodeGenTool: Beginning code generation
15/05/10 17:41:52 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM TEXT3 AS t WHERE 1=0
15/05/10 17:41:53 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM TEXT3 AS t WHERE 1=0
15/05/10 17:41:54 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/hdp/2.2.0.0-2041/hadoop-mapreduce
Note: /tmp/sqoop-root/compile/97bc551e81096ecaf161f3367edd2a90/TEXT3.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
15/05/10 17:42:00 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-root/compile/97bc551e81096ecaf161f3367edd2a90/TEXT3.jar
15/05/10 17:42:00 INFO mapreduce.ExportJobBase: Beginning export of TEXT3
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-2041/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-2041/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-2041/hive/lib/hive-jdbc-0.14.0.2.2.0.0-2041-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
15/05/10 17:42:02 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM TEXT3 AS t WHERE 1=0
15/05/10 17:42:04 INFO impl.TimelineClientImpl: Timeline service address: http://sandbox.hortonworks.com:8188/ws/v1/timeline/
15/05/10 17:42:04 INFO client.RMProxy: Connecting to ResourceManager at sandbox.hortonworks.com/10.0.2.15:8050
15/05/10 17:42:06 INFO input.FileInputFormat: Total input paths to process : 1
15/05/10 17:42:06 INFO input.FileInputFormat: Total input paths to process : 1
15/05/10 17:42:06 INFO mapreduce.JobSubmitter: number of splits:1
15/05/10 17:42:07 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1431267418859_0014
15/05/10 17:42:07 INFO impl.YarnClientImpl: Submitted application application_1431267418859_0014
15/05/10 17:42:07 INFO mapreduce.Job: The url to track the job: http://sandbox.hortonworks.com:8088/proxy/application_1431267418859_0014/
15/05/10 17:42:07 INFO mapreduce.Job: Running job: job_1431267418859_0014
15/05/10 17:42:18 INFO mapreduce.Job: Job job_1431267418859_0014 running in uber mode : false
15/05/10 17:42:18 INFO mapreduce.Job: map 0% reduce 0%
15/05/10 17:42:37 INFO mapreduce.Job: map 100% reduce 0%
15/05/10 17:47:47 INFO mapreduce.Job: Task Id : attempt_1431267418859_0014_m_000000_0, Status : FAILED
AttemptID:attempt_1431267418859_0014_m_000000_0 Timed out after 300 secs
15/05/10 17:47:48 INFO mapreduce.Job: map 0% reduce 0%
15/05/10 17:48:07 INFO mapreduce.Job: map 100% reduce 0%
15/05/10 17:53:16 INFO mapreduce.Job: Task Id : attempt_1431267418859_0014_m_000000_1, Status : FAILED
AttemptID:attempt_1431267418859_0014_m_000000_1 Timed out after 300 secs
15/05/10 17:53:17 INFO mapreduce.Job: map 0% reduce 0%
15/05/10 17:53:40 INFO mapreduce.Job: map 100% reduce 0%
15/05/10 17:58:46 INFO mapreduce.Job: Task Id : attempt_1431267418859_0014_m_000000_2, Status : FAILED
AttemptID:attempt_1431267418859_0014_m_000000_2 Timed out after 300 secs