Support Questions
Find answers, ask questions, and share your expertise

How to execute google big query from NiFi.?

Super Collaborator


i do not see any processors to connect to Google Big Query and execute queries.

is there a way where i can get results from google big query using NiFi.?


@Saikrishna Tarapareddy

Unfortunately, there is no specialized processor to connect to Google Big Query and execute queries. There has been some discussions about a set of new processors to support various Google Cloud services, but those processors are still to be planned into a release.

Until then you can use ExecuteScript processor.

Here is an example on how to write a script using Python: . At you can see other examples using other languages also supported by ExecuteScript processor.

Obviously, there is always the possibility to develop your own processor leveraging the Java example provided by Google doc. Example of how to build NiFi custom processor:

If this response addressed reasonably your question, please vote and accept answer.

@Saikrishna Tarapareddy

The community processor mentioned by Tim is a good example on how to write a custom processor. It is limited to Put action and quite old. You would have to rebuild it using more up-to-date libraries.

Community processors are not supported by Hortonworks.

Super Guru

There is an open source community processor you can try:

Super Collaborator

Hi @Constantin Stanca

Can we use their REST APIs to download bigquery tables?

Hi @Timothy Spann , we cannot use any other processors which are not supported.



@Saikrishna Tarapareddy

You can use their API to download the data from those tables. Those examples show how to select the data. However, you may deal with a lot of data. You may want to extract it from BigQuery, store it in Google Cloud Storage Bucket (GCS) and connect NiFi to GCS which is supported nicely with GCS processors to list, fetch, put, delete from GCS. That is the most efficient way.

Look at this reference to see how to extract the data:

You can schedule a job to extract and put to GCS bucket and NiFi will just pick it up.

Super Collaborator

@Constantin Stanca,

My file names will change everyday like datafile_yyyymmdd.json , so we still need to create a scheduled job using Nifi and their RESTAPI to move the file to GCS.? Or is there a way that we can separate this .?



New Contributor

I had the same isssue and needed to create a processor on my own. Have a look at it:

New Contributor

Are these processors public so others can benefit from them?

New Contributor

@Pawel Leszczynski

Can't find it 😕 Where is the code source or the nar file please ?

Thanks for response.


Hi @Pawel Leszczynski
Can't find it... Where is the code source of this processor ?

Thanks for your response.

Cloudera Employee


With this processor, you can do Batch loads flow files content to a Google BigQuery table.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.