在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?)
答案 0 :(得分:0)
对于Elasticsearch索引,您应该使用小写字母。 使用[custact_index / custact_index_type]代替[custAct_index / custAct_index_type]。