Sqoop從Oracle抽數錯:IO Error: Connection reset
【問題描述】
使用Sqoop從Oracle抽資料到Hive表時,有時候會遇到以下報錯;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
Error: java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLRecoverableException: IO Error: Connection reset
at org.apache.sqoop.mapreduce.db.DBInputFormat.setDbConf(DBInputFormat.java:170)
at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:161)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
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:1714)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158) Caused by: java.lang.RuntimeException: java.sql.SQLRecoverableException: IO Error: Connection reset
at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:223)
at org.apache.sqoop.mapreduce.db.DBInputFormat.setDbConf(DBInputFormat.java:168)
... 10 more |
【問題原因】
此問題一般是由於缺少一個生成快速隨機數的工具;
【問題解決】
一般可以透過在JRE中的java.security中修改securerandom.source的值為以下內容;
1
2
3 |
cd
$JAVA_HOME
/jre/lib/security vi
java.security securerandom.
source
=
file
:
/dev/
..
/dev/urandom |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69976626/viewspace-2729311/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle OGG-01232 Receive TCP params error:TCP/IP error 232(connection reset)OracleTCPError
- Sqoop 並行抽數OOP並行
- 連線華為雲的Redis服務報錯“Error: Connection reset by peer”RedisError
- JMETER java.net.SocketException: Connection reset 報錯解決方案JMeterJavaException
- oozie.action.hadoop.LauncherException: IO error Connection timed out: no further informationHadoopExceptionErrorORM
- Kubelet 錯誤日誌 broken pipe 和 connection reset by peer 的原因分析
- 記錄redis佇列read error on connection to錯誤Redis佇列Error
- ‘OpenSSL SSL_read: Connection was reset, errno 10054’
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- HttpClient遭遇Connection Reset異常,如何正確配置?HTTPclient
- Dr.Elephant mysql connection errorMySqlError
- MySQL報錯ERROR 2013 (HY000): Lost connection to MySQL server during queryMySqlErrorServer
- Java中處理SocketException: Connection reset”異常的方法JavaException
- go grpc: connection reset by peer 的一種解決方案GoRPC
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- 【ERROR】Oracle列印錯誤程式碼解釋ErrorOracle
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- Last_IO_Error: Got fatal error 1236ASTErrorGo
- Error!: SQLSTATE[HY000] [2002] Connection refusedErrorSQL
- 阿里雲站點升級提示:OpenSSL SSL_connect: Connection reset by peer in connection to www.pbootcms.com:443阿里boot
- sqoop條件抽取報錯distcpOOPTCP
- 免密scp解決ssh_exchange_identification:read connection reset by peer 原因IDE
- oracle非同步IO之filesystemio_options引數Oracle非同步
- ORACLE STREAM ERROROracleError
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError
- win10系統下瀏覽器打不開網頁提示err_connection_reset錯誤怎麼辦Win10瀏覽器網頁
- 如何處理WordPress網站提示“建立資料庫連線時出錯”或“Error establishing a database connection”錯誤網站資料庫ErrorDatabase
- OGG-01224 error 111:Connection refused - retries exceeded.Error
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward
- Error on opening a connection to slave1:33061 on local port: 33061Error
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- OGG Director報錯 Connection FAILEDAI
- 使用putty遠端登入Ubuntu時,報Network error:Connection refused錯誤及解決(記錄)UbuntuError
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- mysqldump: Error 2013: Lost connection to MySQL server during query when dumpingMySqlErrorServer
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- SQLServer映象報錯Connection handshake failedSQLServerAI