Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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?

Labels (4)
4 Replies
akumar2301
Specialist II

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

are you able to locate your log4j property file ?
Anonymous
Not applicable
Author

@uganesh no. Where would I find it?

Anonymous
Not applicable
Author

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.

akumar2301
Specialist II

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