[
https://issues.apache.org/jira/browse/CONNECTORS-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17188934#comment-17188934
]
Michael Cizmar commented on CONNECTORS-1651:
--------------------------------------------
I do not particularly like how Elastic is running in the background here but
the machine learning component is not required for anything that we are doing
and can be turned off by doing the following:
{code:java}
if (isUnix) {
pb.command("bash", "-c",
"../test-materials/unix/elasticsearch-7.6.2/bin/elasticsearch -q
-Expack.ml.enabled=false");
System.out.println("Unix process");
} else {
pb.command("cmd.exe", "/c",
"..\\test-materials\\windows\\elasticsearch-7.6.2\\bin\\elasticsearch.bat -q
-Expack.ml.enabled=false");
System.out.println("Windows process");
}
{code}
or by copying a Elasticsearch.yml file into the conf directory with that line.
Either option should turn off machine learning for xpack.
> ElasticSearch server is not starting during integration test
> ------------------------------------------------------------
>
> Key: CONNECTORS-1651
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1651
> Project: ManifoldCF
> Issue Type: Bug
> Components: Elastic Search connector
> Reporter: Piergiorgio Lucidi
> Assignee: Piergiorgio Lucidi
> Priority: Major
>
> Trying to run the test suite on my Mac (with JDK 1.8 but also with JDK 11),
> ElasticSearch server is not starting properly:
> {noformat}
> [INFO] ---------< org.apache.manifoldcf:mcf-elasticsearch-connector
> >----------
> [INFO] Building ManifoldCF - Connectors - ElasticSearch 2.17
> [39/64]
> [INFO] --------------------------------[ jar
> ]---------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
> mcf-elasticsearch-connector ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> mcf-elasticsearch-connector ---
> [INFO]
> [INFO] --- maven-dependency-plugin:2.8:copy (copy-war) @
> mcf-elasticsearch-connector ---
> [INFO] Configured Artifact: org.apache.manifoldcf:mcf-api-service:2.17:war
> [INFO] Configured Artifact:
> org.apache.manifoldcf:mcf-authority-service:2.17:war
> [INFO] Configured Artifact: org.apache.manifoldcf:mcf-crawler-ui:2.17:war
> [INFO] Copying mcf-api-service-2.17.war to
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/dependency/mcf-api-service.war
> [INFO] Copying mcf-authority-service-2.17.war to
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/dependency/mcf-authority-service.war
> [INFO] Copying mcf-crawler-ui-2.17.war to
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/dependency/mcf-crawler-ui.war
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
> mcf-elasticsearch-connector ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 5 resources
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> mcf-elasticsearch-connector ---
> [INFO] Compiling 8 source files to
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/classes
> [INFO]
> [INFO] --- native2ascii-maven-plugin:1.0-beta-1:native2ascii
> (native2ascii-utf8) @ mcf-elasticsearch-connector ---
> [INFO] Includes: [**/*.properties]
> [INFO] Excludes: []
> [INFO] Processing
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/classes/org/apache/manifoldcf/agents/output/elasticsearch/common_en_US.properties
> [INFO] Processing
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/classes/org/apache/manifoldcf/agents/output/elasticsearch/common_ja_JP.properties
> [INFO] Processing
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/classes/org/apache/manifoldcf/agents/output/elasticsearch/common_zh_CN.properties
> [INFO] Processing
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/classes/org/apache/manifoldcf/agents/output/elasticsearch/common_fr_FR.properties
> [INFO] Processing
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/classes/org/apache/manifoldcf/agents/output/elasticsearch/common_es_ES.properties
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @
> mcf-elasticsearch-connector ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/connector/src/test/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> mcf-elasticsearch-connector ---
> [INFO] Compiling 6 source files to
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.17:test (default-test) @
> mcf-elasticsearch-connector ---
> [INFO]
> [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @
> mcf-elasticsearch-connector ---
> [INFO] Building jar:
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/mcf-elasticsearch-connector-2.17.jar
> [INFO]
> [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @
> mcf-elasticsearch-connector ---
> [INFO]
> [INFO] >>> maven-source-plugin:2.4:jar (attach-sources) > generate-sources @
> mcf-elasticsearch-connector >>>
> [INFO]
> [INFO] <<< maven-source-plugin:2.4:jar (attach-sources) < generate-sources @
> mcf-elasticsearch-connector <<<
> [INFO]
> [INFO]
> [INFO] --- maven-source-plugin:2.4:jar (attach-sources) @
> mcf-elasticsearch-connector ---
> [INFO] Building jar:
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/mcf-elasticsearch-connector-2.17-sources.jar
> [INFO]
> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (integration-test) @
> mcf-elasticsearch-connector ---
> [INFO] Failsafe report directory:
> /Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/failsafe-reports
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running
> org.apache.manifoldcf.agents.output.elasticsearch.tests.APISanityHSQLDBIT
> Configuration file successfully read
> [main] INFO org.eclipse.jetty.util.log - Logging initialized @6244ms
> [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.3.v20140905
> [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started
> o.e.j.w.WebAppContext@68746f22{/mcf-crawler-ui,file:/private/var/folders/dq/ws51_rdd2_7bb5fz193yf6ww0000gn/T/jetty-0.0.0.0-8346-mcf-crawler-ui.war-_mcf-crawler-ui-any-159154925795368875.dir/webapp/,AVAILABLE}{../dependency/mcf-crawler-ui.war}
> [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started
> o.e.j.w.WebAppContext@2f01783a{/mcf-authority-service,file:/private/var/folders/dq/ws51_rdd2_7bb5fz193yf6ww0000gn/T/jetty-0.0.0.0-8346-mcf-authority-service.war-_mcf-authority-service-any-3008687721846728890.dir/webapp/,AVAILABLE}{../dependency/mcf-authority-service.war}
> [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started
> o.e.j.w.WebAppContext@68878f6d{/mcf-api-service,file:/private/var/folders/dq/ws51_rdd2_7bb5fz193yf6ww0000gn/T/jetty-0.0.0.0-8346-mcf-api-service.war-_mcf-api-service-any-2775887620010876436.dir/webapp/,AVAILABLE}{../dependency/mcf-api-service.war}
> [main] INFO org.eclipse.jetty.server.ServerConnector - Started
> ServerConnector@7b205dbd{HTTP/1.1}{0.0.0.0:8346}
> [main] INFO org.eclipse.jetty.server.Server - Started @7933ms
> ES working directory is
> '/Users/piergiorgiolucidi/Downloads/apache-manifoldcf-2.17/connectors/elasticsearch/target/test-output/.'
> Unix process
> ElasticSearch is starting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...
> Didn't reach ES; waiting...{noformat}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)