Skip to content
Snippets Groups Projects
Commit e18e59b1 authored by MIchael Nguyen's avatar MIchael Nguyen
Browse files

indexer running not connecting to es.

parent 88859745
No related branches found
No related tags found
1 merge request!6Trusted ibm
package org.opengroup.osdu.indexer.aws.service;
import org.opengroup.osdu.is.core.model.ClusterSettings;
import org.opengroup.osdu.is.core.service.ElasticSettingService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
@Primary
@Component
public class AwsElasticSettingServiceImpl implements ElasticSettingService {
@Value("${aws.es.host}")
String host;
int port = 443;
String userNameAndPassword = "https";
@Override
public ClusterSettings getElasticClusterInformation() {
return new ClusterSettings(host, port, userNameAndPassword);
}
}
\ No newline at end of file
//package org.opengroup.osdu.indexer.aws.service;
//
//import org.opengroup.osdu.is.core.model.ClusterSettings;
//import org.opengroup.osdu.is.core.service.ElasticSettingService;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Component;
//
//@Component
//public class ElasticSettingServiceImpl implements ElasticSettingService {
//
// @Value("${aws.es.host}")
// String host;
//
// int port = 8080;
//
// String userNameAndPassword = "testing";
// @Override
// public ClusterSettings getElasticClusterInformation() {
//
// return new ClusterSettings(host, port, userNameAndPassword);
// }
//}
......@@ -18,8 +18,8 @@ spring.security.user.password=123
spring.security.user.roles=service.storage.admin
## AWS ES configuration
aws.es.host=https://search-osdu-indexer-tester-6xsyzsnwyopgjwwnzkgejg2pe4.us-east-1.es.amazonaws.com
aws.es.port=8080
aws.es.host=https://search-osdu-indexer-nj62ktooaiug2mjqzguzx5utr4.us-east-1.es.amazonaws.com
aws.es.port=443
GAE_SERVICE=indexer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment