Spark on Phoenix 4.x Connector: how to set parameters Phoenix side Spark

Foreword

X-Pack Spark use Spark on Phoenix 4.x Connector database interface directly Phoenix, Phoenix data read table data. May need to set some parameters in reading Phoenix Phoenix, Phoenix, for example in order to protect the stability of the database, the index contains a default open, i.e. query Phoebe band index or table must be the primary key field as a filter. At this Spark Phoenix as a query database client needs to have the ability to pass parameters. Spark paper side transfer methods include Phoenix parameters.
Note: The case of this paper, X-Pack Spark and HBase SQL (Phoenix) 4.x as a background.

Case Description

Setting parameters of the common Phoenix Spark side are as follows:

  1. phoenix.force.index , whether the query Phoenix SQL statement in the filter field must create the index. Taking this parameter, for example,

Guess you like

Origin yq.aliyun.com/articles/710257