[
https://issues.apache.org/jira/browse/PHOENIX-3427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15645155#comment-15645155
]
ASF GitHub Bot commented on PHOENIX-3427:
-----------------------------------------
GitHub user nico-pappagianis opened a pull request:
https://github.com/apache/phoenix/pull/221
PHOENIX-3427 fix saveToRdd for tenant-specific connections
@JamesRTaylor @jmahonin
Here is the fix for writing to tenant-specific objects via RDDs.
I added an optional tenantId argument to saveToPhoenix. Let me know if
there's another way we'd like to approach this (setting it in the conf,
perhaps).
Thanks again for all of the help!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nico-pappagianis/phoenix
multiTenantSaveToPhoenixRDDFix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/phoenix/pull/221.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #221
----
commit 128f1a46b41768e65eb293c69b99aae6447232c8
Author: Nico <[email protected]>
Date: 2016-11-07T19:18:01Z
PHOENIX-3427 fix saveToRdd for tenant-specific connections
----
> rdd.saveToPhoenix gives table undefined error when attempting to write to a
> tenant-specific view (TenantId defined in configuration object and passed to
> saveToPhoenix)
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PHOENIX-3427
> URL: https://issues.apache.org/jira/browse/PHOENIX-3427
> Project: Phoenix
> Issue Type: Bug
> Reporter: Nico Pappagianis
>
> Although we can read from a tenant-specific view by passing TenantId in the
> conf object when calling sc.phoenixTableAsRDD the same does not hold for
> rdd.saveToPhoenix. Calling saveToPhoenix with a tenant-specific view as the
> table name gives a table undefined error, even when passing in the TenantId
> with the conf object.
> It appears that TenantId is lost during the execution path of saveToPhoenix.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)