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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Connection reset by peer: socket write errorError
- java.io.IOException: Connection reset by peerJavaException
- Sqoop 並行抽數OOP並行
- 連線華為雲的Redis服務報錯“Error: Connection reset by peer”RedisError
- tomcat 啟動應用報錯:java.sql.SQLException: Io 異常: Connection resetTomcatJavaSQLException
- oracle OGG-01232 Receive TCP params error:TCP/IP error 232(connection reset)OracleTCPError
- TNS-12547,Linux Error: 104: Connection reset by peerLinuxError
- TNS-12547 Linux Error: 104: Connection reset by peerLinuxError
- oracle listener錯誤Linux Error: 111: Connection refusedOracleLinuxError
- JMETER java.net.SocketException: Connection reset 報錯解決方案JMeterJavaException
- 從Connection Reset問題淺談DBCP的使用技巧薦
- tomcat連線池不夠-java.sql.SQLException: Io 異常: Connection resetTomcatJavaSQLException
- Kubelet 錯誤日誌 broken pipe 和 connection reset by peer 的原因分析
- 錯誤 101 (net::ERR_CONNECTION_RESET):連線已重置
- SQLDeloper IO 錯誤: The Network Adapter could not establish the connectionSQLAPT
- oozie.action.hadoop.LauncherException: IO error Connection timed out: no further informationHadoopExceptionErrorORM
- 記錄redis佇列read error on connection to錯誤Redis佇列Error
- TNS-12547TNS-12560 TNS-00517 Linux Error: 104: Connection reset by peerLinuxError
- HttpClient遭遇Connection Reset異常,如何正確配置?HTTPclient
- Oracle - ORA-28547: Connection to server failed,probable Oracle Net admin error (Navicat)OracleServerAIError
- 【Sqoop篇】----Sqoop從搭建到應用案例OOP
- OGG 同步報錯 - TCP/IP error 111 (Connection refused)TCPError
- Oracle DBLINK 抽數以及DDL、DML操作Oracle
- sqoop從hdfs導資料至oracle資料庫OOPOracle資料庫
- Java中處理SocketException: Connection reset”異常的方法JavaException
- Dr.Elephant mysql connection errorMySqlError
- ERROR: UTL_SMTP.OPEN_CONNECTIONError
- MSSQLServer 上討厭的錯誤error: 40 - Could not open a connection to SQL ServerSQLServerError
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- go grpc: connection reset by peer 的一種解決方案GoRPC
- SecureCRT連線CentOS不間斷出現“Connection was reset.”SecurecrtCentOS
- Oracle安裝報錯syntax errorOracleError
- Oracle11G監聽報錯Connection refusedOracle
- Dr.Elephant mysql connection error薦MySqlError
- weblogic連線池重置(Connection reset)問題解決方案Web
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- java.sql.SQLException: Io 異常: Connection refusedJavaSQLException
- sqoop條件抽取報錯distcpOOPTCP