Hi Luca, 

today we tried your github code, below is error logs, please help:

Here is what I have tried today:

 

install maven:

 

     sudo apt-get purge maven maven2 maven3

     sudo add-apt-repository ppa:andrei-pozolotin/maven3

     sudo apt-get update

     sudo apt-get install maven3

 

install git client:

     sudo apt-get install git

 

clone plugin repository:

     cd /opt

     git clone

https://github.com/orientechnologies/orientdb-elasticsearch.git

 

     cd     orientdb-elasticsearch

 

     mvn clean install

             ->   ERROR

             Failed to execute goal on project orientdb-elasticsearch: 

Could not resolve dependencies for project 
com.orientechnologies:orientdb-elasticsearch:jar:2.2.1-SNAPSHOT ...

 

     vi pom.xml

         <groupId>com.orientechnologies</groupId>

         <artifactId>orientdb-elasticsearch</artifactId>

         <version>2.2.7</version>

         <packaging>jar</packaging>

 

  (as our server is 2.2.7 and it is references as dependency)

     mvn clean install

        -> it compiles

     cp target/orientdb-elasticsearch-2.2.7.jar ../orientdb/plugins/

     chown orientdb:orientdb

../orientdb/plugins/orientdb-elasticsearch-2.2.7.jar

 

     sudo /etc/init.d/orientdb stop

     sudo /etc/init.d/orientdb start

 

     -->

       2016-08-22 17:42:47:694 INFO  Installing dynamic plugin 
'orientdb-elasticsearch-2.2.7.jar'... [OServerPluginManager]Error on 
installing dynamic plugin 'es'

         java.lang.ClassNotFoundException: 

com.orientechnologies.es.ElasticSearchPlugin

         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

 

-----------------

 

     vi src/main/resources/plugin.json

         "version" : "2.2.7",

         "javaClass": 

"com.orientechnologies.server.plugin.es.OElasticSearchPlugin",

     mvn clean install

     cp target/orientdb-elasticsearch-2.2.7.jar ../orientdb/plugins/

     chown orientdb:orientdb

../orientdb/plugins/orientdb-elasticsearch-2.2.7.jar

     sudo /etc/init.d/orientdb stop

     sudo /etc/init.d/orientdb start

 

     --->

 

     │2016-08-22 17:51:44:169 INFO  Installing dynamic plugin 
'orientdb-elasticsearch-2.2.7.jar'... [OServerPluginManager]

     Exception in thread "main" java.lang.NoClassDefFoundError: 

org/elasticsearch/common/transport/TransportAddress

         at java.lang.Class.forName0(Native Method)

         at java.lang.Class.forName(Class.java:264)

         at

com.orientechnologies.orient.server.plugin.OServerPluginManager.startPluginClass(OServerPluginManager.java:270)

 

-------------------

   Assembly missing? (http://orientdb.com/docs/2.2.x/Extend-Server.html)

 

     mkdir src/main/assembly

     vi src/main/assembly/assembly.xml

 

         <assembly>

             <id>dist</id>

             <formats>

                 <format>jar</format>

             </formats>

<includeBaseDirectory>false</includeBaseDirectory>

             <dependencySets>

                 <dependencySet>

                     <outputDirectory/>

                     <unpack>true</unpack>

                     <includes>

<include>${groupId}:${artifactId}</include>

                     </includes>

                 </dependencySet>

             </dependencySets>

         </assembly>

 

     vi pom.xml

         <plugin>

<artifactId>maven-assembly-plugin</artifactId>

                 <version>2.4</version>

                 <configuration>

                     <descriptors>

<descriptor>src/main/assembly/assembly.xml</descriptor>

                     </descriptors>

                 </configuration>

                 <executions>

                     <execution>

                         <id>make-assembly</id>

                         <!-- this is used for inheritance merges -->

                         <phase>package</phase>

                         <!-- bind to the packaging phase -->

                         <goals>

                             <goal>single</goal>

                         </goals>

                         <configuration></configuration>

                     </execution>

                 </executions>

             </plugin>

     mvn clean install

     rm -rf /opt/orientdb/plugins/orientdb-elasticsearch-2.2.7.jar

     cp target/orientdb-elasticsearch-2.2.7-dist.jar ../orientdb/plugins/

     chown orientdb:orientdb

../orientdb/plugins/orientdb-elasticsearch-2.2.7-dist.jar

     sudo /etc/init.d/orientdb stop

     sudo /etc/init.d/orientdb start

 

     Exception in thread "main" java.lang.NoClassDefFoundError: 

org/elasticsearch/common/transport/TransportAddress

         at java.lang.Class.forName0(Native Method)

         at java.lang.Class.forName(Class.java:264)

         at

com.orientechnologies.orient.server.plugin.OServerPluginManager.startPluginClass(OServerPluginManager.java:270)

 

 

     then tried different other solutions for fixing missing dependencies

 

     - build jar-with-dependencies .. DID NOT WORK

     - copying manually dependencies over /lib but they get in conflict 

with the ones already there with different versions


On Friday, 12 August 2016 12:55:46 UTC+5:30, l.garulli wrote:
>
> Hi,
>
> I've just published this plugin we used a couple of time to display 
> OrientDB data on Kibana:
>
> https://github.com/orientechnologies/orientdb-elasticsearch
>
> Sorry, it's in alpha and there is no even the README file. Anyway you can 
> compile it and put the jar under the server libs.
>
> Best Regards,
>
> Luca Garulli
> Founder & CEO
> OrientDB LTD <http://orientdb.com/>
>
> Want to share your opinion about OrientDB?
> Rate & review us at Gartner's Software Review 
> <https://www.gartner.com/reviews/survey/home>
>
>
> On 12 August 2016 at 01:33, Suyog Kale <[email protected] <javascript:>> 
> wrote:
>
>> can I use live queries using nodejs? is it recommended ?
>>
>>
>> On Friday, 12 August 2016 11:58:55 UTC+5:30, Suyog Kale wrote:
>>>
>>> Does it works with NodeJS?
>>>
>>>
>>> On Friday, 12 August 2016 11:03:24 UTC+5:30, Ivan Mainetti wrote:
>>>>
>>>> http://orientdb.com/docs/last/Hook.html
>>>>
>>>>
>>>> Il giorno venerdì 12 agosto 2016 06:11:27 UTC+2, Suyog Kale ha scritto:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I want sync OrientDb data in ElasticSearch DB, does OrientDB support 
>>>>> any triggers on data Insert,update,delete ? if yes please share me 
>>>>> reference link. In case of MongoDB it provides oplogs which can be used 
>>>>> to 
>>>>> sync changed document into another database.
>>>>>
>>>>> I am using NodeJS, so I want there are any support npm pacakges that 
>>>>> works with OrientDB to fire such triggers.
>>>>>
>>>>> Regards,
>>>>> Suyog
>>>>>
>>>>> -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to