Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Text File Output, the file is not created when executing on a remote server and using the filename instead of the filename from field option. #4789

Open
NicoDupont opened this issue Jan 16, 2025 · 6 comments

Comments

@NicoDupont
Copy link

Apache Hop version?

2.11

Java version?

22

Operating system

Windows

What happened?

jdk 22
hop 2.10 or 2.11

Text File Output

When workflow/pipeline is executed on remote serveur and if I use the filename, the file is not created and there is no error.
When I use the filename from field option, it works well like as expected.

I do some tests with network path, local path and/or parameter.
I got always the same result.

No problem if I use the filename via hop gui and local execution.

thx !

Image

Image

Issue Priority

Priority: 2

Issue Component

Component: Hop Server

@hansva
Copy link
Contributor

hansva commented Jan 16, 2025

we do not support SMB paths (\servername), it does not work consistently on all transforms. The safest way is to mount it as a drive letter.

That being said, what do you mean by executed on a remote server? Do you mean using a remote Hop Server run configuration?

@NicoDupont
Copy link
Author

yes
ok for smb path
but it doesn't work with local disk either

Image

@bamaer
Copy link
Contributor

bamaer commented Jan 16, 2025

try forward slashes or double backslashes

@NicoDupont
Copy link
Author

NicoDupont commented Jan 16, 2025

I tried

  • E:\Import_Export\e-TMS\in\vehicules
  • E:\\Import_Export\\e-TMS\\in\\vehicules
  • e/Import_Export/e-TMS/in/vehicules
  • \\serveurname\Import_Export\e-TMS\in\vehicules
  • \\\\serveurname\\Import_Export\\e-TMS\\in\\vehicules
  • file:////serveurname/Import_Export/e-TMS/in/vehicules
  • file////serveurname//Import_Export//e-TMS//in//vehicules
  • file:////serveurname//Import_Export//e-TMS//in//vehicules
  • file:///\\serveurname\Import_Export\e-TMS\in\vehicules\vehicules

There's a strange behavior because when I don't put anything in the file name. I get an error at runtime.
but if I write something like "anything" the execution doesn't generate an error.

On hop gui local execution it works with this 2 options on the Filename
\\serveurname\Import_Export\e-TMS\in\vehicules\vehicules
or E:\Import_Export\e-TMS\in\vehicules\vehicules

On remote serveur nothing work except using the option filename from field
on field I put :
\\serveurname\Import_Export\e-TMS\in\vehicules\vehicules
OR
E:\Import_Export\e-TMS\in\vehicules
and it works as expected

@NicoDupont
Copy link
Author

NicoDupont commented Jan 16, 2025

one more test -> all works good with hop-run
the problem only appears with Hop remote configuration

@NicoDupont
Copy link
Author

not sure but it looks like a similar problem
#4161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants