Coder Social home page Coder Social logo

bq-mockdata-generator's Introduction

Loading Json data by creating dynamic BQ table and schema

Create a template:

gradle run -DmainClass=com.google.swarm.datagenerator.BQStream -Pargs=" --streaming --project= --runner=DataflowRunner --tempLocation=gs://df-template-temp/temp --templateLocation=gs://df-template-temp/mutation_template --dataSetId= --subTopic=projects//subscriptions/df-sub --numWorkers=115 --workerMachineType=n1-standard-8 --maxNumWorkers=115 --autoscalingAlgorithm=NONE --experiments=shuffle_mode=service"

Run the template:

gcloud dataflow jobs run data-pipeline --gcs-location gs://df-template-temp/mutation_template

Mock Data Generator from Pub/Sub to BQ in JSON

gradle run -DmainClass=com.google.swarm.datagenerator.StreamingBenchmark -Pargs="--streaming --project= --runner=DataflowRunner --numWorkers=20 --maxNumWorkers=20 --workerMachineType=n1-standard-4 --qps=200000 --schemaLocation=gs://input-json/locations.json --eventType=locations --topic=projects//topics/events --templateLocation=gs://df-template-temp/locations --experiments=shuffle_mode=service --autoscalingAlgorithm=NONE"

gcloud dataflow jobs run location-pipeline --gcs-location gs://df-template-temp/locations

Alternative Option By passing Pub/Sub

gradle run -Pargs=" --streaming --project= --batchSize=1000 --numberofRows=10000 --tableSpec=bq-sql-load-test:telco_analytics.clickstream_raw --inputFile=gs://bq-schema-files/clickstream_schema.json"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.