Google cloud platform gcloud beta数据流缺少有关参数的文档
当我尝试运行以下操作时:Google cloud platform gcloud beta数据流缺少有关参数的文档,google-cloud-platform,google-cloud-dataflow,gcloud,dataflow,Google Cloud Platform,Google Cloud Dataflow,Gcloud,Dataflow,当我尝试运行以下操作时: gcloud beta dataflow jobs run $JOB_NAME \ --region $GCP_REGION \ --gcs-location gs://dataflow-templates/latest/PubSub_to_BigQuery \ --network $VPC_NAME \ --subnetwork regions/$GCP_REGION/subnetworks/$VPC_SUBNETWORK \ --staging-location g
gcloud beta dataflow jobs run $JOB_NAME \
--region $GCP_REGION \
--gcs-location gs://dataflow-templates/latest/PubSub_to_BigQuery \
--network $VPC_NAME \
--subnetwork regions/$GCP_REGION/subnetworks/$VPC_SUBNETWORK \
--staging-location gs://$GCP_PROJECT_ID-assoc-history-dataflow \
--worker-machine-type n1-standard-1 \
--parameters \
"inputTopic=$INPUT_TOPIC,\
outputTableSpec=$OUTPUT_SPEC,\
javascriptTextTransformGcsPath=$UDF_LOCATION,\
javascriptTextTransformFunctionName=myFunctionName"
gcloud向我提供了以下错误:
错误:(gcloud.beta.dataflow.jobs.run)无效的参数:模板
参数无效。
-“@type”:type.googleapis.com/google.dataflow.v1beta3.InvalidTemplateParameters
参数冲突:
-描述:无法识别的参数
参数:|-
\
javascriptTextTransformGcsPath
根据当前文档(),参数中似乎提供了
javascriptTextTransformGcsPath
。我正在使用beta gcloud sdk指定我的VPC和子网。是否有指向JavaScript udf参数如何更改的文档的链接,或者是否有其他方法来指定该参数 这是因为您在参数中使用了引号(“)。您可以查看文档。例如:
gcloud dataflow jobs run JOB_NAME \
--gcs-location gs://dataflow-templates/latest/Bulk_Decompress_GCS_Files \
--parameters \
inputFilePattern=gs://YOUR_BUCKET_NAME/compressed/*.gz,\
outputDirectory=gs://YOUR_BUCKET_NAME/decompressed,\
outputFailureFile=OUTPUT_FAILURE_FILE_PATH
只要删除它,它就会工作。这是因为您在参数中使用了引号(“)。您可以查看文档。例如:
gcloud dataflow jobs run JOB_NAME \
--gcs-location gs://dataflow-templates/latest/Bulk_Decompress_GCS_Files \
--parameters \
inputFilePattern=gs://YOUR_BUCKET_NAME/compressed/*.gz,\
outputDirectory=gs://YOUR_BUCKET_NAME/decompressed,\
outputFailureFile=OUTPUT_FAILURE_FILE_PATH
只要删除它,它就会工作。结果是变量中有空格,引号不喜欢这样。非常感谢。结果发现变量中有一个空格,引号不喜欢这样。非常感谢。