Commit e722de56 authored by Federico Mestrone's avatar Federico Mestrone
Browse files

Fixed bug in Pubsub config

parent 4c4549a4
gcp.project-id=qwiklabs-gcp-56c3e61809c73e4d
gcp.bucket=bucket-for-codemotion
gcp.project-id=qwiklabs-gcp-2e5306bf1fe3f6e6
gcp.bucket=gcp-bigdata-bucket-1
gcp.dataflow.staging=dataflow/staging/
gcp.dataflow.temp=dataflow/temp/
gcp.pubsub.topic=ad-impressions
gcp.pubsub.subscription=ad-impressions
gcp.pubsub.subscription=ad-impressions-df
streaming.write.folder=adtech/output/
streaming.read.file=adtech/train.csv
......@@ -128,6 +128,7 @@ public class IngesterMain {
Properties props = new Properties();
props.load(HttpApiMain.class.getResourceAsStream("/gcp.properties"));
setConfig(props);
PubsubHelper.setConfig(props);
ObjectifyService.init();
ObjectifyService.register(Impression.class);
Ingester ingester = mode.getIngester();
......
......@@ -15,4 +15,4 @@
<!--<name>google.bigtable.app.profile.id</name>-->
<!--<value>@gcp.bigtable-profile@</value>-->
<!--</property>-->
</configuration>
\ No newline at end of file
</configuration>
gcp.project-id=qwiklabs-gcp-56c3e61809c73e4d
gcp.project-id=qwiklabs-gcp-2e5306bf1fe3f6e6
gcp.topic-name=ad-impressions
gcp.bigtable-instance=instance-1
ingest.filename=~/test.csv
gcp.bigtable-instance=gcp-bigdata
ingest.filename=/home/google2960924_student/train.csv
ingest.mode=DIRECT
ingest.target=CLOUD_DATASTORE
ingest.style=FROM_FILE
\ No newline at end of file
ingest.target=CLOUD_PUBSUB
ingest.style=FROM_FILE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment