44
Google BigQuery - The first step - 2016/05/28 Mulodo Vietnam Co., Ltd.

Big query the first step - (MOSG)

Embed Size (px)

Citation preview

Page 1: Big query the first step - (MOSG)

Google BigQuery - The first step -

2016/05/28 Mulodo Vietnam Co., Ltd.

Page 2: Big query the first step - (MOSG)

What’s BigQueryOfficial site : https://cloud.google.com/bigquery/docs/

BigQuery is Google's fully managed, petabyte scale, low cost analytics data warehouse.

BigQuery is NoOps—there is no infrastructure to manage and you don't need a database administrator—so you can focus on analyzing data to find meaningful insights, use familiar SQL, and take advantage of our pay-as-you-go model.

→ WDH: SQL like (easy to use), Petabyte scale(for Huge data)

Page 3: Big query the first step - (MOSG)

Features of BigQueryColumn oriented Database

Full Scan instead of using Index

Charge for scanned data size

http://static.googleusercontent.com/media/research.google.com/ja//pubs/archive/36632.pdf https://www.flickr.com/photos/mairin/galleries/72157624181197793/https://cloud.google.com/blog/big-data/2016/03/google-bigquery-cuts-historical-data-storage-cost-in-half-and-accelerates-many-queries-by-10x

Page 4: Big query the first step - (MOSG)

The first step - overview -1. Preparation (create account)

2. Try BigQuery with prepared data

3. Upload your data to your BigQuery storage and try it.

Page 5: Big query the first step - (MOSG)

Preparation steps1. Preparation (create account)

1. Create your Google account

2. Move to Google Cloud platform (has no account)

3. “Try IT Free”

4. “Sign up for free trial”

5. Account registration

6. Move to Google Cloud Platform (login)

7. Select ‘BigQuery’ from left menu (top-left icon)

Page 6: Big query the first step - (MOSG)

Create your google account1. Preparation (create account)

1. Create your Google account

https://accounts.google.com/signUp

Page 7: Big query the first step - (MOSG)

Move to Google Cloud Platform1. Preparation (create account)

2. Go to Google Cloud platform (has no account) 3. “Try IT Free”

https://cloud.google.com

Page 8: Big query the first step - (MOSG)

Move to Google Cloud Platform1. Preparation (create account)

2. Go to Google Cloud platform (has no account) 3. “Try IT Free”

https://cloud.google.com

Page 9: Big query the first step - (MOSG)

Move to Google Cloud Platform1. Preparation (create account)

2. Go to Google Cloud platform (has no account) 3. “Try IT Free”

https://cloud.google.com

Page 10: Big query the first step - (MOSG)

Account registration1. Preparation (create account)

4. “Sign up for free trial” 5. Account registration

Page 11: Big query the first step - (MOSG)

Account registration1. Preparation (create account)

4. “Sign up for free trial” 5. Account registration

<- Credit Card required

Page 12: Big query the first step - (MOSG)

Move to Google Cloud Platform1. Preparation (create account)

6. Move to Google Cloud Platform (login) 7. Select ‘BigQuery’ from left menu (top-left icon)

https://cloud.google.com

Page 13: Big query the first step - (MOSG)

Move to Google Cloud Platform1. Preparation (create account)

6. Move to Google Cloud Platform (login) 7. Select ‘BigQuery’ from left menu (top-left icon)

https://cloud.google.com

Page 14: Big query the first step - (MOSG)

Move to Google Cloud Platform1. Preparation (create account)

6. Move to Google Cloud Platform (login) 7. Select ‘BigQuery’ from left menu (top-left icon)

https://cloud.google.com

Page 15: Big query the first step - (MOSG)

Now you are ready to use BigQuery

Page 16: Big query the first step - (MOSG)

Credit card ....

I can hardly check how much I have as free credit.

Page 17: Big query the first step - (MOSG)

Credit card ....

I can hardly check how much I have as free credit.

Okay. Anytime you can check your free creit and trial days easily.

Page 18: Big query the first step - (MOSG)

... I wanna try BigQuery

Page 19: Big query the first step - (MOSG)

Try BigQuery with public data

Page 20: Big query the first step - (MOSG)

Try BigQuery with public data

Page 21: Big query the first step - (MOSG)

Query

Page 22: Big query the first step - (MOSG)

Query

SELECT repository_name FROM [bigquery-public-data:samples.github_timeline] LIMIT 1000

Page 23: Big query the first step - (MOSG)

Query

SELECT repository_name FROM [bigquery-public-data:samples.github_timeline] LIMIT 1000

Page 24: Big query the first step - (MOSG)

Query

SELECT repository_name FROM [bigquery-public-data:samples.github_timeline] LIMIT 1000

Page 25: Big query the first step - (MOSG)

Query

SELECT repository_name FROM [bigquery-public-data:samples.github_timeline] LIMIT 1000

Page 26: Big query the first step - (MOSG)

Query

SELECT repository_name FROM [bigquery-public-data:samples.github_timeline] LIMIT 1000

EX) Query complete (2.1s elapsed, cached) Query complete (3.8s elapsed, 61.4 MB processed)

Page 27: Big query the first step - (MOSG)

More query

SELECT actor, actor_attributes_name , count( actor_attributes_name ) as amount FROM [bigquery-public-data:samples.github_timeline]

group by actor, actor_attributes_name order by amount desc LIMIT 1000

Page 28: Big query the first step - (MOSG)

Much more query

You can check query syntax by yourself.

https://cloud.google.com/bigquery/query-reference

Page 29: Big query the first step - (MOSG)

Upload your data

1. Create database

2. Create Table (with CSV)

3. check “Table ID”

4. QUERY!

Page 30: Big query the first step - (MOSG)

Create new dataset

Page 31: Big query the first step - (MOSG)

Create new dataset

Page 32: Big query the first step - (MOSG)

Create new dataset

Page 33: Big query the first step - (MOSG)

Create new dataset

Page 34: Big query the first step - (MOSG)

Create newTable (with CSV file)

Page 35: Big query the first step - (MOSG)

Create newTable (with CSV file)

Page 36: Big query the first step - (MOSG)

Create newTable (with CSV file)

Page 37: Big query the first step - (MOSG)

Create newTable (with CSV file)

nemo,47,[email protected] foo,30,[email protected] bar,25,[email protected]

sample.csv

Page 38: Big query the first step - (MOSG)

Create newTable (with CSV file)

nemo,47,[email protected] foo,30,[email protected] bar,25,[email protected]

sample.csv

Page 39: Big query the first step - (MOSG)

Check “Table ID”

Page 40: Big query the first step - (MOSG)

Check “Table ID”

Page 41: Big query the first step - (MOSG)

Check “Table ID”

Page 42: Big query the first step - (MOSG)

QUERY for your own table!!

Page 43: Big query the first step - (MOSG)

Now you are ready to use

BigQuery.

Page 44: Big query the first step - (MOSG)

NextInstall GCP SDK

Use command line tools

Characteristic of Google BigQuery.

Especially, Tips for business use.

Thank you!