You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Borisa Zivkovic (JIRA)" <ji...@apache.org> on 2017/05/10 14:17:04 UTC

[jira] [Comment Edited] (BEAM-1702) Add support for local execution to BigtableIO using the google cloud emulator

    [ https://issues.apache.org/jira/browse/BEAM-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16004743#comment-16004743 ] 

Borisa Zivkovic edited comment on BEAM-1702 at 5/10/17 2:16 PM:
----------------------------------------------------------------

This already works if we do

BigtableOptions.Builder optionsBuilder =
				  new BigtableOptions.Builder()
				 .setProjectId(PROJECT_NAME)
 .setInstanceId(INSTANCE_ID).setDataHost("localhost").setUsePlaintextNegotiation(true).setInstanceAdminHost("localhost").setTableAdminHost("localhost").setPort(PORT);

I could add new feature in BigTableIO

withLocalhost(String localhost){} where I automatically turn on following:

setDataHost(localhost).setUsePlaintextNegotiation(true).setInstanceAdminHost(localhost).setTableAdminHost(localhost)

what do you think?




was (Author: zborisha):
This already works if we do

BigtableOptions.Builder optionsBuilder =
				  new BigtableOptions.Builder()
				 .setProjectId(PROJECT_NAME)
 .setInstanceId(INSTANCE_ID).setDataHost("localhost").setUsePlaintextNegotiation(true).setInstanceAdminHost("localhost").setTableAdminHost("localhost").setPort(PORT);

I could add new feature in BigTableIO

withLocalhost(String localhost){} where I automatically turn on following:

setDataHost("localhost").setUsePlaintextNegotiation(true).setInstanceAdminHost("localhost").setTableAdminHost("localhost")

what do you think?



> Add support for local execution to BigtableIO using the google cloud emulator
> -----------------------------------------------------------------------------
>
>                 Key: BEAM-1702
>                 URL: https://issues.apache.org/jira/browse/BEAM-1702
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-gcp
>            Reporter: Ismaël Mejía
>            Assignee: Borisa Zivkovic
>            Priority: Minor
>              Labels: newbie, starter
>
> Following the ongoing work to support this on DatastoreIO (BEAM-923), it makes sense to support this too.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)