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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -