1.解压解压安装包并将解压后的目录移动到/usr/local/elasticsearch目录下。 tar-zxvfelasticsearch-7.5.1.tgzmvelasticsearch-7.5.1/usr/local/elasticsearchcd 2.配置(1).elasticsearch的核心配置 network.host:172.24.6.215http.port:9200discovery.seed_hosts:["172.24.6.215"]cluster.initial_master_nodes:["172.24.6.215:9300"] netw...

1.代码示例 publicclassPartitionSampleimplementsPartitioner{@Overridepublicintpartition(Stringtopic,Objectkey,byte[]keyBytes,Objectvalue,byte[]valueBytes,Clustercluster){//key-1,key-2StringkeyStr=key+"";StringkeyInt=keyStr.substring(4);System.out.println("keyStr:"+keyStr+"keyInt:"+keyInt);inti=Intege...

关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~