dbwong commented on a change in pull request #9: PHOENIX-5284: Add documentation for PHOENIX-5197 URL: https://github.com/apache/phoenix-connectors/pull/9#discussion_r350515614
########## File path: phoenix-spark/README.md ########## @@ -153,6 +153,19 @@ optionally specifying a `conf` Hadoop configuration parameter with custom Phoeni as well as an optional `zkUrl` parameter for the Phoenix connection URL. - If `zkUrl` isn't specified, it's assumed that the "hbase.zookeeper.quorum" property has been set in the `conf` parameter. Similarly, if no configuration is passed in, `zkUrl` must be specified. +- As of [PHOENIX-5197](https://issues.apache.org/jira/browse/PHOENIX-5197), you can pass configurations from the driver +to executors as a comma-separated list against the key `phoenixConfigs` i.e (PhoenixDataSource.PHOENIX_CONFIGS), for ex: + ```scala + df = spark + .sqlContext + .read + .format("phoenix") + .options(Map("table" -> "Table1", "zkUrl" -> "hosta,hostb,hostc", "phoenixConfigs" -> "prop1=val1,prop2=val2,prop3=val3")) Review comment: Maybe a few real properties instead in this example? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
