About that Job fails on Linux Server but works fine on Talend app

About that Job fails on Linux Server but works fine on Talend app

Hi Forum,

Could you help me to solve the following problem ?Jobs created in the past Talend version 5.X / java 7 were corrected in Talend 6.2.1 / java 8 and the jobs exported on the server of Linux OS / java 8 were executed, and the following error occurred in the component of tSendMail.I thought that there was a problem with connecting to SMTP, but when I run it on Talend's app, no error occurs.

Re: About that Job fails on Linux Server but works fine on Talend app

Hi Sabrina,

Thank you for your reply.

First of all, I tested on my machine with the following environment and method.Under the following circumstances, jobs worked normally.

・The OS of my machine is Windows 10・Java is the latest version for Windows 10 (1.8.131)・Talend's application is running on my machine・CSV file is stored on a Windows server different from my machine・I read CSV file from Windows server at Talend of my machine and exported it to another server

Since the above worked normally, I exported the job from Talend.

At this time, I selected "all" at Shell Launcher as shown in the attached screen.

Re: About that Job fails on Linux Server but works fine on Talend app

Hi Karnam,

Thank you for your reply.

＞Ensure that the hostname entries of both the Linux & mail server are made into /etc/hosts file of Linux machine.

⇒ As a result of checking, only the host name of the Linux server was registered in the host file. However, as to whether or not registration of the host name of the mail server is necessary, the following two points are unknown.

Do you know anything about it ?

1. What mail should be registered in the host name by using Gmail ? I think it's "smtp.gmail.com". 2. tSendmail is working normally on Java 1.7 Linux server and this time I upgraded Java to 1.8, so I thought I didn't have to register the host name of the mail server Is it necessary to register ?

Re: About that Job fails on Linux Server but works fine on Talend app

Hi Sabrina,

＞Have you tried to use parameter directly without using context value in tSendMail component to see if it works?

⇒ I tried on Linux server and on my Windows 10 machine. In the former case, an error occurred. The content of the error is the same as what I posted. In the latter case, processing was completed normally.

Re: About that Job fails on Linux Server but works fine on Talend app

Hi Sabrina,

I confirmed the operation requirement that you told me.As for that, I have the following three questions.As a prerequisite, as I have written here until now, I will run a job exported by Talend on Windows OS on a Linux OS that uses only as a job server.

(1) Is it necessary to install Talend on a Linux server that is a job server ?(2) Is it necessary to set environment variables such as JAVA_HOME on the Linux server which is the job server ?(3) Exported jobs are exported as Standalone jobs in Talend on Windows OS, but is it necessary to recompile on Linux server ?

Re: About that Job fails on Linux Server but works fine on Talend app

Hello,

Talend Jobs support cross-platform execution. You can develop your Job on one machine, export the Job script, and then move it to another machine to execute without any additional configuration(no need to install talend studio on linux) excepts the JDK installation.

Due to the archive generated contains all java lib dependencies, your jobs and a shell script, the java environment(JDK installation) is needed.

With your community solution, do you need job server?

Best regards

Sabrina

--Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.