
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
are you able to locate your log4j property file ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@uganesh no. Where would I find it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
