linkedpipes / etl

LinkedPipes ETL is an RDF based, lightweight ETL tool
https://etl.linkedpipes.com
Other
144 stars 30 forks source link

Installation instructions on Ubuntu 20.4 #941

Open kerosumi opened 2 years ago

kerosumi commented 2 years ago

Hi, I have nodejs 17 with npm 8 and JAVA 17 installed in my machine.Unable to make the build with maven. its throwing this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project vocabulary: Compilation failure: Compilation failure: [ERROR] Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later. Any suggestions?

jakubklimek commented 2 years ago

Hello, can you make sure that maven actually uses Java 17? (mvn -V) From your output it seems that it does not. We build LP-ETL with Java 17 with no problem.

kerosumi commented 2 years ago

Issue resolved Steps remove native java run time installed through apt ,which was openjdk 11 by default in Ubuntu 20.4 Download openjdk 17 and install jdk-17_linux-x64_bin.tar.gz in /opt

sudo tar xvzf jdk-17_linux-x64_bin.tar.gz -C /opt

browse the /opt folder and get the correct folder name Now you need to set the environment variables as below:

export JAVA_HOME=/opt/jdk-17.0.3.1 export PATH=$PATH:$JAVA_HOME/bin

Verify the JAVA_HOME environment variable with the following command:

echo $JAVA_HOME

You should get the following output:

/opt/jdk-17.0.3.1

Uninstall maven 3.6 installed with apt ,it will not work with Java 17.

in your download directory using shell wget https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz

then copy and untar into /opt sudo tar -xzvf apache-maven-3.8.6-bin.tar.gz -C /opt

use your text editor in this case nano and change the second and third lines.Make sure the folder name changed to whatever is showing up in the folder sudo nano /etc/profile.d/maven.sh

export JAVA_HOME=/usr/lib/jvm/default-java export M2_HOME=/opt/apache-maven-3.8.6 export MAVEN_HOME=/opt/apache-maven-3.8.6 export PATH=${M2_HOME}/bin:${PATH}

save changes

Make the maven.sh file executable using the chmod command:

sudo chmod +x /etc/profile.d/maven.sh

Imp Execute the maven.sh script file with the source command to set up the new environment variables:

source /etc/profile.d/maven.sh

go to: cd /usr/lib/jvm/default-java

ls to see content

sudo rm -r to remove other versions of jdk such as Java 11 or 1.2 in there. Only keep java-17-openjdk-amd64

Use mvn --version If you see this its done!

Apache Maven 3.8.6 (**) Maven home: /opt/apache-maven-3.8.6 Java version: 17.0.3, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8

To maintainers please change the requirements for installation to reflect Maven version 3.8.6. This would save somone a good 4 hours.

kerosumi commented 2 years ago

Is there an instruction set somewhere to start using this on Ubuntu? I have no idea how to get into user interface ,where to point my local browser etc

jakubklimek commented 2 years ago

@kerosumi There is https://etl.linkedpipes.com/ . If you are building from source, you can follow these steps. But you are right, we are missing the statement that by default, frontend runs on http://localhost:8080 or as configured. Maybe you can consider running the docker image - then the setup is easier.

kerosumi commented 2 years ago

Thanks Jakub for your patience. The struggle for me is real!

Running the following in shell in deploy folder started the program and i can see the GUI on loaclhost:8080

./executor.sh >> executor.log & ./executor-monitor.sh >> executor-monitor.log & ./storage.sh >> storage.log & ./frontend.sh >> frontend.log &

Now I am looking at

Why don't you create or import one?

I tried different things but Could not figure out how to add components. Should they be showing up on label search?

I clicked on create and then there was this window insert component. I think this might be it . :) But ordinary people(who are not PhDS) may benefit from a well written step somewhere in documentation how to get started !

jakubklimek commented 2 years ago

Thanks also for your patience. Have you seen the screencast at https://etl.linkedpipes.com/ and the documentation there?