Skip to content

Commit 061734a

Browse files
committed
---
yaml --- r: 1509 b: refs/heads/master c: 6af6db4 h: refs/heads/master i: 1507: 19461a0
1 parent 28d12ba commit 061734a

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f78da9d7f3a4f069d05208384d9a53dbd59689df
2+
refs/heads/master: 6af6db4cdfbc1adf69f5eb8e668fdf5f8b089766
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3

trunk/gcloud-java-examples/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@ To run examples from your command line:
4141

4242
Here's an example run of `BigQueryExample`.
4343

44-
Before running the example, go to the [Google Developers Console][developers-console] to ensure that BigQuery API is enabled.
44+
Before running the example, go to the [Google Developers Console][developers-console] to ensure
45+
that BigQuery API is enabled. You can upload a CSV file `my_csv_file` to the `my_bucket` bucket
46+
(replace `my_csv_file` and `my_bucket` with actual file and bucket names) using the GCS
47+
[web browser](https://console.developers.google.com/storage/browser). The CSV file will be used to
48+
load data into a BigQuery table and should look something like:
49+
```csv
50+
value1
51+
value2
52+
value3
53+
```
54+
Then you are ready to run the following example:
4555
```
4656
$mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.BigQueryExample" -Dexec.args="create dataset new_dataset_id"
4757
$mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.BigQueryExample" -Dexec.args="create table new_dataset_id new_table_id field_name:string"

0 commit comments

Comments
 (0)