Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
when attempting to run a job
with tGoogleDriveCopy
created on a machine other than the one the job was built java.io.IOException: unable to create directory: DIRECTORY_FROM_ORIGINAL_MACHINE. Is there any way to get around this error?Exception in component tGoogleDriveCopy_1 (gdrivetest3)
java.io.IOException: unable to create directory: /Users/n8/.credentials/talend-googledrive/GoogleDrive Talend Job
at com.google.api.client.util.store.FileDataStoreFactory.<init>(FileDataStoreFactory.java:71)
at org.talend.components.google.drive.runtime.client.GoogleDriveCredentialWithInstalledApplication$Builder.<init>(GoogleDriveCredentialWithInstalledApplication.java:91)
at org.talend.components.google.drive.runtime.client.GoogleDriveCredentialWithInstalledApplication$BuilderWithIdAndSecret.<init>(GoogleDriveCredentialWithInstalledApplication.java:128)
at org.talend.components.google.drive.runtime.client.GoogleDriveCredentialWithInstalledApplication.builderWithIdAndSecret(GoogleDriveCredentialWithInstalledApplication.java:42)
at org.talend.components.google.drive.runtime.GoogleDriveRuntime.getCredential(GoogleDriveRuntime.java:164)
at org.talend.components.google.drive.runtime.GoogleDriveRuntime.getDriveService(GoogleDriveRuntime.java:178)
at org.talend.components.google.drive.runtime.GoogleDriveReader.start(GoogleDriveReader.java:57)
at org.talend.components.google.drive.runtime.GoogleDriveCopyReader.start(GoogleDriveCopyReader.java:49)
at org.talend.codegen.flowvariables.runtime.FlowVariablesReader.start(FlowVariablesReader.java:73)
at reports.gdrivetest3_0_1.gdrivetest3.tGoogleDriveCopy_1Process(gdrivetest3.java:751)
at reports.gdrivetest3_0_1.gdrivetest3.runJobInTOS(gdrivetest3.java:1990)
at reports.gdrivetest3_0_1.gdrivetest3.main(gdrivetest3.java:1819)
You are using a tGoogleDriveConnection component, therefore the DataStore Path will be on the Advanced Settings of that component.
If you go to the Advanced Settings of this component you will see you can set this location. If you want to use it on different machines, you can use a Context Variable here and set the value of the Context Variable for each location you run it on.
Thank you, I see that in the documentation, but unfortunately it does not seem available on my version of talend.
Can you take a screenshot of your component's Basic Settings and Advanced Settings? You should have this in v7
You are using a tGoogleDriveConnection component, therefore the DataStore Path will be on the Advanced Settings of that component.
Much appreciated!
No problem! Glad you got it sorted 🙂