phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sateesh Karuturi <sateesh.karutu...@gmail.com>
Subject write dataframe to phoenix
Date Mon, 27 Mar 2017 04:49:01 GMT
Please anyone help me out how to write dataframe to phoenix in java?

here is my code:

pos_offer_new_join.write().format("org.apache.phoenix.spark").mode(SaveMode.Overwrite)

                        .options(ImmutableMap.of("driver",
"org.apache.phoenix.jdbc.PhoenixDriver","zkUrl",

                        "jdbc:phoenix:localhost:2181","table","RESULT"))

                        .save();


but i am not able to write data to phoenix.


Thanks.

Mime
View raw message