JCS for Elasticsearch

Products

JCS for Elasticsearch

Access Cluster

JCS for Elasticsearch supports access to clusters via Kibana, JD Cloud Virtual Machines or Client Method.

Access by kibana

  1. Log in JCS for Elasticsearch Console, Create JCS for Elasticsearch Cluster
  2. Click Operation-kibana to enter the kibana visual interface, and enter Developer Tools through [Dev Tools] in the navigation bar, Access JCS for Elasticsearch Cluster.

Access via JD Cloud Virtual Machines

  1. Log in JCS for Elasticsearch Console, Create JCS for Elasticsearch Cluster, and click the cluster name to enter the Details to obtain Intranet Access Domain Name.
  2. Log in Virtual Machine Console to create a Virtual Machine having the same VPC and Subnet with JCS for Elasticsearch Cluster and Obtain EIP.
  3. Log in Virtual Machines locally via SSH to access the port 9200 of JCS for Elasticsearch instance through the curl command. Instruction descriptions are as follows:
ssh user name @ EIP

curl -XGET Intranet Domain Name/_cat

The responses below indicate successful access:
{
  =^.^=
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/tasks
/_cat/indices
/_cat/indices/{index}
/_cat/segments
/_cat/segments/{index}
/_cat/count
/_cat/count/{index}
/_cat/recovery
/_cat/recovery/{index}
}

Access by Client

JCS for Elasticsearch is fully compatible with native Elasticsearch, and supports all native API. Users can access Elasticsearch by using native client library, or some community-packaged library, such as spring-data-elasticsearch.

  1. Log in JCS for Elasticsearch Console, Create JCS for Elasticsearch Cluster, and click the cluster name to enter the Details to obtain Intranet Access Domain Name.

  2. Initialize Client Code.

   RestHighLevelClient client = new RestHighLevelClient(
        RestClient.builder(new HttpHost("es-nlb-es-gukc9h9e0g.jvessel-open-hb.jdcloud.com", 9200, "http")).build());  
   RestHighLevelClient client = new RestHighLevelClient(
        RestClient.builder(
                new HttpHost("es-nlb-es-gukc9h9e0g.jvessel-open-hb.jdcloud.com", 9200, "http")));
Update Time:2019-11-25 22:49:36