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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Command Line messages and logging

Hi!
I built a job in Talend Open Studio for Big Data and plan to make it available for non-Talend users to run the program via building the job and housing it in a shared drive. 
What I'm trying to do is along the steps, allow messages that will appear in the command prompt (and ultimately log) that shows the status. Like "Connecting to....", "Found file...{name}", etc etc. What is the best way to accomplish this? Any guidance would be greatly appreciated, I've searched all over the place and haven't really found answers. 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Justin,

 To achieve this you following steps need to be followed.
      1  : Create the job in talend studio.
      2  : Activate log4j feature in the studio.Add below xml content in log4j xml place holder.
 <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  <appender name="console" class="org.apache.log4j.ConsoleAppender"> 
    <param name="Target" value="System.out"/> 
    <layout class="org.apache.log4j.PatternLayout"> 
      <param name="ConversionPattern" value="%-5p %c{1} - %m%n"/> 
    </layout> 
  </appender> 

  <root> 
    <priority value ="debug" /> 
    <appender-ref ref="console" /> 
  </root>
  
</log4j:configuration>
           

      3 :  Build the job from studio.
      4 :  Extract the zip file created after build the job.
      5 :  edit the batch generated after extraction.
      6 :  add "pause" command in at the end of the batch.
      7 :  execute the batch. It will display all job statistic in the console.


0683p000009MHOX.jpg          0683p000009MHLy.jpg


I guess, it will help you to resolve the problem.