How to use Delta Lake with spark-shell?

前端 未结 3 622
心在旅途
心在旅途 2021-01-15 20:37

I\'m trying to write as Spark DF as a DeltaTable. It\'s working fine in my IDE Intelliji , But with the same dependencies and versions it\'s not working in

3条回答
  •  悲哀的现实
    2021-01-15 20:49

    bin/spark-shell --packages io.delta:delta-core_2.11:0.6.1
    
    import io.delta.tables._
    import org.apache.spark.sql.functions._
    
    val deltaTable = DeltaTable.forPath("/tmp/delta-table")
    

提交回复
热议问题