jiegzhan opened a new issue #1372:
URL: https://github.com/apache/iceberg/issues/1372
Started spark-shell on EMR (Spark 2.4) with this command:
```
spark-shell \
--jars /usr/lib/iceberg/iceberg-spark-runtime-0.9.1.jar \
--conf
spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog \
--conf spark.sql.catalog.spark_catalog.type=hive
```
Create table script failed:
```
scala> df.
| write.
| format("iceberg").
| mode("overwrite").
| save("default.iceberg_test")
org.apache.iceberg.exceptions.NoSuchTableException: Table does not exist:
default.iceberg_test
at
org.apache.iceberg.BaseMetastoreCatalog.loadTable(BaseMetastoreCatalog.java:141)
at
org.apache.iceberg.spark.source.IcebergSource.findTable(IcebergSource.java:142)
at
org.apache.iceberg.spark.source.IcebergSource.getTableAndResolveHadoopConfiguration(IcebergSource.java:171)
at
org.apache.iceberg.spark.source.IcebergSource.createWriter(IcebergSource.java:95)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:254)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:228)
... 53 elided
```
On [iceberg document
website](https://iceberg.apache.org/spark/#writing-with-dataframes), there's
appending and overwriting data with Spark 2.4 DataFrame, but there's no
creating table with Spark 2.4 DataFrame.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]