在火花传播过程中无法将数据框保存到Elasticsearch

时间:2017-10-10 10:59:23

标签: apache-spark elasticsearch apache-spark-sql spark-dataframe spark-streaming

在Spark Stream处理和将数据框保存到Elastic Search时遇到以下错误:

org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Cannot determine write shards for [custAct_index/custAct_index_type]; 
    likely its format is incorrect (maybe it contains illegal characters?)

1 个答案:

答案 0 :(得分:0)

对于Elasticsearch索引,您应该使用小写字母。 使用[custact_index / custact_index_type]代替[custAct_index / custAct_index_type]。

相关问题