我已经看过这些帖子:
它们很有帮助,我最终为发布/订阅消息创建了类似的东西,比如:<code>{“id”:“1”}</code>(仅用于测试):
subscription = f"projects/{project}/subscriptions/test-subscriber"
with beam.Pipeline(options=pipeline_options) as p:
records = p | 'Read' >> beam.io.ReadFromPubSub(subscription=subscription)
_ = records | 'Write' >> beam.io.parquetio.WriteToParquet(
'gs://<bucket>/parquet/output/new',
pa.schema([('id', pa.string())]),
file_name_suffix=".parquet"
)
我只能看到错误“工作流失败”。但仅对于DataflowRunner,对于DirectRunner,我没有问题。这里是“运行”命令:
python code/dataflow/pubsub_to_gcs.py \
--project=${PROJECT_NAME} \
--output_path=gs://"${BUCKET_NAME}"/dataflow_output \
--region=${REGION} \
--job_name=testdataflow \
--runner=DataflowRunner \
--staging_location gs://${BUCKET_NAME}/staging_location \
--temp_location=gs://${BUCKET_NAME}/temp \
以下是此作业的日志(前几行是最后出现的):
insertId,"labels.""dataflow.googleapis.com/job_id""","labels.""dataflow.googleapis.com/job_name""","labels.""dataflow.googleapis.com/log_type""","labels.""dataflow.googleapis.com/region""",logName,receiveTimestamp,resource.labels.job_id,resource.labels.job_name,resource.labels.project_id,resource.labels.region,resource.labels.step_id,resource.type,severity,textPayload,timestamp
kj98obbko,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>/logs/dataflow.googleapis.com%2Fjob-message,2021-01-13T14:39:46.649539202Z,2021-01-13_06_39_40-5574094972724851911,testdataflow,504796790819,us-west1,,dataflow_step,INFO,Worker pool stopped.,2021-01-13T14:39:45.784300690Z
kj98obbkn,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>/logs/dataflow.googleapis.com%2Fjob-message,2021-01-13T14:39:46.649539202Z,2021-01-13_06_39_40-5574094972724851911,testdataflow,504796790819,us-west1,,dataflow_step,DEBUG,Cleaning up.,2021-01-13T14:39:45.751440904Z
kj98obbkm,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>/logs/dataflow.googleapis.com%2Fjob-message,2021-01-13T14:39:46.649539202Z,2021-01-13_06_39_40-5574094972724851911,testdataflow,504796790819,us-west1,,dataflow_step,ERROR,Workflow failed.,2021-01-13T14:39:45.733187585Z
kj98obbkl,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>/logs/dataflow.googleapis.com%2Fjob-message,2021-01-13T14:39:46.649539202Z,2021-01-13_06_39_40-5574094972724851911,testdataflow,504796790819,us-west1,,dataflow_step,DEBUG,Fusing consumer WriteToParquet/Write/WriteImpl/FinalizeWrite/_DataflowIterableAsMultimapSideInput(MapToVoidKey2.out.0)/StreamingPCollectionViewWriter into WriteToParquet/Write/WriteImpl/FinalizeWrite/_DataflowIterableAsMultimapSideInput(MapToVoidKey2.out.0)/Values,2021-01-13T14:39:45.666536683Z
kj98obbkk,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>/logs/dataflow.googleapis.com%2Fjob-message,2021-01-13T14:39:46.649539202Z,2021-01-13_06_39_40-5574094972724851911,testdataflow,504796790819,us-west1,,dataflow_step,DEBUG,Fusing consumer WriteToParquet/Write/WriteImpl/FinalizeWrite/_DataflowIterableAsMultimapSideInput(MapToVoidKey2.out.0)/Values into WriteToParquet/Write/WriteImpl/FinalizeWrite/_DataflowIterableAsMultimapSideInput(MapToVoidKey2.out.0)/GroupByKey/MergeBuckets,2021-01-13T14:39:45.651338237Z
kj98obbkj,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>/logs/dataflow.googleapis.com%2Fjob-message,2021-01-13T14:39:46.649539202Z,2021-01-13_06_39_40-5574094972724851911,testdataflow,504796790819,us-west1,,dataflow_step,DEBUG,Fusing consumer WriteToParquet/Write/WriteImpl/FinalizeWrite/_DataflowIterableAsMultimapSideInput(MapToVoidKey2.out.0)/GroupByKey/MergeBuckets into WriteToParquet/Write/WriteImpl/FinalizeWrite/_DataflowIterableAsMultimapSideInput(MapToVoidKey2.out.0)/GroupByKey/ReadStream,2021-01-13T14:39:45.635839235Z
kj98obbki,2021-01-13_06_39_40-5574094972724851911,testdataflow,system,us-west1,projects/<proj>
现在,我放弃了使用dataflow,但如果有人知道我应该在哪里检查,我将不胜感激。
最近我遇到了一个类似的问题,我通过查看与该作业相关的所有日志来修复它。在我的例子中,导致作业失败的原因是没有安装依赖项。我建议您检查日志,看看依赖项是否安装良好。
我通过批处理文件给Saxon(9.6 HE)打电话: 命令
我没有使用php的mail()函数,而是尝试设置PHPMailer,但没有成功。为了调试的目的,我输入了“echo here”,这就是它显示的全部内容。我没有收到任何电子邮件,也没有收到任何已发送或错误消息。我被难住了,在这里研究之后,我可能会改用swift mailer。我真的很想知道我搞砸了什么。 在我的代码中,地址设置为我的电子邮件,用户名和密码设置为我创建的虚拟帐户。
我在谷歌云平台上运行数据流作业,我得到的一个新错误是“工作流失败”,没有任何解释。我得到的日志如下: 我该怎么找出哪里出了问题?对象上的权限不应该有问题,因为类似的作业会成功运行。当我试图从谷歌云控制台重新运行模板时,我会收到消息: 找不到此模板的元数据文件 但是我能够启动模板,现在它成功运行。这可能与超额配额有关吗?我们刚刚增加了数据流的CPU和IP配额,我将并行运行的作业从5个增加到15个,以
一个“通过”测试但配置失败的示例。 失败的配置:@afterclass tearDown java.lang.assertionerror:java.lang.assertionerror:expected[true],但在)在org.testng.internal.MethodInvocationHelper.invokeMethodCommissioningTimeout(methodInvo
我正在尝试与RESTful API接口,该API在post中接受应用程序/x-protobuf对象。 .原型示例对象: 使用请求,我可以将此消息发布到服务器并收到200。 例如 当我以SerializeToString()格式查看此有效负载时,它显示类似于 b'\n\t\n\x03foo\x10\x01' 作为健全性检查,然后我可以创建一个新的消息对象和。将其上的ParseFromString()