log4j:No Appenders could be found for logger for .sh file

Highlighted
Six Stars

log4j:No Appenders could be found for logger for .sh file

Trying to run a talend job on terminal in linux.

I built the job and got .sh file.

Used chmod +x Job.sh and then ./Job.sh

 

I see the error:

log4j:WARN No appenders could be found for logger (net.sf.json.xml.XMLSerializer).

log4j:WARN Please initialize the log4j system properly

 

Can someone help what may have gone wrong and how to rectify?

Nine Stars

Re: log4j:No Appenders could be found for logger for .sh file

https://stackoverflow.com/questions/1140358/how-to-initialize-log4j-properly

are you able to locate your log4j property file ?
Regards
Abhishek KUMAR
Six Stars

Re: log4j:No Appenders could be found for logger for .sh file

@akumar2301 no. Where would I find it?

Six Stars

Re: log4j:No Appenders could be found for logger for .sh file

Also, the job works fine when I run it in talend software. I built the job and placed it in a different pc and running it via terminal there. This is when it fails.

Nine Stars

Re: log4j:No Appenders could be found for logger for .sh file

Aah ok , Quick Question Did you build your job with Log4j option.

 

Please follow below link  - search "Custom Log4j level"

 

https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/V5yP4nItw687WwHLVpxwFQ

https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/OTiswlhxpERhnYV6Nf6I1g

 

If this doesnot work , try to add as JVM argument

-Dlog4j.configuration=file:C:\xXpathXxxxx\log4j.xml

 

Let me know if it works

Regards
Abhishek KUMAR

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download