Talend studio 6.2.1 failed to read unix file

Five Stars

Talend studio 6.2.1 failed to read unix file

We started using talend studio with 6.2.1 version and job server running on Linux machine.

 

When we create small job as below

 

tFileinputdelimted  --> tLogRow   (while Filename in tFileinputdelimted   in "/tmp/test.dat" unix file)

While in Run --> Target Exec point to Linux server where above file reside.

We are able to run job successfully while pointing to local system but failed to build or run job with remote server. Please let us know how to validate unix connection or debug issue.

 

Issue:

Execution failed : java.lang.Exception: Job was not built successfully, please check the logs for more details

[Job was not built successfully, please check the logs for more details]

 

Java log:

 

java.lang.Exception: Job was not built successfully, please check the logs for more details

                at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:252)

                at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:162)

                at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJobs(BuildJobManager.java:104)

                at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.buildJobWithMaven(JobScriptsExportWizardPage.java:1483)

                at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage$8.run(JobScriptsExportWizardPage.java:1388)

                at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)

                at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)

                at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)

                at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.finish(JobScriptsExportWizardPage.java:1393)

                at org.talend.repository.ui.wizards.exportjob.JavaJobScriptsExportWSWizardPage.finish(JavaJobScriptsExportWSWizardPage.java:1225)

                at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizard.performFinish(JobScriptsExportWizard.java:126)

                at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)

                at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)

                at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)

                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)

                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)

                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)

                at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)

                at org.eclipse.jface.window.Window.open(Window.java:808)

                at org.talend.repository.ui.actions.ExportJobScriptAction.doRun(ExportJobScriptAction.java:117)

                at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)

                at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)

                at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)

                at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3257)

                at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2053)

                at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)

                at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)

                at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)

                at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)

                at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)

                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)

                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)

                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)

                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)

                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)

                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)

                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

                at org.talend.rcp.intro.Application.start(Application.java:208)

                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)

                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)

                at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

 

 

Tags (1)

Accepted Solutions
Five Stars

Re: Talend studio 6.2.1 failed to read unix file

Hi Xdshi,

 

Thanks for your quick response,

 

i fond the issue and solved it,

 

  1. Goto Preferences >> Java >> Installed JRE's
  2. Click Add and browse to \Program Files\Java\jdk1.8.0_151
    1. In my case the "Location" variable for the jre did not change but the "Name" variable for the jre in this dialog box did.  I am not sure the impact of this but it is the only thing that appears to have changed.  Who knows, maybe "refreshing" this variable is the key.
  3. Click OK and then set the newly added jre as the default.  
  4. Click OK, say a small prayer and run a job.

For reference i have attached the log file 

 

thanks,

Advance Happy New year.


All Replies
Seven Stars

Re: Talend studio 6.2.1 failed to read unix file

 hi

the file name for tfileinputdelimited it should be .csv right

please can you explain me your query in detail

Five Stars

Re: Talend studio 6.2.1 failed to read unix file

Why only csv file?

cant we read .txt or .dat file using tfileinputdelimited?

My question is i am not able to run job when i point targetexec to unix server where job server is running.

i am successful read local file (on my windows) but same job when change the targetexec to unix in Run settings talendstudio the job run failed and also failed to build the job.

Thank you
Ten Stars

Re: Talend studio 6.2.1 failed to read unix file

The problem is not the file's extension. Your error message is non-specific and recommends checking a log file. I don't use job server, so I'm not sure which log file it means nor where to look for it.
Five Stars

Re: Talend studio 6.2.1 failed to read unix file

the error message mentioned in first post which i got when build the job.

not sure where to check for any other error or log messages?
Seven Stars

Re: Talend studio 6.2.1 failed to read unix file

Hi Sree,

Please check the log file under you talend workspace,

<Workspacedir>/metadata/.log.

Please post the error log from above file. we will try to help you on this
Thanks,
Sid
Mark as solution if this resolved your issue
Five Stars

Re: Talend studio 6.2.1 failed to read unix file

!SESSION 2017-04-28 10:02:55.422 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

This is a continuation of log file \\NAEAST.AD.JPMORGANCHASE.COM\AmerXBUS$\XBUS\NANJVDIHOME20\F064681\CDS\TALEND\TS\workspace\.metadata\.bak_0.log

Created Time: 2017-04-28 10:37:20.823

!ENTRY org.talend.platform.logging 1 0 2017-04-28 10:37:20.831
!MESSAGE 2017-04-28 10:37:20,756 INFO  org.talend.commons.exception.CommonExceptionHandler  - The download URL for spark-streaming-kinesis-asl-assembly_2.10-1.5.0.jar is not available


!ENTRY org.talend.platform.logging 1 0 2017-04-28 10:37:20.847
!MESSAGE 2017-04-28 10:37:20,837 INFO  org.talend.commons.exception.CommonExceptionHandler  - The download URL for fastutil-6.5.16.jar is not available

Five Stars

Re: Talend studio 6.2.1 failed to read unix file

sid

please check the log let me know
Moderator

Re: Talend studio 6.2.1 failed to read unix file

Hi,

You cannot read your file(relative path) from your server by using tfiledelimited component? Is your server ok with you?

Would you mind posting your job setting screenshots on forum which will be helpful for us to address your issue?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Talend studio 6.2.1 failed to read unix file

yes server okay and job server is running. other able to read using tfiledelimited.

what job setting need to take?
window--peeference--talend--remote?

please let me know


Five Stars

Re: Talend studio 6.2.1 failed to read unix file

 

Please find job settings , let me know any concerns.

talend1.pngtalend2.pngtalend3.png

Five Stars

Re: Talend studio 6.2.1 failed to read unix file

Hi Sree,

 

I am facing the same issue, if you find the solution could you please share me how to ride of it.

 

Error when i run in server :

Execution failed : java.lang.Exception: Job was not built successfully, please check the logs for more details
[Job was not built successfully, please check the logs for more details]

 

Thanks,

Kishore

Advance Happy New Year.

 

Moderator

Re: Talend studio 6.2.1 failed to read unix file

Hello Kishore,

Is there any more error message in log? What does your job look like?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Talend studio 6.2.1 failed to read unix file

Hi Xdshi,

 

Thanks for your quick response,

 

i fond the issue and solved it,

 

  1. Goto Preferences >> Java >> Installed JRE's
  2. Click Add and browse to \Program Files\Java\jdk1.8.0_151
    1. In my case the "Location" variable for the jre did not change but the "Name" variable for the jre in this dialog box did.  I am not sure the impact of this but it is the only thing that appears to have changed.  Who knows, maybe "refreshing" this variable is the key.
  3. Click OK and then set the newly added jre as the default.  
  4. Click OK, say a small prayer and run a job.

For reference i have attached the log file 

 

thanks,

Advance Happy New year.

Moderator

Re: Talend studio 6.2.1 failed to read unix file

Hi,

Thanks for sharing your solution here and Happy New Year!

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.