英文:
Unable to get the filelist using STD.File.RemoteDirectory
问题
我们正在尝试将Unix机器用作将文件读取到HPCC Thor环境的着陆区。最初,我们遇到了以下错误:
> 系统错误:-1:无法连接(设置主机关闭)到XX.XXX.XX.XX上的dafilesrv/daliservix的7100端口
然后,我们在着陆区安装了dafilesrv并启动了它。我们还确保两个系统之间没有防火墙限制。
现在,当我尝试从着陆区读取文件时,不再出现上述错误。但是,我没有得到文件列表。以下命令的输出为空:
Filelist := STD.File.RemoteDirectory('XX.XXX.XX.XX','<文件路径>','*.csv');
output(Filelist);
是否应该考虑某种配置/设置,以便HPCC能够从Unix机器获取文件列表。
英文:
We are trying to use a unix machine as landing zone for reading files into an HPCC Thor environment. Initially we would get the error
> System error: -1: Failed to connect (setting host down) to dafilesrv/daliservix on XX.XXX.XX.XX:7100
Then we got dafilesrv installed on the landing zone and started it. We also ensured if there are no firewall restriction between the two systems.
Now, when I try to read files from the landing zone, I do not get the above error. But, I do not get the filelist. The output from the following command is blank:
Filelist := STD.File.RemoteDirectory('XX.XXX.XX.XX','<file path>','*.csv');
output(Filelist);
is there configuration / setting we should be considering so that HPCC is able to get the list of files from the unix machine.
答案1
得分: 1
同事(平台开发人员之一)刚刚在两个Ubuntu虚拟机之间测试了这种情况,并成功获取了文件列表。他对我说:“如果远程目录路径不正确(它是相对的或包含拼写错误),我会收到空结果(没有错误信息)。”
所以我建议你的远程目录路径很可能不正确。
希望有所帮助,
Richard
英文:
A colleague (one of the platform developers) just tested this scenario between two Ubuntu VMs and was successfully able to get the file list. He did note to me that "I received empty result (without error) if the remote directory path wasn't correct (it was relative or contained typo)."
So I suggest that it is most likely that your remote directory path isn't correct.
HTH,
Richard
答案2
得分: 1
The ECL Watch Landing Zone page可以使用上面的图片识别您正确的machineIP和dir。然后:
output(STD.File.RemoteDirectory('10.173.2xx.x','/mnt/disk1/var/lib/HPCCSystems/dropzone','*.csv'));
对我有效!(我掩盖了我的IP地址以确保安全)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论