Please find my below problem and help me to resolve it.
I have a sqoop statement which brings data from Mainframe to Hadoop(Hive) using attunity jdbc driver.
sqoop import \
--connect "jdbc:attconnect://X.X.1.1:8883;DefTdpName=PROD_E;OneTdpMode=1"\
--driver "com.attunity.jdbc.NvDriver" \
--query Select * FROM how_record WHERE \$CONDITIONS" \
--fields-terminated-by "\t" \
--hive-import \
--hive-overwrite \
--delete-target-dir \
--null-string '\\N' \
--null-non-string '\\N' \
--hive-delims-replacement '' \
--target-dir "path/how_record" \
--fetch-size 50000 \
--hive-table "how_record" -m 1
When i am running above sqoop statement for first time i am keep getting socket time out error.
ERROR manager.SqlManager: Error executing statement: java.sql.SQLException: JBC0088E: JBC0002E: Socket timeout detected: Read timed out java.sql.SQLException: JBC0088E: JBC0002E: Socket timeout detected: Read timed out at com.attunity.jdbc.NvSQLWarning.createSQLException(Unknown Source) at com.attunity.comm.XmsgComm.xMsgThrowTimeoutEx(Unknown Source) at com.attunity.comm.XmsgComm.treatInterruptedIOException(Unknown Source) at com.attunity.comm.XmsgComm.xMsgPerformCall(Unknown Source) at com.attunity.comm.Daemon.GetServer(Unknown Source) at com.attunity.navapi.SysTdp.getRemoteSysTdp(Unknown Source) at com.attunity.jdbc.NvConnectionBase.open(Unknown Source) at com.attunity.jdbc.NvConnectPropertiesBase.openConnection(Unknown Source) at com.attunity.jdbc.NvDriverCoreBase.connect(Unknown Source) at com.attunity.jdbc.NvDriverCoreBase.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:270)
But when i ran above one for second time(Immediately), The error is automatically resolved and sqoop is completing successfully.
I am facing this issue only when i ran sqoop for first time.
I went through few blogs and error may be related to connection pool in the JDBC.
My background is mostly related DATA, Don't have much experience at JAVA side.
Can some one please help me to find out the actual issue and resolution.
Thanks in advance!!