Deploy beam-enrich results in a NullPointException


#1

I am currently trying to deploy the beam-enrich to GCP and getting the above error

 ./beam-enrich \
      --runner=DataFlowRunner \
      --project=[GCP Project ID] \
      --streaming=true \
      --zone=europe-west1-a \
      --gcpTempLocation=gs://snowplow/tmp \
      --job-name=beam-enrich \
      --raw=projects/[GCP Project ID]/subscriptions/raw  \
      --enriched=projects/[GCP Project ID]/topics/enriched \
      --bad=projects/[GCP Project ID]/topics/bad \
      --resolver=iglu_resolver.json \
      --enrichments=enrichments/ \
      --numWorkers=1 \
      --maxNumWorkers=1 \
      --workerMachineType=n1-standard-1

This results in the following error

    Exception in thread "main" java.lang.NullPointerException: creds
    	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787)
    	at io.grpc.auth.GoogleAuthLibraryCallCredentials.<init>(GoogleAuthLibraryCallCredentials.java:65)
    	at io.grpc.auth.GoogleAuthLibraryCallCredentials.<init>(GoogleAuthLibraryCallCredentials.java:60)
    	at io.grpc.auth.MoreCallCredentials.from(MoreCallCredentials.java:35)
    	at com.spotify.scio.pubsub.PubSubAdmin$GrpcClient$.publisher(PubSubAdmin.scala:56)
    	at com.spotify.scio.pubsub.PubSubAdmin$.topic(PubSubAdmin.scala:83)
    	at com.snowplowanalytics.snowplow.enrich.beam.Enrich$.com$snowplowanalytics$snowplow$enrich$beam$Enrich$$checkTopicExists(Enrich.scala:254)
    	at com.snowplowanalytics.snowplow.enrich.beam.Enrich$$anonfun$4.apply(Enrich.scala:60)
    	at com.snowplowanalytics.snowplow.enrich.beam.Enrich$$anonfun$4.apply(Enrich.scala:58)
    	at scalaz.Validation$class.flatMap(Validation.scala:139)
    	at scalaz.Success.flatMap(Validation.scala:345)
    	at com.snowplowanalytics.snowplow.enrich.beam.Enrich$.main(Enrich.scala:58)
    	at com.snowplowanalytics.snowplow.enrich.beam.Enrich.main(Enrich.scala)

Thanks in advance for any advice you can give in solving this.