Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

fail to run rob in Linux

Hello,

I have created a main job in talend open studio Big Data, and this main job calls for a child job. I exported the main job into batch and shell files. I successfully execute the batch file in windows, but if I try to execute the shell on a Linux machine, the execution fails.
Below you can see the error.
 
0683p000009MFqi.png
The main job and child job can be seen below:
main job
0683p000009MFo8.png
child job:
  0683p000009MFrM.png 

Could you help me to solve the Linux error?

Thank you in advance!
Lucian Sabau

Labels (2)
6 Replies
vapukov
Master II
Master II

First of all - check Java version on Linux
it must be same as installed on Windows, Best choice JDK from Oracle
Often on Linux distribution default - OpenJDK

How to install JDK from Oracle - many receipts in Internet depending from Your Linux version
Anonymous
Not applicable
Author

Hello,

For Linux I have version:
java version "1.7.0_91"
OpenJDK Runtime Environment (rhel-2.6.2.2.el6_7-x86_64 u91-b00)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
On my windows, I have
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Also I monitored my job wile was running on my Linux, and I got some errors like these:


Teradata JDBC Driver] [TeraJDBC 14.00.00.41] [Error 1000] [SQLState 08S01] Login failure for Packet receive Fri Oct 28 15:07:13 EEST 2016 socket orig=dwhp301.mgi.de local=0.0.0.0/0.0.0.0:35794 remote=dwhp301cop1.mgi.de/164.61.248.151:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=30 connecttotaltime=30 connectattempts=1 connectfailures=0 failurecache={} cid=277ec7b9 sess=7947150 java.io.IOException: Incomplete LAN message header: read 0 bytes  at com.teradata.jdbc.jdbc_4.io.TDNetworkIOIF.read(TDNetworkIOIF.java:690)  at com.teradata.jdbc.jdbc_4.io.TDPacketStream.readStream(TDPacketStream.java:836)  at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:498)  at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:216)  at com.teradata.jdbc.jdk6.JDK6_SQL_Connection.<init>(JDK6_SQL_Connection.java:35)  at com.teradata.jdbc.jdk6.JDK6ConnectionFactory.constructSQLConnection(JDK6ConnectionFactory.java:25)  at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:179)  at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:169)  at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:232)  at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:158)  at java.sql.DriverManager.getConnection(DriverManager.java:571)  at java.sql.DriverManager.getConnection(DriverManager.java:215)  at test1.mtoc_on_country_lvl_child_0_1.mtoc_on_country_lvl_child.tTeradataInput_2Process(mtoc_on_country_lvl_child.java:1372)  at test1.mtoc_on_country_lvl_child_0_1.mtoc_on_country_lvl_child.runJobInTOS(mtoc_on_country_lvl_child.java:8528)  at test1.mtoc_on_country_lvl_child_0_1.mtoc_on_country_lvl_child.runJob(mtoc_on_country_lvl_child.java:8344)  at test1.mtoc_on_country_lvl_main_0_1.mtoc_on_country_lvl_main.tFileInputDelimited_1Process(mtoc_on_country_lvl_main.java:2923)  at test1.mtoc_on_country_lvl_main_0_1.mtoc_on_country_lvl_main.tTeradataInput_1Process(mtoc_on_country_lvl_main.java:1929)  at test1.mtoc_on_country_lvl_main_0_1.mtoc_on_country_lvl_main.runJobInTOS(mtoc_on_country_lvl_main.java:3301)  at test1.mtoc_on_country_lvl_main_0_1.mtoc_on_country_lvl_main.main(mtoc_on_country_lvl_main.java:3110)
I mention that my child job is executed around 26 times, because I have 26 different cases I need to analyze. Also I noticed that some times fails at my second child job at 2nd case, sometimes at 10th ccase, so it is not always failing at the same case (from the total of 26).
Do you have any other suggestion beside the java version?
Thank you!
Lucian Sabau
vapukov
Master II
Master II

Q: What is the difference between the source code found in the OpenJDK repository, and the code you use to build the Oracle JDK?
A: It is very close - our build process for Oracle JDK releases builds on OpenJDK 7 by adding just a couple of pieces, like the deployment code, which includes Oracle's implementation of the Java Plugin and Java WebStart, as well as some closed source third party components like a graphics rasterizer, some open source third party components, like Rhino, and a few bits and pieces here and there, like additional documentation or third party fonts. Moving forward, our intent is to open source all pieces of the Oracle JDK except those that we consider commercial features such as JRockit Mission Control (not yet available in Oracle JDK), and replace encumbered third party components with open source alternatives to achieve closer parity between the code bases.

source -  https://blogs.oracle.com/henrik/entry/java_7_questions_answers
very close != same

Generally answer - run Job on SAME Java with machine where You compile it
Anonymous
Not applicable
Author

Hi,
OpenJDK is not supported by Talend, it requires Oralce JDK 1.8(since 6.0). Some jobs may work with OpenJDK, but it is not certified.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello,
I forgot to mention, I use TOS_BD-r118616-V5.5.1. So I guess it should work also with a previous version of Oracle JDK 1.8.

Regards,
Lucian
Anonymous
Not applicable
Author

Hi,
Could you please use oracle jdk 1.7 instead on your linux to see if it works?
Best regards
Sabrina