Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想根据我的 spark 转换在 Elasticsearch 中创建一个索引。我想知道使用 elasticsearch-spark 库的最佳方法是什么?亲切的问候
写入弹性搜索时,如果不存在,它将创建一个索引
df.write .format("org.elasticsearch.spark.sql") .option("es.nodes.wan.only","true") .option("es.port","443") .option("es.nodes", esURL) .mode("Overwrite") .save("index/dogs")