Home > other >  The spark to phoenix
The spark to phoenix

Time:10-23

Now business needs to the phoenix continues to write history data in the table, but now with the
Df. Write. Mode (SaveMode. Overwrite)
. Options (Map (" table "- & gt; ", "
"ZkUrl" - & gt; ""))
. The format (org. Apache. Phoenix. "spark")
The save ()
This method supports the Overwrite mode, only to retain the previous data, only the former data read out also merged to write again, after the large amount of data is not necessarily a long-term solution, there are other ways?

CodePudding user response:

I know 2 methods, saveastable, fetchsize are bulk insert
  • Related