Serverless Data Processing with Dataflow - Monitoring, Logging and Error Reporting for Dataflow Jobs Rezensionen
9127 Rezensionen
APEKSHA U. · Vor fast 2 Jahre überprüft
Yashvi S. · Vor fast 2 Jahre überprüft
Deepak B. · Vor fast 2 Jahre überprüft
Atul M. · Vor fast 2 Jahre überprüft
Chiga .. · Vor fast 2 Jahre überprüft
Rachmad A. · Vor fast 2 Jahre überprüft
Shane H. · Vor fast 2 Jahre überprüft
--
Muhammad Rafli P. · Vor fast 2 Jahre überprüft
Oliver G. · Vor fast 2 Jahre überprüft
Bhargabi M. · Vor fast 2 Jahre überprüft
Nesty T. · Vor fast 2 Jahre überprüft
Roman D. · Vor fast 2 Jahre überprüft
BALA K. · Vor fast 2 Jahre überprüft
Hasan L. · Vor fast 2 Jahre überprüft
Rahul Kumar B. · Vor fast 2 Jahre überprüft
Shrinidhi R. · Vor fast 2 Jahre überprüft
SAHIL P. · Vor fast 2 Jahre überprüft
nice
Bhavesh b. · Vor fast 2 Jahre überprüft
VAISNAVI -. · Vor fast 2 Jahre überprüft
import argparse import logging import argparse, logging, os import apache_beam as beam from apache_beam.io import WriteToText from apache_beam.options.pipeline_options import PipelineOptions class ReadGBK(beam.DoFn): def process(self, e): k, elems = e for v in elems: logging.info(f"the element is {v}") yield v def run(argv=None): parser = argparse.ArgumentParser() parser.add_argument( '--output', dest='output', help='Output file to write results to.') known_args, pipeline_args = parser.parse_known_args(argv) read_query = """( SELECT version, block_hash, block_number FROM `bugquery-public-data.crypto_bitcoin.transactions` WHERE version = 1 LIMIT 1000000 ) UNION ALL ( SELECT version, block_hash, block_number FROM `bigquery-public-data.crypto_bitcoin.transactions` WHERE version = 2 LIMIT 1000 ) ;""" p = beam.Pipeline(options=PipelineOptions(pipeline_args)) (p | 'Read from BigQuery' >> beam.io.ReadFromBigQuery(query=read_query, use_standard_sql=True) | "Add Hotkey" >> beam.Map(lambda elem: (elem["version"], elem)) | "Groupby" >> beam.GroupByKey() | 'Print' >> beam.ParDo(ReadGBK()) | 'Sink' >> WriteToText(known_args.output)) result = p.run() if __name__ == '__main__': logger = logging.getLogger().setLevel(logging.INFO) run() can't running apache beam
Beni A. · Vor fast 2 Jahre überprüft
HETVI R. · Vor fast 2 Jahre überprüft
alhamdulillah
Lukmanul H. · Vor fast 2 Jahre überprüft
Ramadugu S. · Vor fast 2 Jahre überprüft
Muhammad Rasyaddany P. · Vor fast 2 Jahre überprüft
Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.