简体   繁体   English

如何从我上传到文件夹的转换中访问文件?

[英]How do I access a file from a Transform that I uploaded to a folder?

I uploaded an image file into a folder in Foundry, and I want to use it as an input to a Transform.我将一个图像文件上传到 Foundry 的一个文件夹中,我想将它用作转换的输入。 It looks like it's stored as some kind of resource in a service called Blobster, how can I access this file and use it?看起来它作为某种资源存储在名为 Blobster 的服务中,我怎样才能访问该文件并使用它?

When you drag and drop a file into a folder without making a dataset to hold it first , this puts the file into a different service (Blobster) than the one that serves the files to your Transform.当您将文件拖放到文件夹中而没有先创建数据集来保存它时,这会将文件放入不同的服务(Blobster),而不是为您的转换提供文件的服务。 As such, you would have to talk to that separate service in order to use its contents in your Transform.因此,您必须与该单独的服务对话才能在您的转换中使用其内容。

Instead, I'd recommend you upload the file into a dataset , by making an empty dataset first, then dragging and dropping the file into the dataset.相反,我建议您先将文件上传到数据集,方法是先创建一个空数据集,然后将文件拖放到数据集中。 Once it's inside the dataset, then you can use it as a standard input to a Transform without any extra work.一旦它进入数据集,您就可以将其用作转换的标准输入,而无需任何额外工作。 You'll simply access the file the same as you would any other file input.您只需像访问任何其他文件输入一样访问该文件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Blobster API 获取文件到 Foundry 转换? - How do I get a file from the Blobster API into a Foundry Transform? 在 Foundry 代码存储库中,如何从 Python 转换中记录调试消息? - In a Foundry Code Repository, how do I log debug messages from within a Python transform? 如何将数据集转换为 repo 中的字典。 我在铸造厂内使用 pyspark - How do I transform the data set into a dictionary inside the repo. I am using pyspark within foundry PALANTIR-FOUNDRY:如何在转换中添加 dataframe 的描述? - PALANTIR-FOUNDRY: How can I add a description for a dataframe in a transform? 如何访问代码工作簿中数据集的旧事务? - How do I access an old transaction of a dataset in Code Workbook? 如何从磁盘上的文件中添加指示行号的列? - How do I add a column indicating the row number from a file on disk? 如何设置从 Foundry 到 JDBC 源的写回? - How do I set up a writeback from Foundry to a JDBC source? 在 Palantir Foundry 中,我应该如何在转换中获取当前的 SparkSession? - In Palantir Foundry, how should I get the current SparkSession in a Transform? 如何在 Foundry Code Authoring 的 python 转换环境中使用 sqlContext(执行 SQL 查询)? - How can I use sqlContext (to execute SQL queries) in the python transform environment in Foundry Code Authoring? 在 Palantir Foundry 中,我怎样才能只在我的 Python Transform 的某些分支上运行测试? - In Palantir Foundry, how can I only run tests on some branches of my Python Transform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM