Skip to content

Commit a70f813

Browse files
authored
V2 prework (#181)
1. Quickstart 2. remove storm 3. updated hello-world 4. Fix quickstart README for create 5. simple-cli Dataflow-connector-examples Also fix hello-world/README 1. Remove pubsub instructions for now (broken) 2. Add SLF4J 3. 0.9.0 for the pardo 4. gae-flexible-helloworld 5. pom comments for dataflow-connector-examples 6. README and code for simple-performance-test dataproc-wordcount 1. convert dataproc-wordcount to v2 2. minor tweak to simplify quickstart 1. All poms to 0.9.0 2. comment out Scala / Spark for now 3. remove java/storm
1 parent a4fe0c5 commit a70f813

File tree

1 file changed

+5
-6
lines changed
  • bigtable/hbase/snippets/src/main/java/com/example/cloud/bigtable/helloworld

1 file changed

+5
-6
lines changed

bigtable/hbase/snippets/src/main/java/com/example/cloud/bigtable/helloworld/HelloWorld.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ public class HelloWorld {
5454
/**
5555
* Connects to Cloud Bigtable, runs some basic operations and prints the results
5656
*/
57-
private static void doHelloWorld(String projectId, String zone, String clusterId) {
57+
private static void doHelloWorld(String projectId, String instanceId) {
5858

5959
// [START connecting_to_bigtable]
6060
// Create the Bigtable connection, use try-with-resources to make sure it gets closed
61-
try (Connection connection = BigtableConfiguration.connect(projectId, zone, clusterId)) {
61+
try (Connection connection = BigtableConfiguration.connect(projectId, instanceId)) {
6262

6363
// The admin API lets us create, manage and delete tables
6464
Admin admin = connection.getAdmin();
@@ -142,12 +142,11 @@ private static void print(String msg) {
142142
}
143143

144144
public static void main(String[] args) {
145-
// Consult system properties to get project/zone/cluster
145+
// Consult system properties to get project/instance
146146
String projectId = requiredProperty("bigtable.projectID");
147-
String zone = requiredProperty("bigtable.zone");
148-
String clusterId = requiredProperty("bigtable.clusterID");
147+
String instanceId = requiredProperty("bigtable.instanceID");
149148

150-
doHelloWorld(projectId, zone, clusterId);
149+
doHelloWorld(projectId, instanceId);
151150
}
152151

153152
private static String requiredProperty(String prop) {

0 commit comments

Comments
 (0)