Error when execute a job on Unix machine : Permission Denied

Highlighted
Five Stars

Error when execute a job on Unix machine : Permission Denied

Hi,

 

I have try to execute a Talend Job on a unix machine but I find in error: "Permission Denied".

 

The job read data from a table and write to an XML file. The path of XLM file have a full permission to everyone to write .

 

Is problably depending to the temp folder used from JVM ?

 

How to resolve it ?

 

Thank's in advances.

 

Giacomo


Accepted Solutions
Five Stars

Re: Error when execute a job on Unix machine : Permission Denied

I have found a solution as workaround.

 

I have used tCreateTemporaryFile to create a temp file in a folder with user permission.

 

Cattura.JPG

 

In tCreateTemporaryFile_2 :

 

Cattura2.JPG

 

 

 

The temp file will be used in this step ( first output_example ) :

 

Cattura3.JPG

 

In the File Name field, press Ctrl+Space and from the global variable list displayed select :

 

Cattura4.JPG

 

 

 

Then connect the first output_example with the second one and configure it as shown below :

 

Cattura5.JPG

 

 

This job work fine also on Unix Centos with xml file.

 

I hope is usefull.

 

Giacomo

 

 

 

 

 

 

 

 

 

 

 


All Replies
Employee

Re: Error when execute a job on Unix machine : Permission Denied

Hi @Giacomo_R,

 

Where is the studio installed? Is it on the same server where you are executing the job?

If not, is it a remote execution? What is the output directory, is it on the studio machine or on some other server?

 

Five Stars

Re: Error when execute a job on Unix machine : Permission Denied

Hi @Ramit ,

 

TOS  is installed in local on a Windows 7 32 bit  SO.

The compiled job is running on a Unix SO ( CentOS release 6.5 ) with java version 1.7.0_65.

The job is executed via *.sh file on unix server .

The output directory is on in the same Unix server in a folder with 777 permission.

 

Thank's in advances.

 

Giacomo

 

 

Five Stars

Re: Error when execute a job on Unix machine : Permission Denied

I have found a solution as workaround.

 

I have used tCreateTemporaryFile to create a temp file in a folder with user permission.

 

Cattura.JPG

 

In tCreateTemporaryFile_2 :

 

Cattura2.JPG

 

 

 

The temp file will be used in this step ( first output_example ) :

 

Cattura3.JPG

 

In the File Name field, press Ctrl+Space and from the global variable list displayed select :

 

Cattura4.JPG

 

 

 

Then connect the first output_example with the second one and configure it as shown below :

 

Cattura5.JPG

 

 

This job work fine also on Unix Centos with xml file.

 

I hope is usefull.

 

Giacomo

 

 

 

 

 

 

 

 

 

 

 

Employee

Re: Error when execute a job on Unix machine : Permission Denied

Hi @Giacomo_R,

 

Thank you for sharing the workaround with us, it'll help the community members.

Apologies that I couldn't respond earlier.

 

Kind Regards,

Ramit Panwar

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch