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