apache spark - Unable save DataFrame to Phoenix -
when try below code in spark:
jdbcdf.write.mode(savemode.overwrite) .options(map("table" -> "dc_patient", "zkurl" -> "hadoop001:2181")) .format("org.apache.phoenix.spark").save()
it throws following exception :
error: not found: value savemode
am missing jars? jdbcdf
correct dataframe.
environment:
- scala 2.11.8
- spark 2.2.0
- phoenix apache-phoenix-4.11.0-hbase-1.1
Comments
Post a Comment