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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

getting error when call .sh file from Talend

Hi,

When I am calling .sh file from talend job throwing the below error.

 

Execution failed : Job compile errors
At least job "unix_test" has a compile errors, please fix and export again.
Error Line: 366
Detail Message: sh cannot be resolved or is not a field
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio

The .sh file is just having echo command only.

I am using tssh component.

I am using "" for hostname,username and password.

 

Please help me.

Thanks in advance

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

It's working fine.

 

Thanks Kudos.

View solution in original post

8 Replies
Anonymous
Not applicable
Author

Hello,

When you get some compile errors, could you please check your "Code" tab in your job to see if there will be your compile error highlighted in red line?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi,

 

Thanks for your suggestion.I ran the job using code tab.

 

The red line is highlighted here.

 

command_tSSH_1.append(unix_test.sh);
sess_tSSH_1.execCommand((command_tSSH_1).toString());

 

unix_test cannot be resolved to a variable

 

Please let me know how to proceed further.

 

Thanks,

Ram

Anonymous
Not applicable
Author

Hi,

 

Could you please reply.

 

Thanks

TRF
Champion II
Champion II

As for any string constant, unix_test.sh must be enclosed between ""
Anonymous
Not applicable
Author

Hi,

 

     Could you please share a screenshot of the job flow and the problematic component details for reference?

 

Warm Regards,

 

Nikhil Thampi

Anonymous
Not applicable
Author

There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the https://audacity.onl/ https://findmyiphone.onl/ https://origin.onl/

TRF
Champion II
Champion II

@rchinta, does this help you?

If so, thanks to mark your case as solved (Kudos also accepted).

Anonymous
Not applicable
Author

It's working fine.

 

Thanks Kudos.