[
https://issues.apache.org/jira/browse/PHOENIX-2429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011190#comment-15011190
]
Josh Mahonin commented on PHOENIX-2429:
---------------------------------------
So I think this issue affects the Pig and MapReduce functionality as well.
When creating the 'Connection' object for the output, a new Properties() object
is created, but the SCN setting (presumably
PhoenixConfigurationUtil.CURRENT_SCN_VALUE) isn't copied over. [1]
It looks like we already do something similar for this in the
PhoenixInputFormat, to override the newly created Properties object. [2]
[~jamestaylor] [[email protected]]
What do you think about adding a new 'getProperties(Configuration conf)'
method in PhoenixConfigurationUtil to keep these overridable properties in one
spot, then updating the ConnectionUtil methods (or perhaps PropertiesUtil?) to
call that method.
[1]
https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/util/ConnectionUtil.java#L69-L71
[2]
https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/PhoenixInputFormat.java#L107-L111
> PhoenixConfigurationUtil.CURRENT_SCN_VALUE for phoenix-spark plugin does not
> work
> ---------------------------------------------------------------------------------
>
> Key: PHOENIX-2429
> URL: https://issues.apache.org/jira/browse/PHOENIX-2429
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.2.0, 4.6.0
> Reporter: Diego Fustes Villadóniga
>
> When I call the method saveToPhoenix to store the contents of a ProductDD,
> passing a hadoop configuration, where I set
> PhoenixConfigurationUtil.CURRENT_SCN_VALUE to be a given timestamp, the
> values are not stored with such timestamp, but using the server time
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)