diff --git a/duniter4j-elasticsearch/pom.xml b/duniter4j-elasticsearch/pom.xml index 8073567aa8025604d6641c8c992fe14782b83c3e..c6591943e15e1dce3ba7a7b18f9c860d02363ae4 100644 --- a/duniter4j-elasticsearch/pom.xml +++ b/duniter4j-elasticsearch/pom.xml @@ -33,6 +33,8 @@ <exec.classpathScope>provided</exec.classpathScope> <duniter4j-elasticsearch.config>${project.basedir}/src/test/resources/duniter4j-elasticsearch-test.properties</duniter4j-elasticsearch.config> + + <cesium.download.url>https://github.com/duniter/cesium/releases/download/${cesium.version}/cesium-web-${cesium.version}.zip</cesium.download.url> </properties> <dependencies> @@ -338,13 +340,15 @@ <executions> <execution> <id>copy-dependencies</id> - <phase>initialize</phase> + <phase>prepare-package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/es-home/plugins/${project.artifactId}</outputDirectory> <excludeArtifactIds>jna,jackson-core,log4j,elasticsearch</excludeArtifactIds> + <overWriteSnapshots>true</overWriteSnapshots> + <silent>true</silent> </configuration> </execution> </executions> @@ -368,26 +372,39 @@ </dependencies> <executions> <execution> - <id>download-attachment-mapper-plugin</id> + <id>unpack-elasticsearch-binaries</id> <phase>initialize</phase> <goals> <goal>run</goal> </goals> <configuration> <target> - <copy todir="${project.build.directory}/es-home"> + <copy todir="${es.home}"> <fileset dir="${project.build.directory}/elasticsearch-${elasticsearch.version}"> </fileset> </copy> <chmod perm="u+x"> - <fileset dir="${project.build.directory}/es-home/bin"> + <fileset dir="${es.home}/bin"> <include name="elasticsearch"/> </fileset> </chmod> - <copy todir="${project.build.directory}/es-home/config" overwrite="true"> + <copy todir="${es.home}/config" + overwrite="true" + filtering="true"> <fileset dir="${basedir}/src/main/assembly/config"> </fileset> </copy> + </target> + </configuration> + </execution> + <execution> + <id>download-attachment-mapper-plugin</id> + <phase>initialize</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> <!-- download attachment plugin --> <get src="https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/mapper-attachments/${elasticsearch.version}/mapper-attachments-${elasticsearch.version}.zip" @@ -395,20 +412,54 @@ verbose="false" usetimestamp="true"/> <unzip src="${project.build.directory}/mapper-attachments-${elasticsearch.version}.zip" - dest="${project.build.directory}/es-home/plugins/mapper-attachments" + dest="${es.home}/plugins/mapper-attachments" overwrite="true"> </unzip> - <copy todir="${project.build.directory}/es-home/plugins/${project.artifactId}"> - <fileset dir="${project.build.directory}/classes"> + </target> + </configuration> + </execution> + <execution> + <id>download-cesium</id> + <phase>initialize</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + + <!-- download cesium > + <get src="${cesium.download.url}" + dest="${project.build.directory}/cesium-web-${cesium.version}.zip" + verbose="false" + usetimestamp="true"/> + <unzip src="${project.build.directory}/cesium-web-${cesium.version}.zip" + dest="${duniter4j.plugin.directory}/_site" + overwrite="true"> + </unzip--> + </target> + </configuration> + </execution> + <execution> + <id>install-duniter-plugin</id> + <phase>prepare-package</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <!-- Copy descriptor file and security files --> + <copy todir="${duniter4j.plugin.directory}" + filtering="true"> + <fileset dir="${basedir}/src/main/filtered-resources"> <include name="plugin-descriptor.properties"/> <include name="plugin-security.policy"/> </fileset> </copy> - <!-- remove redundant lib in duniter plugin --> + <!-- Remove redundant lib in duniter plugin --> <ac:for param="file" xmlns:ac="antlib:net.sf.antcontrib"> <path> - <fileset dir="${project.build.directory}/es-home/plugins/${project.artifactId}"> + <fileset dir="${duniter4j.plugin.directory}"> <include name="**/*.jar"/> </fileset> </path> @@ -416,20 +467,20 @@ <local name="filename" /> <basename property="filename" file="@{file}"/> <ac:if> - <available file="${project.build.directory}/es-home/lib/${filename}"/> + <available file="${es.home}/lib/${filename}"/> <then> <!--echo message="Remove lib from plugin: ${filename}"/--> - <delete file="${project.build.directory}/es-home/plugins/${project.artifactId}/${filename}"/> + <delete file="${duniter4j.plugin.directory}/${filename}"/> </then> </ac:if> </sequential> </ac:for> <delete> - <fileset dir="${project.build.directory}/es-home/plugins/${project.artifactId}"> + <fileset dir="${duniter4j.plugin.directory}"> <include name="guava-*.jar"/> </fileset> </delete> - <copy todir="${project.build.directory}/es-home/plugins/${project.artifactId}"> + <copy todir="${duniter4j.plugin.directory}"> <fileset dir="${project.build.directory}"> <include name="${project.artifactId}-${project.version}.${project.packaging}"/> </fileset> @@ -450,10 +501,10 @@ <goals> <goal>exec</goal> </goals> - <phase>compile</phase> + <phase>package</phase> <configuration> - <executable>${project.build.directory}/es-home/bin/elasticsearch</executable> - <workingDirectory>${basedir}/src/test/es-home</workingDirectory> + <executable>${es.home}/bin/elasticsearch</executable> + <workingDirectory>${es.home}</workingDirectory> </configuration> </execution> </executions> @@ -466,12 +517,10 @@ <exec.classpathScope>runtime</exec.classpathScope> <duniter4j.log.file>${project.build.directory}/exec.log</duniter4j.log.file> - <duniter4j.basedir>${project.build.directory}</duniter4j.basedir> - <duniter4j.plugins.directory>${basedir}}/src/test/es-home/plugins</duniter4j.plugins.directory> + <es.home>${project.build.directory}/es-home</es.home> + <duniter4j.basedir>${es.home}</duniter4j.basedir> + <duniter4j.plugin.directory>${es.home}/plugins/${project.artifactId}</duniter4j.plugin.directory> <es.http.cors.allow-origin>*</es.http.cors.allow-origin> - <!--exec.args> - start index - -host metab.ucoin.fr - -port 9201 - </exec.args--> </properties> </profile> </profiles> diff --git a/duniter4j-elasticsearch/src/main/assembly/config/elasticsearch.yml b/duniter4j-elasticsearch/src/main/assembly/config/elasticsearch.yml index c799994ae98bc358eac840c0a87c112104bfedfa..4d083386cd3f71079ca7bcd2dca5f959ede8d13b 100644 --- a/duniter4j-elasticsearch/src/main/assembly/config/elasticsearch.yml +++ b/duniter4j-elasticsearch/src/main/assembly/config/elasticsearch.yml @@ -69,6 +69,7 @@ http.cors.enabled: false # The default list of hosts is ["127.0.0.1", "[::1]"] # # discovery.zen.ping.unicast.hosts: ["host1", "host2"] +#discovery.zen.ping.unicast.hosts: ["127.0.0.1", ""] # # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1): # diff --git a/duniter4j-elasticsearch/src/main/assembly/config/logging.yml b/duniter4j-elasticsearch/src/main/assembly/config/logging.yml index 4c6f8785375224fe263fba4570714ebce0e3388e..e183340c58f87b9e2ea41ba958730b194a2b38c0 100644 --- a/duniter4j-elasticsearch/src/main/assembly/config/logging.yml +++ b/duniter4j-elasticsearch/src/main/assembly/config/logging.yml @@ -16,7 +16,7 @@ logger: org.apache.http: INFO - org.duniter: TRACE + org.duniter: INFO # gateway #gateway: DEBUG diff --git a/duniter4j-elasticsearch/src/main/assembly/min/ucoinj-elasticsearch.bat b/duniter4j-elasticsearch/src/main/assembly/min/ucoinj-elasticsearch.bat deleted file mode 100644 index 8ecbcc427200525463e85af5427b74f2c3d976f7..0000000000000000000000000000000000000000 --- a/duniter4j-elasticsearch/src/main/assembly/min/ucoinj-elasticsearch.bat +++ /dev/null @@ -1,47 +0,0 @@ -@echo off - -REM Comment out this line to specify your JAVA path: -REM SET JAVA_HOME=<path_to_java> - - -set OLDDIR=%CD% -cd /d %~dp0% - -set APP_BASEDIR=%CD% -set JAVA_COMMAND=%JAVA_HOME%\bin\java -set APP_LOG_FILE=%APP_BASEDIR%\data\${project.artifactId}-${project.version}.log -set JAVA_OPTS=-Xmx1G -set APP_CONF_FILE=%APP_BASEDIR%\duniter4j.config - -if not exist "%JAVA_HOME%" goto no_java - -echo =============================================================================== -echo . -echo ${project.name} -echo . -echo JAVA: %JAVA_COMMAND% -echo . -echo JAVA_OPTS: %JAVA_OPTS% -echo . -echo log file: %APP_LOG_FILE% -echo . -echo =============================================================================== -echo . - - -set OLDDIR=%CD% -cd /d %~dp0% - -call "%JAVA_COMMAND%" %JAVA_OPTS% "-Dduniter4j.log.file=%APP_LOG_FILE%" ""-Dduniter4j-elasticsearch.config=%APP_CONF_FILE%" -Djna.nosys=true -jar ${project.build.finalName}.${project.packaging} %1 %2 %3 %4 %5 %6 %7 %8 %9 -set exitcode=%ERRORLEVEL% -echo Stop with exitcode: %exitcode% -cd %OLDDIR% -exit /b %exitcode% -goto end - -no_java: -echo "Java not detected ! Please set environment variable JAVA_HOME before launching," -echo "or edit the file 'launch.bat' and insert this line :" -echo " SET JAVA_HOME=<path_to_java>" - -:end diff --git a/duniter4j-elasticsearch/src/main/assembly/min/ucoinj-elasticsearch.sh b/duniter4j-elasticsearch/src/main/assembly/min/ucoinj-elasticsearch.sh deleted file mode 100644 index e220bf1fb6dc7c85a7ea0e83d95244fa56bad0ed..0000000000000000000000000000000000000000 --- a/duniter4j-elasticsearch/src/main/assembly/min/ucoinj-elasticsearch.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -REP=$(dirname $0) -cd $REP - -#Comment out this line to specify your JAVA path: -export JAVA_HOME=/usr/lib/jvm/default-java - -export APP_BASEDIR=$REP -export JAVA_COMMAND=$JAVA_HOME/bin/java -export APP_LOG_FILE=$APP_BASEDIR/logs/${project.artifactId}-${project.version}.log -export APP_CONF_FILE=$APP_BASEDIR/duniter4j.config - -cd $APP_BASEDIR - -if [ -d $JAVA_HOME ]; then - echo "${project.name}" - echo " basedir: $APP_BASEDIR" - echo " jre home: $JAVA_HOME" - echo " log file: $APP_LOG_FILE" - - MEMORY="-Xmx1G" - #APP_JVM_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000" - - echo "launch java" - echo "java command: $JAVA_COMMAND" - - $JAVA_COMMAND $MEMORY $APP_JVM_OPTS -Dduniter4j.log.file=$APP_LOG_FILE -Dduniter4j-elasticsearch.config=$APP_CONF_FILE -Djna.nosys=true -jar ${project.build.finalName}.${project.packaging} $* - exitcode=$? - echo "Stop ${project.name} with exitcode: $exitcode" - exit $exitcode - -else - echo "Java not detected ! Please set environment variable JAVA_HOME before launching," - echo "or edit the file 'launch.sh' and insert this line :" - echo " export JAVA_HOME=<path_to_java>" -fi - diff --git a/duniter4j-elasticsearch/src/main/assembly/min/ucoinj.config b/duniter4j-elasticsearch/src/main/assembly/min/ucoinj.config deleted file mode 100644 index 5423a51bcac3f39148cd7efd1b1bab3c26c9e2af..0000000000000000000000000000000000000000 --- a/duniter4j-elasticsearch/src/main/assembly/min/ucoinj.config +++ /dev/null @@ -1,45 +0,0 @@ -#Basic config - -# ---------------------------------------------------------- -# Node to use for blockchain indexation. Must have a BMA API -# ---------------------------------------------------------- - -# Node host -# Could be override using option : '-h <host>' -#duniter4j.node.host=metab.ucoin.io - -# Node port -# Could be override using option : '-p <port>' -#duniter4j.node.port=9201 - -# ---------------------------------------------------------- -# ES Node -# ---------------------------------------------------------- - -# ES Cluster name -# By default: 'duniter4j-elacticsearch' -# See ES config 'cluster.name' -#duniter4j.elasticsearch.cluster.name=duniter4j-elacticsearch - -# Should start a embedded ES node -# By default: false -#duniter4j.elasticsearch.embedded.enable=true - -# If not embedded: ES Node Host -# Could be override using option : '-esh <host>' -#duniter4j.elasticsearch.host=192.168.0.5 - -# If not embedded: ES Node Port -# Could be override using option : '-esp <port>' -#duniter4j.elasticsearch.port=9300 - -# If embedded: Only for a local use (do not connect to other nodes on cluster) -# By default: false -# See ES config 'local' -#duniter4j.elasticsearch.local=true - -# If embedded: Open a port for HTTP access -# By default: true -# See ES config 'http.enable' -#duniter4j.elasticsearch.http.enable=false - diff --git a/duniter4j-elasticsearch/src/main/filtered-resources/plugin-descriptor.properties b/duniter4j-elasticsearch/src/main/filtered-resources/plugin-descriptor.properties index 1ab4c6e915c42745c50d8b5ebb85818f1405a600..b801687df187a978d2dcac9b1860ab2c6817736a 100644 --- a/duniter4j-elasticsearch/src/main/filtered-resources/plugin-descriptor.properties +++ b/duniter4j-elasticsearch/src/main/filtered-resources/plugin-descriptor.properties @@ -1,7 +1,7 @@ name=duniter4j-elasticsearch description=Plugin for Duniter node indexation version=${project.version} -site=false +site=true jvm=true classname=org.duniter.elasticsearch.Plugin java.version=1.7 diff --git a/duniter4j-elasticsearch/src/test/es-home/config/elasticsearch.yml b/duniter4j-elasticsearch/src/test/_es-home/config/elasticsearch.yml similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/config/elasticsearch.yml rename to duniter4j-elasticsearch/src/test/_es-home/config/elasticsearch.yml diff --git a/duniter4j-elasticsearch/src/test/es-home/config/logging.yml b/duniter4j-elasticsearch/src/test/_es-home/config/logging.yml similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/config/logging.yml rename to duniter4j-elasticsearch/src/test/_es-home/config/logging.yml diff --git a/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n-definition.properties b/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n-definition.properties new file mode 100644 index 0000000000000000000000000000000000000000..56b3dbc835f6d120b0b78ff4ff88d6d1669c019a --- /dev/null +++ b/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n-definition.properties @@ -0,0 +1,7 @@ +#Generated by org.nuiton.i18n.init.UserI18nInitializer +#Mon Aug 01 16:23:47 CEST 2016 +locales=fr_FR,en_GB +bundles.en_GB=i18n/nuiton-utils_en_GB.properties,i18n/duniter4j-core-client_en_GB.properties,i18n/duniter4j-elasticsearch_en_GB.properties,i18n/ucoinj-elasticsearch_en_GB.properties +version=0.1 +encoding=UTF-8 +bundles.fr_FR=i18n/nuiton-utils_fr_FR.properties,i18n/duniter4j-core-client_fr_FR.properties,i18n/duniter4j-elasticsearch_fr_FR.properties,i18n/ucoinj-elasticsearch_fr_FR.properties diff --git a/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n_en_GB.properties b/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n_en_GB.properties new file mode 100644 index 0000000000000000000000000000000000000000..6e52a3fbced20134fc5adc2f28eeaa966fd01746 --- /dev/null +++ b/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n_en_GB.properties @@ -0,0 +1,106 @@ +#Mon Aug 01 16:23:45 CEST 2016 +duniter4j-elasticsearch.config= +duniter4j.blockIndexerService.indexBlock=[%s] [%s] Indexing block \#%s +duniter4j.blockIndexerService.indexLastBlocks.otherPeers.task=Indexing missing blocks of [%s] from other peers +duniter4j.blockIndexerService.indexLastBlocks.progress=[%s] [%s] Indexing block \#%s / %s (%s%%)... +duniter4j.blockIndexerService.indexLastBlocks.stopped=[%s] [%s] Indexing last block - stopped +duniter4j.blockIndexerService.indexLastBlocks.task=Indexing last blocks of [%s] from peer [%s\:%s]... +duniter4j.config= +duniter4j.config.option.basedir.description= +duniter4j.config.option.cache.directory.description= +duniter4j.config.option.data.directory.description= +duniter4j.config.option.elasticsearch.bulk.enable.description= +duniter4j.config.option.elasticsearch.bulk.size.description= +duniter4j.config.option.elasticsearch.cluster.name.description= +duniter4j.config.option.elasticsearch.embedded.enable.description= +duniter4j.config.option.elasticsearch.host.description= +duniter4j.config.option.elasticsearch.local.description= +duniter4j.config.option.elasticsearch.network.host.description= +duniter4j.config.option.elasticsearch.string.analyze.description= +duniter4j.config.option.i18n.directory.description= +duniter4j.config.option.i18n.locale.description= +duniter4j.config.option.inceptionYear.description= +duniter4j.config.option.index.parallel_processing.description= +duniter4j.config.option.launch.mode.description= +duniter4j.config.option.network.timeout.description= +duniter4j.config.option.node.currency.description= +duniter4j.config.option.node.elasticsearch.cluster.name.description= +duniter4j.config.option.node.elasticsearch.clusterName.description= +duniter4j.config.option.node.elasticsearch.daemon.description= +duniter4j.config.option.node.elasticsearch.embeddeb.description= +duniter4j.config.option.node.elasticsearch.embeddeb.http.description= +duniter4j.config.option.node.elasticsearch.embeddeb.local.description= +duniter4j.config.option.node.elasticsearch.embedded.enable.description= +duniter4j.config.option.node.elasticsearch.embedded.http.enable.description= +duniter4j.config.option.node.elasticsearch.embedded.local.description= +duniter4j.config.option.node.elasticsearch.host.description= +duniter4j.config.option.node.elasticsearch.http.enable.description= +duniter4j.config.option.node.elasticsearch.local.clusterName.description= +duniter4j.config.option.node.elasticsearch.local.description= +duniter4j.config.option.node.elasticsearch.port.description= +duniter4j.config.option.node.elasticsearch.protocol.description= +duniter4j.config.option.node.elasticsearch.rest.host.description= +duniter4j.config.option.node.elasticsearch.rest.port.description= +duniter4j.config.option.node.elasticsearch.rest.protocol.description= +duniter4j.config.option.node.elasticsearch.rest.url.description= +duniter4j.config.option.node.elasticsearch.url.description= +duniter4j.config.option.node.host.description= +duniter4j.config.option.node.port.description= +duniter4j.config.option.node.protocol.description= +duniter4j.config.option.organizationName.description= +duniter4j.config.option.passwd.description= +duniter4j.config.option.plugins.directory.description= +duniter4j.config.option.salt.description= +duniter4j.config.option.site.url.description= +duniter4j.config.option.taskExecutor.queueCapacity.description= +duniter4j.config.option.tasks.queueCapacity.description= +duniter4j.config.option.temp.directory.description= +duniter4j.config.option.tmp.directory.description= +duniter4j.config.option.version.description= +duniter4j.config.parse.error= +duniter4j.executor.task.waitingExecution= +duniter4j.job.stopped= +duniter4j.job.stopping= +duniter4j.job.success= +duniter4j.task.issuer.system=System +duniter4j.task.starting=Starting task... +nuitonutil.config.moving.conf=Moving old configuration file from %s to %s +nuitonutil.debug.objectutil.create=Try to create %s with %s +nuitonutil.debug.objectutil.instantiate=Can't instantiate %s with params %s +nuitonutil.debug.objectutil.invoke=Invoke %s with %s +nuitonutil.error.add.url.in.classloader=Can't add url in classloader %1$s for reason %2$s +nuitonutil.error.applicationconfig.save=Can't save config in file %s +nuitonutil.error.cant.instanciate.class=Class %s can't be instanciated with %s +nuitonutil.error.class.with.more.than.one.constructor=Your class %s has more than one constructor +nuitonutil.error.convert.file.to.url=Can't convert %s for reason %s +nuitonutil.error.convertor.noValue=No value specified for converter %s +nuitonutil.error.could.not.addPCL=Could not add the PropertychangeListener %1$s on object %2$s for following reason \: %3$s +nuitonutil.error.could.not.find.MD5=Could not find MD5 algorithm +nuitonutil.error.could.not.removePCL=Could remove the PropertychangeListener %1$s from object %2$s for following reason \: %3$s +nuitonutil.error.get.url.from.zip=Error while reading %s \: %s +nuitonutil.error.no.convertor=no convertor found for type %2$s and objet '%1$s' +nuitonutil.error.not.an.enum=The type %1$s ins not an Enum type +nuitonutil.error.null.parameter=The parameter %1$s is null\! +nuitonutil.error.resource.not.found=Can't find resource \: %s +nuitonutil.error.unfound.assignable.argument=Can't find assignable argument for %s in %s +nuitonutil.error.unfound.month=could not found month from '%s', use default month '%s' +nuitonutil.error.unknown.url.type=could not treate unknown type of url %1$s +nuitonutil.error.url.convertor=a problem occurs while converting value '%s' with url convertor %s for reason %s +nuitonutil.error.version.convertor=Could not convert version %1$s with converter %2$s for reason \: %3$s +nuitonutil.error.version.pattern=Pattern of version not found for %1$s +nuitonutil.fileCompletion.cancel=.. to cancel or return to parent directory +nuitonutil.fileCompletion.enter=Enter to display file list, or to complete path +nuitonutil.fileCompletion.exit=Enter "\!q" to exit +nuitonutil.fileCompletion.save=Enter "\!s" in the end of the file name to save +nuitonutil.month.april=april +nuitonutil.month.august=august +nuitonutil.month.december=december +nuitonutil.month.february=february +nuitonutil.month.january=january +nuitonutil.month.july=july +nuitonutil.month.june=june +nuitonutil.month.march=march +nuitonutil.month.may=may +nuitonutil.month.november=november +nuitonutil.month.october=october +nuitonutil.month.september=september diff --git a/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n_fr_FR.properties b/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n_fr_FR.properties new file mode 100644 index 0000000000000000000000000000000000000000..bb91005c5e41e3069970fd58c6f19eca420bb11c --- /dev/null +++ b/duniter4j-elasticsearch/src/test/_es-home/data/i18n/duniter4j-elasticsearch-i18n_fr_FR.properties @@ -0,0 +1,106 @@ +#Mon Aug 01 16:23:45 CEST 2016 +duniter4j-elasticsearch.config= +duniter4j.blockIndexerService.indexBlock=[%s] [%s] Indexing block \#%s +duniter4j.blockIndexerService.indexLastBlocks.otherPeers.task=Indexing missing blocks of [%s] from other peers +duniter4j.blockIndexerService.indexLastBlocks.progress=[%s] [%s] Indexing block \#%s / %s (%s%%)... +duniter4j.blockIndexerService.indexLastBlocks.stopped=[%s] [%s] Indexing last block - stopped +duniter4j.blockIndexerService.indexLastBlocks.task=Indexing last blocks of [%s] from peer [%s\:%s]... +duniter4j.config= +duniter4j.config.option.basedir.description= +duniter4j.config.option.cache.directory.description= +duniter4j.config.option.data.directory.description= +duniter4j.config.option.elasticsearch.bulk.enable.description= +duniter4j.config.option.elasticsearch.bulk.size.description= +duniter4j.config.option.elasticsearch.cluster.name.description= +duniter4j.config.option.elasticsearch.embedded.enable.description= +duniter4j.config.option.elasticsearch.host.description= +duniter4j.config.option.elasticsearch.local.description= +duniter4j.config.option.elasticsearch.network.host.description= +duniter4j.config.option.elasticsearch.string.analyze.description= +duniter4j.config.option.i18n.directory.description= +duniter4j.config.option.i18n.locale.description= +duniter4j.config.option.inceptionYear.description= +duniter4j.config.option.index.parallel_processing.description= +duniter4j.config.option.launch.mode.description= +duniter4j.config.option.network.timeout.description= +duniter4j.config.option.node.currency.description= +duniter4j.config.option.node.elasticsearch.cluster.name.description= +duniter4j.config.option.node.elasticsearch.clusterName.description= +duniter4j.config.option.node.elasticsearch.daemon.description= +duniter4j.config.option.node.elasticsearch.embeddeb.description= +duniter4j.config.option.node.elasticsearch.embeddeb.http.description= +duniter4j.config.option.node.elasticsearch.embeddeb.local.description= +duniter4j.config.option.node.elasticsearch.embedded.enable.description= +duniter4j.config.option.node.elasticsearch.embedded.http.enable.description= +duniter4j.config.option.node.elasticsearch.embedded.local.description= +duniter4j.config.option.node.elasticsearch.host.description= +duniter4j.config.option.node.elasticsearch.http.enable.description= +duniter4j.config.option.node.elasticsearch.local.clusterName.description= +duniter4j.config.option.node.elasticsearch.local.description= +duniter4j.config.option.node.elasticsearch.port.description= +duniter4j.config.option.node.elasticsearch.protocol.description= +duniter4j.config.option.node.elasticsearch.rest.host.description= +duniter4j.config.option.node.elasticsearch.rest.port.description= +duniter4j.config.option.node.elasticsearch.rest.protocol.description= +duniter4j.config.option.node.elasticsearch.rest.url.description= +duniter4j.config.option.node.elasticsearch.url.description= +duniter4j.config.option.node.host.description= +duniter4j.config.option.node.port.description= +duniter4j.config.option.node.protocol.description= +duniter4j.config.option.organizationName.description= +duniter4j.config.option.passwd.description= +duniter4j.config.option.plugins.directory.description= +duniter4j.config.option.salt.description= +duniter4j.config.option.site.url.description= +duniter4j.config.option.taskExecutor.queueCapacity.description= +duniter4j.config.option.tasks.queueCapacity.description= +duniter4j.config.option.temp.directory.description= +duniter4j.config.option.tmp.directory.description= +duniter4j.config.option.version.description= +duniter4j.config.parse.error= +duniter4j.executor.task.waitingExecution= +duniter4j.job.stopped= +duniter4j.job.stopping= +duniter4j.job.success= +duniter4j.task.issuer.system=Système +duniter4j.task.starting=Démarrage du traitement... +nuitonutil.config.moving.conf=Déplacement du fichier de configuration depuis %s vers %s +nuitonutil.debug.objectutil.create=Essaye de créer %s avec %s +nuitonutil.debug.objectutil.instantiate=Ne peut pas instancier %s avec les paramêtres %s +nuitonutil.debug.objectutil.invoke=Invocation de %s avec %s +nuitonutil.error.add.url.in.classloader=Impossible d'ajouter une url dans le classloader %s pour la raison \: %s +nuitonutil.error.applicationconfig.save=Impossible de sauvegarder le fichier de configuration dans %s +nuitonutil.error.cant.instanciate.class=La Classe %s n'a pas pu être instanciée avec %s +nuitonutil.error.class.with.more.than.one.constructor=Votre classe %s a plus d'un constructeur +nuitonutil.error.convert.file.to.url=Le fichier '%1$s' n'a pas pu être converti en URL pour la raison suivante \: %2$S +nuitonutil.error.convertor.noValue=Aucune valeur à convertir pour le convertisseur %s +nuitonutil.error.could.not.addPCL=N'a pas pu ajouté le PropertychangeListener %1$s sur l'objet %2$s pour la raison suivante \: %3$s +nuitonutil.error.could.not.find.MD5=L'algorithme MD5 n'a pas été trouvé\! +nuitonutil.error.could.not.removePCL=N'a pas pu enlevé le PropertychangeListener %1$s sur l'objet %2$s pour la raison suivante \: %3$s +nuitonutil.error.get.url.from.zip=Erreur lors de la lecture du fichier compressé %1$s \: %2$s +nuitonutil.error.no.convertor=Aucun convertisseur trouvé pour le type %2$s et l''objet '%1$s' +nuitonutil.error.not.an.enum=Le type %1$s n'est pas une enumeration java +nuitonutil.error.null.parameter=Le paramètre '%1$s' est null\! +nuitonutil.error.resource.not.found=Impossible de trouver la ressource \: %s +nuitonutil.error.unfound.assignable.argument=N'a pas pu trouver un argument assignable pour %s dans %s +nuitonutil.error.unfound.month=n'a pas pu trouvé le mois à partir de '%s', utilise le mois par défaut '%s' +nuitonutil.error.unknown.url.type=could not treate unknown type of url %1$s +nuitonutil.error.url.convertor=Un problème est apparu lors de la convertion en url de '%s' avec le convertisseur %s pour la raison suivante \: %s +nuitonutil.error.version.convertor=N'a pas pu convertir la valeur %1$s avec le converter %2$s pour la raison suivante \: %3$s +nuitonutil.error.version.pattern=Pattern de version non connu pour %1$s +nuitonutil.fileCompletion.cancel=.. pour annuler ou pour revenir au repertoire précédent +nuitonutil.fileCompletion.enter=Entrer pour afficher la liste des fichiers, ou pour compléter le chemin +nuitonutil.fileCompletion.exit=Saisir "\!q" pour quitter +nuitonutil.fileCompletion.save=Saisir "\!s" a la fin du nom de fichier pour l'enregistrer +nuitonutil.month.april=avril +nuitonutil.month.august=août +nuitonutil.month.december=décembre +nuitonutil.month.february=février +nuitonutil.month.january=janvier +nuitonutil.month.july=juillet +nuitonutil.month.june=juin +nuitonutil.month.march=mars +nuitonutil.month.may=mai +nuitonutil.month.november=novembre +nuitonutil.month.october=octobre +nuitonutil.month.september=septembre diff --git a/duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch.log b/duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch.log new file mode 100644 index 0000000000000000000000000000000000000000..c68f3c1c2269b1ac01c249cf7d9639f508ae40b2 --- /dev/null +++ b/duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch.log @@ -0,0 +1,311 @@ +[2016-08-01 16:09:05,743][WARN ][bootstrap ] JNA not found. native methods will be disabled. +java.lang.ClassNotFoundException: com.sun.jna.Native + at java.net.URLClassLoader.findClass(URLClassLoader.java:381) + at java.lang.ClassLoader.loadClass(ClassLoader.java:424) + at java.lang.ClassLoader.loadClass(ClassLoader.java:357) + at java.lang.Class.forName0(Native Method) + at java.lang.Class.forName(Class.java:264) + at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) + at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:89) + at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144) + at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) + at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:294) + at java.lang.Thread.run(Thread.java:745) +[2016-08-01 16:09:05,745][WARN ][bootstrap ] cannot check if running as root because JNA is not available +[2016-08-01 16:09:05,745][WARN ][bootstrap ] cannot install syscall filters because JNA is not available +[2016-08-01 16:09:05,745][WARN ][bootstrap ] cannot register console handler because JNA is not available +[2016-08-01 16:09:05,799][INFO ][node ] [Steel Raven] version[2.3.3], pid[4186], build[218bdf1/2016-05-17T15:40:04Z] +[2016-08-01 16:09:05,799][INFO ][node ] [Steel Raven] initializing ... +[2016-08-01 16:09:05,908][INFO ][plugins ] [Steel Raven] modules [], plugins [duniter], sites [] +[2016-08-01 16:09:05,923][INFO ][env ] [Steel Raven] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [88.4gb], net total_space [101.7gb], spins? [no], types [ext4] +[2016-08-01 16:09:05,923][INFO ][env ] [Steel Raven] heap size [3.4gb], compressed ordinary object pointers [true] +[2016-08-01 16:09:07,410][ERROR][bootstrap ] Exception +java.util.ServiceConfigurationError: org.duniter.core.beans.Bean: Provider org.duniter.core.service.Ed25519CryptoServiceImpl could not be instantiated + at java.util.ServiceLoader.fail(ServiceLoader.java:232) + at java.util.ServiceLoader.access$100(ServiceLoader.java:185) + at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384) + at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) + at java.util.ServiceLoader$1.next(ServiceLoader.java:480) + at org.duniter.core.beans.BeanFactory.newBean(BeanFactory.java:83) + at org.duniter.core.beans.BeanFactory.getBean(BeanFactory.java:57) + at org.duniter.core.client.service.ServiceLocator.getBean(ServiceLocator.java:144) + at org.duniter.elasticsearch.service.ServiceLocator$Provider.get(ServiceLocator.java:124) + at org.duniter.elasticsearch.service.ServiceLocator$Provider.get(ServiceLocator.java:115) + at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46) + at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42) + at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66) + at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85) + at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104) + at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42) + at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66) + at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85) + at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104) + at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47) + at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:886) + at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43) + at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59) + at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46) + at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:201) + at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:193) + at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:879) + at org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:193) + at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:175) + at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110) + at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96) + at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70) + at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:46) + at org.elasticsearch.node.Node.<init>(Node.java:213) + at org.elasticsearch.node.Node.<init>(Node.java:140) + at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143) + at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) + at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) + at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:294) + at java.lang.Thread.run(Thread.java:745) +Caused by: java.lang.UnsatisfiedLinkError: libsodium.so: cannot open shared object file: No such file or directory + at jnr.ffi.provider.jffi.NativeLibrary.loadNativeLibraries(NativeLibrary.java:87) + at jnr.ffi.provider.jffi.NativeLibrary.getNativeLibraries(NativeLibrary.java:70) + at jnr.ffi.provider.jffi.NativeLibrary.getSymbolAddress(NativeLibrary.java:49) + at jnr.ffi.provider.jffi.NativeLibrary.findSymbolAddress(NativeLibrary.java:59) + at jnr.ffi.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:117) + at jnr.ffi.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:59) + at jnr.ffi.provider.jffi.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:43) + at jnr.ffi.LibraryLoader.load(LibraryLoader.java:290) + at jnr.ffi.LibraryLoader.load(LibraryLoader.java:269) + at org.abstractj.kalium.NaCl$SingletonHolder.<clinit>(NaCl.java:41) + at org.abstractj.kalium.NaCl.sodium(NaCl.java:28) + at org.duniter.core.service.Ed25519CryptoServiceImpl.<init>(Ed25519CryptoServiceImpl.java:66) + at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) + at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) + at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) + at java.lang.reflect.Constructor.newInstance(Constructor.java:423) + at java.lang.Class.newInstance(Class.java:442) + at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380) + ... 42 more +[2016-08-01 16:14:57,898][INFO ][node ] [Martha Johansson] version[2.3.3], pid[27898], build[218bdf1/2016-05-17T15:40:04Z] +[2016-08-01 16:14:57,898][INFO ][node ] [Martha Johansson] initializing ... +[2016-08-01 16:14:58,008][INFO ][plugins ] [Martha Johansson] modules [], plugins [duniter], sites [] +[2016-08-01 16:14:58,020][INFO ][env ] [Martha Johansson] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [88.3gb], net total_space [101.7gb], spins? [no], types [ext4] +[2016-08-01 16:14:58,020][INFO ][env ] [Martha Johansson] heap size [3.4gb], compressed ordinary object pointers [true] +[2016-08-01 16:14:59,269][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.service.CryptoService] +[2016-08-01 16:14:59,269][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:14:59,269][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:14:59,271][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:14:59,271][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:14:59,450][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:14:59,450][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:14:59,451][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:14:59,451][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:14:59,451][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:14:59,451][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:14:59,451][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:14:59,451][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:14:59,453][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.CurrencyDao] +[2016-08-01 16:14:59,453][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.DataContext] +[2016-08-01 16:14:59,454][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.PeerDao] +[2016-08-01 16:14:59,544][DEBUG][org.duniter.elasticsearch.service.ServiceLocator] Starting Duniter4j client ServiceLocator... +[2016-08-01 16:14:59,596][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:14:59,596][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:14:59,596][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:14:59,597][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:14:59,600][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:14:59,600][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:14:59,600][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:14:59,600][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:14:59,600][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.CurrencyDao] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.DataContext] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.PeerDao] +[2016-08-01 16:14:59,601][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.service.CryptoService] +[2016-08-01 16:14:59,605][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.TransactionRemoteService] +[2016-08-01 16:14:59,605][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.TransactionRemoteService] +[2016-08-01 16:14:59,610][INFO ][node ] [Martha Johansson] initialized +[2016-08-01 16:14:59,610][INFO ][node ] [Martha Johansson] starting ... +[2016-08-01 16:14:59,623][DEBUG][org.duniter.elasticsearch.PluginSettings] [Martha Johansson] I18N directory: /home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/data/i18n +[2016-08-01 16:14:59,623][INFO ][org.duniter.elasticsearch.PluginSettings] [Martha Johansson] Starts i18n with locale [fr] at [/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/data/i18n] +[2016-08-01 16:14:59,640][DEBUG][org.duniter.elasticsearch.threadpool.ThreadPool] [Martha Johansson] Starting Duniter4j ThreadPool... +[2016-08-01 16:14:59,733][INFO ][transport ] [Martha Johansson] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300} +[2016-08-01 16:14:59,737][INFO ][discovery ] [Martha Johansson] duniter4j-elasticsearch/8ibNn5-uQSOZ4GYp08X4jg +[2016-08-01 16:15:02,797][INFO ][cluster.service ] [Martha Johansson] new_master {Martha Johansson}{8ibNn5-uQSOZ4GYp08X4jg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received) +[2016-08-01 16:15:02,820][INFO ][http ] [Martha Johansson] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200} +[2016-08-01 16:15:02,820][INFO ][node ] [Martha Johansson] started +[2016-08-01 16:15:02,859][INFO ][gateway ] [Martha Johansson] recovered [0] indices into cluster_state +[2016-08-01 16:15:09,643][INFO ][org.duniter.elasticsearch.node.DuniterNode] [Martha Johansson] Checking Duniter indices... +[2016-08-01 16:15:09,650][INFO ][org.duniter.elasticsearch.service.RegistryService] Creating index [registry] +[2016-08-01 16:15:09,775][DEBUG][action.admin.indices.create] [Martha Johansson] [registry] failed to create +MapperParsingException[Failed to parse mapping [record]: No handler for type [attachment] declared on field [thumbnail]]; nested: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]]; + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:332) + at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45) + at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:468) + at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) + at java.lang.Thread.run(Thread.java:745) +Caused by: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]] + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:303) + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:218) + at org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:139) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:118) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:99) + at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:508) + at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:288) + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:329) + ... 8 more +[2016-08-01 16:15:09,778][WARN ][org.duniter.elasticsearch.threadpool.ThreadPool] [Martha Johansson] failed to run org.duniter.elasticsearch.threadpool.ThreadPool$$Lambda$3/1990808042@19112bae +MapperParsingException[Failed to parse mapping [record]: No handler for type [attachment] declared on field [thumbnail]]; nested: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]]; + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:332) + at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45) + at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:468) + at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) + at java.lang.Thread.run(Thread.java:745) +Caused by: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]] + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:303) + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:218) + at org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:139) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:118) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:99) + at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:508) + at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:288) + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:329) + ... 8 more +[2016-08-01 16:18:25,719][INFO ][node ] [Martha Johansson] stopping ... +[2016-08-01 16:18:25,731][INFO ][node ] [Martha Johansson] stopped +[2016-08-01 16:18:25,732][INFO ][node ] [Martha Johansson] closing ... +[2016-08-01 16:18:25,736][INFO ][node ] [Martha Johansson] closed +[2016-08-01 16:23:45,935][INFO ][node ] [Mangog] version[2.3.3], pid[28939], build[218bdf1/2016-05-17T15:40:04Z] +[2016-08-01 16:23:45,936][INFO ][node ] [Mangog] initializing ... +[2016-08-01 16:23:46,119][INFO ][plugins ] [Mangog] modules [], plugins [duniter], sites [] +[2016-08-01 16:23:46,130][INFO ][env ] [Mangog] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [88.3gb], net total_space [101.7gb], spins? [no], types [ext4] +[2016-08-01 16:23:46,131][INFO ][env ] [Mangog] heap size [3.4gb], compressed ordinary object pointers [true] +[2016-08-01 16:23:47,553][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.service.CryptoService] +[2016-08-01 16:23:47,553][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:23:47,553][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:23:47,555][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:23:47,555][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:23:47,766][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:23:47,766][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:23:47,767][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:23:47,767][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:23:47,767][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:23:47,767][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:23:47,767][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:23:47,767][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:23:47,769][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.CurrencyDao] +[2016-08-01 16:23:47,769][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.DataContext] +[2016-08-01 16:23:47,769][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.PeerDao] +[2016-08-01 16:23:47,894][DEBUG][org.duniter.elasticsearch.service.ServiceLocator] Starting Duniter4j client ServiceLocator... +[2016-08-01 16:23:47,948][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:23:47,948][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.WotRemoteService] +[2016-08-01 16:23:47,948][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:23:47,948][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.HttpService] +[2016-08-01 16:23:47,951][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.PeerService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.local.CurrencyService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.BlockchainRemoteService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.NetworkRemoteService] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.CurrencyDao] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.DataContext] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.dao.PeerDao] +[2016-08-01 16:23:47,952][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.service.CryptoService] +[2016-08-01 16:23:47,956][DEBUG][org.duniter.core.beans.BeanFactory] Creating new bean of type [org.duniter.core.client.service.bma.TransactionRemoteService] +[2016-08-01 16:23:47,956][DEBUG][org.duniter.core.beans.BeanFactory] Initializing bean of type [org.duniter.core.client.service.bma.TransactionRemoteService] +[2016-08-01 16:23:47,959][INFO ][node ] [Mangog] initialized +[2016-08-01 16:23:47,959][INFO ][node ] [Mangog] starting ... +[2016-08-01 16:23:47,969][DEBUG][org.duniter.elasticsearch.PluginSettings] [Mangog] I18N directory: /home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/data/i18n +[2016-08-01 16:23:47,969][INFO ][org.duniter.elasticsearch.PluginSettings] [Mangog] Starts i18n with locale [fr] at [/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/data/i18n] +[2016-08-01 16:23:47,985][DEBUG][org.duniter.elasticsearch.threadpool.ThreadPool] [Mangog] Starting Duniter4j ThreadPool... +[2016-08-01 16:23:48,030][INFO ][transport ] [Mangog] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300} +[2016-08-01 16:23:48,033][INFO ][discovery ] [Mangog] duniter4j-elasticsearch/KJmh6LLQQ5WSusnJpTBtTg +[2016-08-01 16:23:51,071][INFO ][cluster.service ] [Mangog] new_master {Mangog}{KJmh6LLQQ5WSusnJpTBtTg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received) +[2016-08-01 16:23:51,097][INFO ][http ] [Mangog] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200} +[2016-08-01 16:23:51,097][INFO ][node ] [Mangog] started +[2016-08-01 16:23:51,125][INFO ][gateway ] [Mangog] recovered [0] indices into cluster_state +[2016-08-01 16:23:57,987][INFO ][org.duniter.elasticsearch.node.DuniterNode] [Mangog] Checking Duniter indices... +[2016-08-01 16:23:57,997][INFO ][org.duniter.elasticsearch.service.RegistryService] Creating index [registry] +[2016-08-01 16:23:58,135][DEBUG][action.admin.indices.create] [Mangog] [registry] failed to create +MapperParsingException[Failed to parse mapping [record]: No handler for type [attachment] declared on field [thumbnail]]; nested: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]]; + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:332) + at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45) + at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:468) + at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) + at java.lang.Thread.run(Thread.java:745) +Caused by: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]] + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:303) + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:218) + at org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:139) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:118) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:99) + at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:508) + at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:288) + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:329) + ... 8 more +[2016-08-01 16:23:58,137][WARN ][org.duniter.elasticsearch.threadpool.ThreadPool] [Mangog] failed to run org.duniter.elasticsearch.threadpool.ThreadPool$$Lambda$3/1548269356@722fa8bf +MapperParsingException[Failed to parse mapping [record]: No handler for type [attachment] declared on field [thumbnail]]; nested: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]]; + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:332) + at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45) + at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:468) + at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) + at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) + at java.lang.Thread.run(Thread.java:745) +Caused by: MapperParsingException[No handler for type [attachment] declared on field [thumbnail]] + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:303) + at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:218) + at org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:139) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:118) + at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:99) + at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:508) + at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:288) + at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:329) + ... 8 more +[2016-08-01 16:24:34,779][INFO ][node ] [Mangog] stopping ... +[2016-08-01 16:24:34,819][INFO ][node ] [Mangog] stopped +[2016-08-01 16:24:34,819][INFO ][node ] [Mangog] closing ... +[2016-08-01 16:24:34,825][INFO ][node ] [Mangog] closed +[2016-08-01 16:25:17,447][INFO ][node ] [Hawkshaw] version[2.3.3], pid[29194], build[218bdf1/2016-05-17T15:40:04Z] +[2016-08-01 16:25:17,448][INFO ][node ] [Hawkshaw] initializing ... +[2016-08-01 16:25:17,541][ERROR][bootstrap ] Exception +java.lang.IllegalStateException: failed to load bundle [file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/jempbox-1.8.10.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/bcprov-jdk15on-1.52.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/commons-compress-1.10.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/commons-codec-1.10.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/fontbox-1.8.10.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/mapper-attachments-2.3.3.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/stax-api-1.0.1.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/poi-ooxml-schemas-3.13.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/poi-scratchpad-3.13.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/tagsoup-1.2.1.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/juniversalchardet-1.0.3.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/tika-core-1.11.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/bcpkix-jdk15on-1.52.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/pdfbox-1.8.10.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/tika-parsers-1.11.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/commons-logging-1.1.3.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/commons-io-2.4.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/poi-3.13.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/poi-ooxml-3.13.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/bcmail-jdk15on-1.52.jar, file:/home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/xmlbeans-2.6.0.jar] due to jar hell + at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:421) + at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:129) + at org.elasticsearch.node.Node.<init>(Node.java:158) + at org.elasticsearch.node.Node.<init>(Node.java:140) + at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143) + at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) + at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) + at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) +Caused by: java.lang.IllegalStateException: jar hell! +class: org.apache.commons.codec.binary.Base32 +jar1: /home/blavenie/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar +jar2: /home/blavenie/git/duniter4j/duniter4j-elasticsearch/src/test/es-home/plugins/mapper-attachments/commons-codec-1.10.jar + at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282) + at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:186) + at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:419) + ... 7 more diff --git a/duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch-access.log b/duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch_deprecation.log similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch-access.log rename to duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch_deprecation.log diff --git a/duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch_deprecation.log b/duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch_index_indexing_slowlog.log similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch_deprecation.log rename to duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch_index_indexing_slowlog.log diff --git a/duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch_index_indexing_slowlog.log b/duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch_index_search_slowlog.log similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch_index_indexing_slowlog.log rename to duniter4j-elasticsearch/src/test/_es-home/logs/duniter4j-elasticsearch_index_search_slowlog.log diff --git a/duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch_index_search_slowlog.log b/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch-access.log similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch_index_search_slowlog.log rename to duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch-access.log diff --git a/duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch.log b/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch.log similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/logs/elasticsearch.log rename to duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch.log diff --git a/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch_deprecation.log b/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch_deprecation.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch_index_indexing_slowlog.log b/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch_index_indexing_slowlog.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch_index_search_slowlog.log b/duniter4j-elasticsearch/src/test/_es-home/logs/elasticsearch_index_search_slowlog.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/duniter4j-elasticsearch/src/test/es-home/plugins/duniter4j-elasticsearch/LICENSE b/duniter4j-elasticsearch/src/test/_es-home/plugins/duniter4j-elasticsearch/LICENSE similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/plugins/duniter4j-elasticsearch/LICENSE rename to duniter4j-elasticsearch/src/test/_es-home/plugins/duniter4j-elasticsearch/LICENSE diff --git a/duniter4j-elasticsearch/src/test/es-home/plugins/duniter4j-elasticsearch/plugin-descriptor.properties b/duniter4j-elasticsearch/src/test/_es-home/plugins/duniter4j-elasticsearch/plugin-descriptor.properties similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/plugins/duniter4j-elasticsearch/plugin-descriptor.properties rename to duniter4j-elasticsearch/src/test/_es-home/plugins/duniter4j-elasticsearch/plugin-descriptor.properties diff --git a/duniter4j-elasticsearch/src/test/es-home/plugins/duniter4j-elasticsearch/plugin-security.policy b/duniter4j-elasticsearch/src/test/_es-home/plugins/duniter4j-elasticsearch/plugin-security.policy similarity index 100% rename from duniter4j-elasticsearch/src/test/es-home/plugins/duniter4j-elasticsearch/plugin-security.policy rename to duniter4j-elasticsearch/src/test/_es-home/plugins/duniter4j-elasticsearch/plugin-security.policy diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcmail-jdk15on-1.52.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcmail-jdk15on-1.52.jar new file mode 100644 index 0000000000000000000000000000000000000000..3e1cbe5bd6294eda856e8948de8814ea2459c5f4 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcmail-jdk15on-1.52.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcpkix-jdk15on-1.52.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcpkix-jdk15on-1.52.jar new file mode 100644 index 0000000000000000000000000000000000000000..b6a5a62d36af937af8ba1c86fff82eb96edd7b21 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcpkix-jdk15on-1.52.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcprov-jdk15on-1.52.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcprov-jdk15on-1.52.jar new file mode 100644 index 0000000000000000000000000000000000000000..6c54dd901cc37c7e2bcb1c42abd64bc2c56c7460 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/bcprov-jdk15on-1.52.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-codec-1.10.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-codec-1.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..1d7417c4031324cc6577a306cde57ae220f55523 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-codec-1.10.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-compress-1.10.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-compress-1.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..75ced20e17746945a8b16f965d21cbb3314c09b3 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-compress-1.10.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-io-2.4.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-io-2.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..90035a4fe068e65d42edf621a0ffc78b4b020cdc Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-io-2.4.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-logging-1.1.3.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-logging-1.1.3.jar new file mode 100644 index 0000000000000000000000000000000000000000..ab5125407a6a77767330e29a028b97c3ac64ce18 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/commons-logging-1.1.3.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/fontbox-1.8.10.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/fontbox-1.8.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..3284950c8c3d55ad0d75cef7af6473cc8e1b54c4 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/fontbox-1.8.10.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/jempbox-1.8.10.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/jempbox-1.8.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..48cc6337533dcc93407c5b8880df6220f83e52a8 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/jempbox-1.8.10.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/juniversalchardet-1.0.3.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/juniversalchardet-1.0.3.jar new file mode 100644 index 0000000000000000000000000000000000000000..ef4d7af5732c4fc539bde0530b97b97648d27c4b Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/juniversalchardet-1.0.3.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/mapper-attachments-2.3.3.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/mapper-attachments-2.3.3.jar new file mode 100644 index 0000000000000000000000000000000000000000..375ec1a11ebb1e92ebe094b85b882e25fe48f3f0 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/mapper-attachments-2.3.3.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/pdfbox-1.8.10.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/pdfbox-1.8.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..87bb9a7043eecad75753caefb9435c9821be5f99 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/pdfbox-1.8.10.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/plugin-descriptor.properties b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/plugin-descriptor.properties new file mode 100644 index 0000000000000000000000000000000000000000..b2ab35861924ba3083a3a6626bfa64c7dfef06e0 --- /dev/null +++ b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/plugin-descriptor.properties @@ -0,0 +1,80 @@ +# Elasticsearch plugin descriptor file +# This file must exist as 'plugin-descriptor.properties' at +# the root directory of all plugins. +# +# A plugin can be 'site', 'jvm', or both. +# +### example site plugin for "foo": +# +# foo.zip <-- zip file for the plugin, with this structure: +# _site/ <-- the contents that will be served +# plugin-descriptor.properties <-- example contents below: +# +# site=true +# description=My cool plugin +# version=1.0 +# +### example jvm plugin for "foo" +# +# foo.zip <-- zip file for the plugin, with this structure: +# <arbitrary name1>.jar <-- classes, resources, dependencies +# <arbitrary nameN>.jar <-- any number of jars +# plugin-descriptor.properties <-- example contents below: +# +# jvm=true +# classname=foo.bar.BazPlugin +# description=My cool plugin +# version=2.0.0-rc1 +# elasticsearch.version=2.0 +# java.version=1.7 +# +### mandatory elements for all plugins: +# +# 'description': simple summary of the plugin +description=The mapper attachments plugin adds the attachment type to Elasticsearch using Apache Tika. +# +# 'version': plugin's version +version=2.3.3 +# +# 'name': the plugin name +name=mapper-attachments + +### mandatory elements for site plugins: +# +# 'site': set to true to indicate contents of the _site/ +# directory in the root of the plugin should be served. +site=false +# +### mandatory elements for jvm plugins : +# +# 'jvm': true if the 'classname' class should be loaded +# from jar files in the root directory of the plugin. +# Note that only jar files in the root directory are +# added to the classpath for the plugin! If you need +# other resources, package them into a resources jar. +jvm=true +# +# 'classname': the name of the class to load, fully-qualified. +classname=org.elasticsearch.mapper.attachments.MapperAttachmentsPlugin +# +# 'java.version' version of java the code is built against +# use the system property java.specification.version +# version string must be a sequence of nonnegative decimal integers +# separated by "."'s and may have leading zeros +java.version=1.7 +# +# 'elasticsearch.version' version of elasticsearch compiled against +# You will have to release a new version of the plugin for each new +# elasticsearch release. This version is checked when the plugin +# is loaded so Elasticsearch will refuse to start in the presence of +# plugins with the incorrect elasticsearch.version. +elasticsearch.version=2.3.3 +# +### deprecated elements for jvm plugins : +# +# 'isolated': true if the plugin should have its own classloader. +# passing false is deprecated, and only intended to support plugins +# that have hard dependencies against each other. If this is +# not specified, then the plugin is isolated by default. +isolated=true +# diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/plugin-security.policy b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/plugin-security.policy new file mode 100644 index 0000000000000000000000000000000000000000..3264766682269e55baae64ca70d1170101260abf --- /dev/null +++ b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/plugin-security.policy @@ -0,0 +1,34 @@ +/* + * Licensed to Elasticsearch under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// NOTE: when modifying this file, look at restrictions in TikaImpl too +grant { + // needed to apply additional sandboxing to tika parsing + permission java.security.SecurityPermission "createAccessControlContext"; + + // TODO: fix PDFBox not to actually install bouncy castle like this + permission java.security.SecurityPermission "putProviderProperty.BC"; + permission java.security.SecurityPermission "insertProvider"; + // needed only on java 7 + permission java.security.SecurityPermission "insertProvider.BC"; + // TODO: fix POI XWPF to not do this: https://bz.apache.org/bugzilla/show_bug.cgi?id=58597 + permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; + // needed by xmlbeans, as part of POI for MS xml docs + permission java.lang.RuntimePermission "getClassLoader"; +}; diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-3.13.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-3.13.jar new file mode 100644 index 0000000000000000000000000000000000000000..a9e3800852e2ddcecda28fccc9df7254e3b3a43e Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-3.13.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-ooxml-3.13.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-ooxml-3.13.jar new file mode 100644 index 0000000000000000000000000000000000000000..726768cfd7634a0e1fd2aa6d0fced986e1cf12d9 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-ooxml-3.13.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-ooxml-schemas-3.13.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-ooxml-schemas-3.13.jar new file mode 100644 index 0000000000000000000000000000000000000000..bd883978b3ed22e697314973650dd797f86eccf7 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-ooxml-schemas-3.13.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-scratchpad-3.13.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-scratchpad-3.13.jar new file mode 100644 index 0000000000000000000000000000000000000000..735eb7ded084673972f388701bd338791bee3a71 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/poi-scratchpad-3.13.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/stax-api-1.0.1.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/stax-api-1.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..d9a1665151cf5ba827d15f9bccc35dc77b57cf98 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/stax-api-1.0.1.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tagsoup-1.2.1.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tagsoup-1.2.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..27516019174e55260029068045cdfca584b5e21b Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tagsoup-1.2.1.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tika-core-1.11.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tika-core-1.11.jar new file mode 100644 index 0000000000000000000000000000000000000000..72a4562e3a0ca5289cf201cba0c96f995c5ce6c7 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tika-core-1.11.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tika-parsers-1.11.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tika-parsers-1.11.jar new file mode 100644 index 0000000000000000000000000000000000000000..9ef24fff465b17d249498d6906e7084134633284 Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/tika-parsers-1.11.jar differ diff --git a/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/xmlbeans-2.6.0.jar b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/xmlbeans-2.6.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..d1b66271f5e379403207383db4ff6e4b9c4e24dd Binary files /dev/null and b/duniter4j-elasticsearch/src/test/_es-home/plugins/mapper-attachments/xmlbeans-2.6.0.jar differ diff --git a/pom.xml b/pom.xml index 8125e998c22e07da01da4ec603af8bf3dff70c01..0ec59cf832ead00d2a0ec4d5309e1a8ebfaeceeb 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,8 @@ <elasticsearch.version>2.3.3</elasticsearch.version> <jna.version>4.1.0</jna.version> + <cesium.version>0.1.26</cesium.version> + <nuitonConfigVersion>3.0-rc-2</nuitonConfigVersion> <nuitonI18nVersion>3.3</nuitonI18nVersion>