运行多个SQOOP作业时的“TNS通道结束”(1.4)

时间:2015-03-20 05:02:53

标签: java oracle sqoop

我有一个要求,要求我从单独的JVM会话中触发多个并行SQOOP作业。 因此,我无法使用OOZIE并行触发作业。当我单独触发作业时,我收到以下错误:

ERROR manager.SqlManager: Error executing statement: java.sql.SQLException: End of TNS data channel
java.sql.SQLException: End of TNS data channel
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at org.apache.sqoop.manager.OracleManager.makeConnection(OracleManager.java:327)
    at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
    at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:736)
    at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:759)
    at org.apache.sqoop.manager.SqlManager.getColumnInfoForRawQuery(SqlManager.java:269)
    at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:240)
    at org.apache.sqoop.manager.SqlManager.getColumnTypes(SqlManager.java:226)
    at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:295)
    at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1833)
    at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1645)
    at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:96)

如果按顺序触发它们,它们会毫无问题地执行。 以下是关于我工作的一些重点:

  • 他们需要并行执行
  • 连接到同一个表
  • 他们连接到同一个数据库(Oracle)
  • 我正在使用捆绑了cloudera 5.3.2的SQOOP 1.4

我试图找出SQOOP并行运行是否有任何报告问题,但找不到任何问题。

感谢。

0 个答案:

没有答案