我已经创建并运行了一个DataPrep作业,并尝试在appengine上使用python中的模板。 我可以用
gcloud dataflow jobs run
--parameters "inputLocations={\"location1\":\"gs://bucket/folder/*\"},
outputLocations={\"location1\":\"project:dataset.table\"},
customGcsTempLocation=gs://bucket/DataPrep-beta/temp"
--gcs-location gs://bucket/DataPrep-beta/temp/cloud-dataprep-templatename_template
但是尝试在app引擎上使用python
^{pr2}$我回来了
"Invalid JSON payload received. Unknown name "location1" at
'launch_parameters.parameters[1].value': Cannot find field.
Invalid JSON payload received. Unknown name "location1" at
'launch_parameters.parameters[2].value': Cannot find field."
我所做的一切似乎都不支持通过口述或json.dumps文件()或str()到“inputLocations”或“outputLocations”。在
问题在于您传递的
input1
和output1
的格式。 它们必须在引号之间,如下所示:我尝试过用与你相同的方式发送请求,但失败了。如果我稍后将其解析回string或json,它也会失败,因为它无法正确解析引号。在
当然,格式和你的问题有关。我有相同的用例需要解决,但是输出的是文件,而不是googlebigquery数据集。对我来说,具有以下BODY参数的代码正在启动google数据流管道:
相关问题 更多 >
编程相关推荐